* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #fecfef 75%, #ffd1ff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

/* 메인 컨테이너 */
.main-container {
    padding: 20px 0;
}

/* 소개 섹션 */
.intro-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.intro-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.intro-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.color-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.color-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-radius: 15px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.color-type:hover {
    transform: translateY(-3px);
}

.color-type.spring {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
}

.color-type.summer {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.color-type.autumn {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    color: #333;
}

.color-type.winter {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    color: white;
}

.season-icon {
    font-size: 2rem;
}

/* 업로드 섹션 */
.upload-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.upload-container h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.upload-guide {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.upload-area {
    position: relative;
    border: 3px dashed #ff9a9e;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background: rgba(255, 154, 158, 0.05);
}

.upload-area:hover {
    border-color: #fad0c4;
    background: rgba(250, 208, 196, 0.1);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #fad0c4;
    background: rgba(250, 208, 196, 0.15);
    transform: scale(1.02);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.upload-text p {
    margin-bottom: 5px;
}

.upload-subtext {
    font-size: 0.9rem;
    color: #999;
}

.uploaded-image {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.uploaded-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ff4757;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.upload-tips {
    background: rgba(255, 154, 158, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.upload-tips h4 {
    margin-bottom: 15px;
    color: #333;
}

.upload-tips ul {
    list-style: none;
    padding-left: 0;
}

.upload-tips li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.upload-tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff9a9e;
    font-weight: bold;
}

.analyze-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.analyze-btn:enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.4);
}

.analyze-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 분석 중 섹션 */
.analyzing-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.analyzing-animation {
    position: relative;
    margin-bottom: 30px;
}

.color-scanner {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ff9a9e;
}

.color-bands {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotating 3s infinite linear;
}

.color-band {
    width: 100%;
    height: 16.66%;
}

.color-band.red { background: linear-gradient(90deg, #ff6b6b, #ff8e8e); }
.color-band.orange { background: linear-gradient(90deg, #ffa726, #ffcc80); }
.color-band.yellow { background: linear-gradient(90deg, #ffeb3b, #fff59d); }
.color-band.green { background: linear-gradient(90deg, #66bb6a, #a5d6a7); }
.color-band.blue { background: linear-gradient(90deg, #42a5f5, #90caf9); }
.color-band.purple { background: linear-gradient(90deg, #ab47bc, #ce93d8); }

@keyframes rotating {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scan-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    opacity: 0.3;
    z-index: 10;
}

.analyzing-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #333;
}

.analyzing-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.step {
    padding: 12px 20px;
    background: rgba(255, 154, 158, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.step.active {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: white;
    opacity: 1;
    transform: scale(1.02);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 154, 158, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* 결과 섹션 */
.result-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.result-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.result-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 154, 158, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.main-result {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1), rgba(250, 208, 196, 0.1));
}

.season-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.season-icon-large {
    font-size: 4rem;
}

.season-result h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.season-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* 컬러 팔레트 */
.color-palette-section {
    margin: 30px 0;
}

.color-palette-section h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.color-swatch {
    aspect-ratio: 1;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch::after {
    content: attr(data-color-name);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    padding: 4px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-swatch:hover::after {
    opacity: 1;
}

/* 추천 카드들 */
.detailed-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 154, 158, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.recommendation-card h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.makeup-colors {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.makeup-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.makeup-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.color-samples {
    display: flex;
    gap: 8px;
}

.color-sample {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-names {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.hair-colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.hair-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hair-color-sample {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.hair-color-name {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.hair-advice {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-top: 15px;
}

.fashion-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fashion-category h5 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem;
}

.accessory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.accessory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 154, 158, 0.05);
    border-radius: 10px;
}

.accessory-icon {
    font-size: 1.5rem;
}

.accessory-item p {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin: 0;
}

/* 스타일링 팁 */
.styling-tips {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1), rgba(250, 208, 196, 0.1));
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.styling-tips h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.tips-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff9a9e;
}

.tip-item h5 {
    color: #333;
    margin-bottom: 8px;
}

.tip-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* 다시 하기 및 공유 섹션 */
.retry-section, .share-section {
    text-align: center;
    margin: 30px 0;
}

.retry-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.4);
}

.share-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.share-btn.kakao {
    background: #fee500;
    color: #3c1e1e;
}

.share-btn.url {
    background: #ff9a9e;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 광고 컨테이너 */
.ad-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.ad-container.top {
    margin-top: 0;
}

.ad-container.bottom {
    margin-bottom: 0;
}

/* 푸터 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.footer p {
    margin-bottom: 5px;
    color: #666;
}

.disclaimer {
    font-size: 0.9rem;
    color: #999;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .intro-section,
    .upload-section,
    .analyzing-section,
    .result-section {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .intro-content h2 {
        font-size: 1.5rem;
    }
    
    .color-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .color-scanner {
        width: 150px;
        height: 150px;
    }
    
    .scan-face {
        font-size: 4rem;
    }
    
    .analyzing-steps {
        gap: 8px;
    }
    
    .step {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .detailed-recommendations {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .color-palette {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
    
    .accessory-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .season-result h3 {
        font-size: 1.5rem;
    }
    
    .color-types {
        grid-template-columns: 1fr;
    }
    
    .upload-tips {
        padding: 15px;
    }
    
    .upload-tips li {
        font-size: 0.9rem;
    }
    
    .color-palette {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    animation: fadeInUp 0.6s ease forwards;
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }

/* 호버 효과 */
.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
