/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-8);
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--gray-50);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    background: var(--background-color);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-left: var(--space-2);
}

.lang-btn {
    background: none;
    border: none;
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-600);
    min-width: 32px;
}

.lang-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.dark-mode-toggle:hover {
    background: var(--gray-100);
    transform: scale(1.1);
}

.dark-mode-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--gray-700);
    margin: 2px 0;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: calc(var(--space-20) + 60px) 0 var(--space-20);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbti-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.mbti-card {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.mbti-card.infj {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 20%;
    left: 10%;
    animation-delay: -0.5s;
}

.mbti-card.enfp {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 40%;
    right: 20%;
    animation-delay: -1s;
}

.mbti-card.intj {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: 30%;
    left: 20%;
    animation-delay: -1.5s;
}

.mbti-card.esfp {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    top: 10%;
    right: 10%;
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Featured Tests Section */
.featured-tests {
    padding: var(--space-20) 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.test-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.test-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.test-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.test-card.featured .test-content {
    color: var(--white);
}

.test-image {
    position: relative;
    padding: var(--space-8);
    text-align: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.test-card.featured .test-image {
    background: rgba(255, 255, 255, 0.1);
}

.test-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
}

.test-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--accent-color);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.test-content {
    padding: var(--space-6);
}

.test-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.test-card.featured .test-title {
    color: var(--white);
}

.test-description {
    color: var(--gray-600);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.test-card.featured .test-description {
    color: rgba(255, 255, 255, 0.9);
}

.test-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.test-card.featured .test-meta {
    color: rgba(255, 255, 255, 0.8);
}

.test-button {
    width: 100%;
    padding: var(--space-3) var(--space-6);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.test-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.test-card.featured .test-button {
    background: var(--white);
    color: var(--primary-color);
}

.test-card.featured .test-button:hover {
    background: var(--gray-100);
}

/* Trending Section */
.trending {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.trending-grid {
    display: grid;
    gap: var(--space-4);
    max-width: 600px;
    margin: 0 auto;
}

.trending-item {
    display: flex;
    align-items: center;
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.trending-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.trending-rank {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: var(--space-4);
}

.trending-content {
    flex: 1;
}

.trending-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.trending-count {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.trending-arrow {
    font-size: var(--font-size-xl);
    color: var(--gray-400);
    transition: var(--transition);
}

.trending-item:hover .trending-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Results Showcase */
.results-showcase {
    padding: var(--space-20) 0;
    background-color: var(--white);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.result-preview {
    text-align: center;
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.result-preview:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.result-type {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
}

.result-preview h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.result-preview p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Share Section */
.share-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.share-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.share-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--space-4);
    color: var(--white);
}

.footer-section p {
    color: var(--gray-300);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section ul li a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: var(--font-size-lg);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-400);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-2xl);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-6);
    color: var(--gray-500);
    font-size: var(--font-size-3xl);
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close:hover {
    color: var(--gray-700);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-6);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .tests-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .header-right {
        position: relative;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: calc(100% + var(--space-4));
        right: 0;
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        min-width: 200px;
        z-index: 1001;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--space-2);
        gap: 0;
    }
    
    .nav-list li {
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: var(--space-3) var(--space-4);
    }
    
    .dark-mode-toggle {
        margin-left: 0;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-right: var(--space-2);
    }
    
    .lang-btn {
        padding: var(--space-1) var(--space-2);
        font-size: var(--font-size-xs);
        min-width: 28px;
    }
    
    .mobile-menu-btn {
        display: flex;
        margin-left: var(--space-2);
    }
    
    .nav-link {
        display: block;
        padding: var(--space-4) 0;
        font-size: var(--font-size-lg);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        padding: calc(var(--space-16) + 60px) 0 var(--space-16);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .tests-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--space-6);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .test-card {
        margin-bottom: var(--space-4);
    }
    
    .trending-item {
        padding: var(--space-4);
    }
    
    .result-preview {
        padding: var(--space-6);
    }
    
    .share-content h2 {
        font-size: var(--font-size-2xl);
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --gray-600: #000000;
        --gray-700: #000000;
        --gray-800: #000000;
        --gray-900: #000000;
    }
}

/* Test Result Styles */
.result-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.result-header {
    margin-bottom: 2rem;
}

.result-header h2 {
    color: var(--primary-color);
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-type-display {
    font-size: var(--font-size-2xl);
    font-weight: bold;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.result-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: var(--font-size-xl);
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.result-description {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.result-details {
    margin-bottom: 2rem;
}

.traits-section,
.compatibility-section,
.career-section {
    margin-bottom: 1.5rem;
}

.traits-section h4,
.compatibility-section h4,
.career-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
}

.traits-list,
.compatibility-list,
.career-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.trait-tag,
.compatibility-tag,
.career-tag {
    background: white;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 2px solid var(--gray-200);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.trait-tag {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.compatibility-tag {
    border-color: var(--success-color);
    color: var(--success-color);
}

.career-tag {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.result-share-btn,
.retake-test-btn,
.close-test-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
}

.result-share-btn {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

.retake-test-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.close-test-btn {
    background: var(--gray-500);
    color: white;
}

.result-share-btn:hover,
.retake-test-btn:hover,
.close-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Answer Selection Feedback */
.option-button.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Mobile responsive adjustments for results */
@media (max-width: 768px) {
    .result-container {
        padding: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-share-btn,
    .retake-test-btn,
    .close-test-btn {
        width: 100%;
    }
    
    .traits-list,
    .compatibility-list,
    .career-list {
        justify-content: flex-start;
    }
}

/* FAQ Modal Styles */
.faq-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.faq-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.faq-item {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.faq-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

.close-faq-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: var(--font-size-base);
}

.close-faq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Contact Modal Styles */
.contact-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--gray-700);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.submit-contact-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-size: var(--font-size-base);
}

.submit-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.close-contact-btn {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-size: var(--font-size-base);
}

.close-contact-btn:hover {
    background: var(--gray-300);
    transform: translateY(-2px);
}

/* Trending Item Hover Effects */
.trending-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.trending-item:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trending-item:hover .trending-arrow {
    transform: translateX(5px);
}

.trending-arrow {
    transition: transform 0.3s ease;
}

/* Toast Message Styles */
.toast-message {
    font-family: var(--font-family);
    animation: slideInRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile Responsive for Modal Content */
@media (max-width: 768px) {
    .faq-container,
    .contact-container {
        padding: 1rem;
    }
    
    .faq-container h2,
    .contact-container h2 {
        font-size: var(--font-size-2xl);
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .submit-contact-btn,
    .close-contact-btn {
        width: 100%;
    }
}

/* Loading Spinner Styles */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--gray-600);
    font-size: var(--font-size-lg);
    text-align: center;
}

/* Offline Notification Styles */
.offline-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--warning-color), #f97316);
    color: white;
    padding: 12px 20px;
    text-align: center;
    z-index: 10002;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.offline-notification button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.offline-notification button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Dark Mode Toggle Styles */
.dark-mode-toggle {
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    transform: scale(1.1);
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.test-card,
.trending-item,
.result-preview {
    animation: fadeInUp 0.6s ease-out;
}

.test-card:nth-child(2) { animation-delay: 0.1s; }
.test-card:nth-child(3) { animation-delay: 0.2s; }
.test-card:nth-child(4) { animation-delay: 0.3s; }
.test-card:nth-child(5) { animation-delay: 0.4s; }
.test-card:nth-child(6) { animation-delay: 0.5s; }

/* Button Hover Effects Enhancement */
.test-button,
.cta-button,
.share-btn {
    position: relative;
    overflow: hidden;
}

.test-button::before,
.cta-button::before,
.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.test-button:hover::before,
.cta-button:hover::before,
.share-btn:hover::before {
    left: 100%;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Better Accessibility */
.test-button:focus,
.cta-button:focus,
.share-btn:focus,
.option-button:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #800080;
        --gray-600: #000000;
        --gray-400: #606060;
    }
}

/* Ad Blocker Detection */
.adsbox {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
}

/* Ad Consent Banner (for future use) */
.ad-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-800);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10003;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.ad-consent-banner.show {
    transform: translateY(0);
}

.ad-consent-content {
    flex: 1;
    margin-right: 1rem;
}

.ad-consent-buttons {
    display: flex;
    gap: 0.5rem;
}

.ad-consent-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ad-consent-btn.accept {
    background: var(--success-color);
    color: white;
}

.ad-consent-btn.decline {
    background: var(--gray-600);
    color: white;
}

.ad-consent-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Animal Test Result Styles */
.mbti-match-section {
    margin-bottom: 1.5rem;
}

.mbti-match-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mbti-match-section h4::before {
    content: "🧬";
    font-size: 1.2em;
}

.mbti-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.mbti-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.mbti-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.compatibility-text {
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid var(--success-color);
    color: var(--gray-700);
    font-style: italic;
    line-height: 1.5;
}

/* Webtoon Test Result Styles */
.webtoon-info,
.genre-info {
    margin-bottom: 1.5rem;
}

.webtoon-info h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.webtoon-info h4::before {
    content: "📱";
    font-size: 1.2em;
}

.genre-info h4 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.genre-info h4::before {
    content: "🎭";
    font-size: 1.2em;
}

.webtoon-title,
.genre-text {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    color: var(--gray-800);
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--gray-200);
    font-size: var(--font-size-lg);
}

.webtoon-title {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #fdf2f8, #fcf3ff);
}

.genre-text {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

/* Food Test Result Styles */
.food-style,
.personality-type {
    margin-bottom: 1.5rem;
}

.food-style h4 {
    color: var(--error-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.food-style h4::before {
    content: "🍽️";
    font-size: 1.2em;
}

.personality-type h4 {
    color: var(--success-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.personality-type h4::before {
    content: "🎯";
    font-size: 1.2em;
}

.food-style-text,
.personality-text {
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    color: var(--gray-700);
    font-weight: 500;
    text-align: center;
    border: 2px solid var(--gray-200);
    line-height: 1.5;
}

.food-style-text {
    border-color: var(--error-color);
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.personality-text {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

/* Drama Info and Color Palette Enhancements */
.drama-info {
    margin-bottom: 1.5rem;
}

.drama-info h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drama-info h4::before {
    content: "🎬";
    font-size: 1.2em;
}

.drama-title {
    background: linear-gradient(135deg, #fdf2f8, #fcf3ff);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--secondary-color);
    color: var(--gray-800);
    font-weight: 600;
    text-align: center;
    font-size: var(--font-size-lg);
}

.match-percentage {
    margin-bottom: 1.5rem;
}

.match-percentage h4 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-percentage h4::before {
    content: "⚡";
    font-size: 1.2em;
}

.percentage-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.percentage-text {
    color: white;
    font-weight: 700;
    font-size: var(--font-size-xl);
}

.color-palette {
    margin-bottom: 1.5rem;
}

.color-palette h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-palette h4::before {
    content: "🎨";
    font-size: 1.2em;
}

.colors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.color-tag {
    background: white;
    color: var(--gray-700);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    border: 2px solid var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.color-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.dessert-match,
.style-tips {
    margin-bottom: 1.5rem;
}

.dessert-match h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dessert-match h4::before {
    content: "🧁";
    font-size: 1.2em;
}

.style-tips h4 {
    color: var(--success-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.style-tips h4::before {
    content: "💡";
    font-size: 1.2em;
}

.dessert-name,
.tips-text {
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    color: var(--gray-700);
    text-align: center;
    border: 2px solid var(--gray-200);
    line-height: 1.5;
    font-weight: 500;
}

.dessert-name {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #fdf2f8, #fcf3ff);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.tips-text {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

/* Enhanced traits section for all tests */
.traits-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.traits-section h4::before {
    content: "⭐";
    font-size: 1.2em;
}

/* Responsive Design for Result Pages */
@media (max-width: 768px) {
    .result-details {
        padding: 0 1rem;
    }
    
    .percentage-circle {
        width: 60px;
        height: 60px;
    }
    
    .percentage-text {
        font-size: var(--font-size-lg);
    }
    
    .mbti-list,
    .colors-list,
    .traits-list {
        gap: 0.3rem;
    }
    
    .mbti-tag,
    .color-tag,
    .trait-tag {
        padding: 0.4rem 0.8rem;
        font-size: var(--font-size-xs);
    }
    
    .webtoon-title,
    .genre-text,
    .drama-title,
    .dessert-name {
        font-size: var(--font-size-base);
        padding: 0.8rem 1rem;
    }
}

/* Celebrity Test Results */
.celebrity-test-result .result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left: 5px solid #5a67d8;
}

.celebrity-test-result .result-icon {
    background: linear-gradient(135deg, #5a67d8, #667eea);
    color: white;
}

.celebrity-test-result .result-icon::before {
    content: '⭐';
}

.celebrity-test-result .celebrity-info {
    background: rgba(90, 103, 216, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.celebrity-test-result .celebrity-info h4 {
    color: #5a67d8;
    margin-bottom: 10px;
    font-size: 16px;
}

.celebrity-test-result .celebrity-group {
    font-size: 18px;
    font-weight: bold;
    color: #4c51bf;
}

.celebrity-test-result .match-percentage {
    text-align: center;
    margin-bottom: 25px;
}

.celebrity-test-result .match-percentage h4 {
    color: #5a67d8;
    margin-bottom: 15px;
}

.celebrity-test-result .percentage-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.celebrity-test-result .percentage-text {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.celebrity-test-result .compatibility-section {
    margin-bottom: 20px;
}

.celebrity-test-result .compatibility-section h4 {
    color: #5a67d8;
    margin-bottom: 15px;
}

.celebrity-test-result .compatibility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.celebrity-test-result .compatibility-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.celebrity-test-result .ideal-date-section {
    background: rgba(90, 103, 216, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.celebrity-test-result .ideal-date-section h4 {
    color: #5a67d8;
    margin-bottom: 10px;
}

.celebrity-test-result .ideal-date-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

.celebrity-test-result .celebrity-mbti {
    text-align: center;
    margin-top: 20px;
}

.celebrity-test-result .celebrity-mbti h4 {
    color: #5a67d8;
    margin-bottom: 10px;
}

.celebrity-test-result .mbti-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Responsive Design for Celebrity Results */
@media (max-width: 768px) {
    .celebrity-test-result .percentage-circle {
        width: 70px;
        height: 70px;
    }
    
    .celebrity-test-result .percentage-text {
        font-size: 16px;
    }
    
    .celebrity-test-result .compatibility-list {
        justify-content: center;
    }
}

/* Love Test Results */
.love-test-result .result-card {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    border-left: 5px solid #e84393;
}

.love-test-result .result-icon {
    background: linear-gradient(135deg, #e84393, #ff6b9d);
    color: white;
}

.love-test-result .result-icon::before {
    content: '💕';
}

.love-test-result .love-style-info {
    background: rgba(232, 67, 147, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.love-test-result .love-style-info h4 {
    color: #e84393;
    margin-bottom: 10px;
    font-size: 16px;
}

.love-test-result .love-style-text {
    font-size: 18px;
    font-weight: bold;
    color: #c44569;
}

.love-test-result .ideal-date-section {
    background: rgba(232, 67, 147, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.love-test-result .ideal-date-section h4 {
    color: #e84393;
    margin-bottom: 10px;
}

.love-test-result .ideal-date-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

.love-test-result .love-advice {
    background: rgba(255, 107, 157, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #ff6b9d;
}

.love-test-result .love-advice h4 {
    color: #e84393;
    margin-bottom: 10px;
    font-size: 16px;
}

.love-test-result .advice-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    font-style: italic;
}

.love-test-result .compatibility-section {
    margin-bottom: 20px;
}

.love-test-result .compatibility-section h4 {
    color: #e84393;
    margin-bottom: 15px;
}

.love-test-result .compatibility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.love-test-result .compatibility-tag {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design for Love Results */
@media (max-width: 768px) {
    .love-test-result .compatibility-list {
        justify-content: center;
    }
    
    .love-test-result .love-style-text {
        font-size: 16px;
    }
}

/* Privacy Policy Page Styles */
.privacy-page {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.last-updated {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    font-size: 0.9rem;
}

.privacy-sections {
    padding: 40px;
}

.privacy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.privacy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.privacy-section h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 4px solid #667eea;
}

.section-content {
    line-height: 1.7;
    color: #555;
}

.section-content p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.section-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.section-content li {
    margin-bottom: 8px;
    position: relative;
}

.section-content li::marker {
    color: #667eea;
}

.section-content strong {
    color: #333;
    font-weight: 600;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    border-left: 4px solid #667eea;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.back-to-home {
    text-align: center;
    padding: 30px 40px;
    background: #f8f9fa;
}

.back-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .privacy-page {
        padding: 100px 0 40px;
    }
    
    .privacy-content {
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .page-header {
        padding: 30px 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .privacy-sections {
        padding: 30px 20px;
    }
    
    .privacy-section h2 {
        font-size: 1.3rem;
    }
    
    .back-to-home {
        padding: 20px;
    }
}
