/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 헤더 스타일 */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #667eea;
}

/* 메인 콘텐츠 */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-time {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
    animation: fadeIn 1s ease-out 1s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffa726;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-button.pulse {
    animation: fadeInUp 0.8s ease-out 0.6s both, pulse 2s infinite 1.5s;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-button.large {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
}

/* 섹션 스타일 */
.about, .how-it-works, .types-preview, .final-cta {
    padding: 4rem 0;
}

.about h2, .how-it-works h2, .types-preview h2, .final-cta h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* 타입 카드 */
.type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.type-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.type-card.egen {
    border-top: 4px solid #ff9a9e;
}

.type-card.teto {
    border-top: 4px solid #a18cd1;
}

.type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.type-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.type-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.type-card ul {
    list-style: none;
    text-align: left;
}

.type-card li {
    padding: 0.5rem 0;
    color: #555;
}

.type-card li:before {
    content: "✓ ";
    color: #667eea;
    font-weight: bold;
}

/* 단계 */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    line-height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
}

/* 타입 미리보기 */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.type-preview {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.type-preview.egen-male {
    border-top: 4px solid #ff9a9e;
}

.type-preview.egen-female {
    border-top: 4px solid #fda085;
}

.type-preview.teto-male {
    border-top: 4px solid #a18cd1;
}

.type-preview.teto-female {
    border-top: 4px solid #667eea;
}

.type-preview h3 {
    margin-bottom: 1rem;
    color: #333;
}

.type-preview p {
    color: #666;
    margin-bottom: 1rem;
}

.celebrity {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* 최종 CTA */
.final-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    color: white;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.disclaimer {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 퀴즈 페이지 스타일 */
.quiz-page {
    background: linear-gradient(135deg, #89C3EB 0%, #F4C6D0 100%);
    min-height: 100vh;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    width: 200px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffa726);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(255,107,107,0.3);
}

.progress-text {
    color: #89C3EB;
    font-weight: bold;
    font-size: 0.9rem;
}

.progress-percent {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.quiz-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.quiz-content {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card {
    text-align: center;
}

.question-number {
    color: #89C3EB;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(137, 195, 235, 0.1);
    border-radius: 20px;
}

.question-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.4;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-btn {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.answer-btn:hover {
    background: #e9ecef;
    border-color: #89C3EB;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 195, 235, 0.2);
}

.answer-btn.selected {
    background: linear-gradient(135deg, #89C3EB, #F4C6D0);
    border-color: #89C3EB;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(137, 195, 235, 0.3);
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.answer-btn:active::before {
    width: 300px;
    height: 300px;
}

.answer-letter {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #89C3EB;
    color: white;
    border-radius: 50%;
    line-height: 30px;
    text-align: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.answer-btn.selected .answer-letter {
    background: white;
    color: #89C3EB;
}

.answer-text {
    flex: 1;
}

/* 성별 선택 */
.gender-selection {
    text-align: center;
}

.gender-selection h2 {
    margin-bottom: 1rem;
    color: #333;
}

.gender-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.gender-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.gender-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 3rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 3px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.gender-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(137, 195, 235, 0.3);
    border-color: #89C3EB;
}

.gender-btn:active {
    transform: translateY(-2px);
}

.gender-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.gender-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

/* 네비게이션 버튼 */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.prev-btn {
    background: #6c757d;
    color: white;
}

.prev-btn:not(:disabled):hover {
    background: #5a6268;
}

.next-btn {
    background: #89C3EB;
    color: white;
}

.next-btn:not(:disabled):hover {
    background: #6fb1e0;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
    background: #cccccc !important;
    color: #666666 !important;
    pointer-events: none;
}

.nav-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.nav-btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-btn {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 광고 페이지 스타일 */
.ads-page {
    background: linear-gradient(135deg, #89C3EB 0%, #F4C6D0 100%);
    min-height: 100vh;
}

.ads-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.ads-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.ads-header h2 {
    color: #333;
    margin-bottom: 1rem;
}

.ads-header p {
    color: #666;
    margin-bottom: 2rem;
}

.ads-title {
    margin-bottom: 2rem;
}

.ads-title h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.ads-title p {
    color: #666;
}

.ad-container {
    margin: 2rem 0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fallback-ad {
    display: none;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.ad-placeholder h4 {
    color: #333;
    margin-bottom: 1rem;
}

.ad-placeholder p {
    color: #666;
    margin-bottom: 1.5rem;
}

.ad-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.ad-button:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.countdown-section {
    margin: 2rem 0;
}

.countdown-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.countdown-text {
    color: #666;
    margin-bottom: 1rem;
}

.countdown-progress {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.countdown-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffa726);
    transition: width 0.3s ease;
    width: 0%;
}

.result-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.result-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.result-btn.active {
    background: #28a745;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.skip-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.ads-info {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* 결과 페이지 스타일 */
.result-page {
    background: linear-gradient(135deg, #89C3EB 0%, #F4C6D0 100%);
    min-height: 100vh;
}

/* 성향 퍼센트 표시 */
.result-percentage {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.result-percentage h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.percentage-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.percentage-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.percentage-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.percentage-type {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.percentage-value {
    font-weight: bold;
    font-size: 1.5rem;
}

.percentage-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.percentage-fill {
    height: 100%;
    border-radius: 15px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.percentage-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.egen-fill {
    background: linear-gradient(90deg, #ff9a9e, #fda085);
}

.teto-fill {
    background: linear-gradient(90deg, #a18cd1, #667eea);
}

.percentage-note {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.result-container {
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.result-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

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

.result-content {
    max-width: 800px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 3rem;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
}

.result-emoji {
    font-size: 3rem;
}

.result-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.result-subtitle {
    color: white;
    font-size: 1.3rem;
    opacity: 0.9;
}

.result-description {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.description-card, .celebrities-card, .compatibility-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.description-card h3, .celebrities-card h3, .compatibility-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.description-card p {
    color: #666;
    line-height: 1.6;
}

.celebrities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.celebrity-item {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #333;
    font-weight: 500;
}

.celebrities-note {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

.compatibility-grid {
    display: grid;
    gap: 1rem;
}

.compatibility-item {
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #dee2e6;
}

.compatibility-item.best {
    background: #d4edda;
    border-left-color: #28a745;
}

.compatibility-item.good {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.compatibility-item.average {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.compatibility-type {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.compatibility-rating {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.compatibility-desc {
    color: #666;
    font-size: 0.9rem;
}

.result-actions {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.share-section {
    margin-bottom: 2rem;
}

.share-section h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

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

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.link {
    background: #6c757d;
    color: white;
}

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

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 1rem;
}

.action-btn.primary {
    background: #667eea;
    color: white;
}

.action-btn.secondary {
    background: #6c757d;
    color: white;
}

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

.result-ad-section {
    margin-top: 2rem;
}

/* 푸터 */
footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .progress-bar {
        width: 100%;
        max-width: 300px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .type-cards {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .quiz-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .answer-options {
        gap: 0.5rem;
    }
    
    .answer-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .gender-options {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .gender-btn {
        padding: 1.5rem 2rem;
        min-width: 120px;
        flex: 1;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .ads-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .result-content {
        margin: 1rem;
    }
    
    .result-badge {
        padding: 1rem 2rem;
        gap: 0.5rem;
    }
    
    .result-emoji {
        font-size: 2rem;
    }
    
    .result-title {
        font-size: 2rem;
    }
    
    .result-subtitle {
        font-size: 1.1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .gender-icon {
        font-size: 3rem;
    }
    
    .quiz-content {
        padding: 1.5rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .ads-content {
        padding: 1.5rem;
    }
    
    .result-badge {
        padding: 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .result-title {
        font-size: 1.8rem;
    }
    
    .result-percentage {
        padding: 1.5rem;
    }
    
    .percentage-value {
        font-size: 1.3rem;
    }
    
    .percentage-bar {
        height: 25px;
    }
}

/* 접근성 개선 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 키보드 포커스 */
button:focus, .answer-btn:focus, .gender-btn:focus, .nav-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .answer-btn {
        border-width: 3px;
    }
    
    .type-card {
        border-width: 3px;
    }
    
    .compatibility-item {
        border-left-width: 6px;
    }
}

/* 애니메이션 감소 모드 지원 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .type-card, .step, .type-preview, .description-card, .celebrities-card, .compatibility-card, .result-actions {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .type-card h3, .step h3, .type-preview h3, .description-card h3, .celebrities-card h3, .compatibility-card h3 {
        color: #e0e0e0;
    }
    
    .answer-btn {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .answer-btn:hover {
        background: #333;
        border-color: #667eea;
    }
}