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

body {
    font-family: 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #e0f2ff 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 0;
    margin-bottom: 30px;
    border-bottom: 3px solid #ffb6e1;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    padding: 0 20px;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    font-size: 1.6em;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6ec7 0%, #b06fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6ec7;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    color: #b06fff;
}

.nav-dropdown > a:hover {
    color: #ff6ec7;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    min-width: 200px;
    list-style: none;
    z-index: 200;
    border: 2px solid #f0f0f0;
    margin-top: 10px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: linear-gradient(135deg, #fff5fc 0%, #f0f0ff 100%);
    color: #ff6ec7;
    padding-left: 25px;
}

header h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, #ff6ec7 0%, #b06fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #888;
    font-size: 1.1em;
}

.back-btn {
    display: inline-block;
    color: #ff6ec7;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-5px);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.hero-title {
    font-size: 2.2em;
    background: linear-gradient(135deg, #ff6ec7 0%, #b06fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Category Section */
.category-section {
    text-align: center;
    margin-bottom: 40px;
}

.category-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.category-tag {
    background: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 600;
    color: #b06fff;
    border: 2px solid #e8d5ff;
    box-shadow: 0 2px 10px rgba(176, 111, 255, 0.1);
}

/* Section Titles */
.section-title {
    font-size: 1.6em;
    color: #333;
    margin-bottom: 10px;
}

.section-desc {
    color: #666;
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* Test Sections */
.test-section {
    margin-bottom: 50px;
    scroll-margin-top: 80px;
}

/* Test Grid */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.test-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.test-card .btn-primary,
.test-card .btn-disabled {
    margin-top: auto;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6ec7, #b06fff, #6ec7ff);
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 110, 199, 0.2);
    border-color: #ffb6e1;
}

.test-card.coming-soon {
    opacity: 0.6;
}

.test-card.coming-soon:hover {
    transform: translateY(-5px);
}

.test-icon {
    font-size: 4em;
    text-align: center;
    margin-bottom: 15px;
}

.test-card h2,
.test-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.test-card p {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.6;
}

.test-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #888;
}

/* Info Section */
.info-section {
    margin-bottom: 40px;
}

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

.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.info-card h3 {
    font-size: 1.1em;
    color: #b06fff;
    margin-bottom: 10px;
}

.info-card p {
    color: #666;
    font-size: 0.95em;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-disabled {
    display: block;
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6ec7 0%, #b06fff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 110, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 110, 199, 0.4);
}

.btn-secondary {
    background: white;
    color: #ff6ec7;
    border: 2px solid #ff6ec7;
}

.btn-secondary:hover {
    background: #fff0f9;
    transform: translateY(-2px);
}

.btn-disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

/* Test Container */
.test-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6ec7, #b06fff);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 30px;
}

/* Question Card */
.question-card {
    margin-bottom: 30px;
}

.question-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

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

.answer-btn {
    padding: 20px 30px;
    font-size: 1.1em;
    border: 3px solid #f0f0f0;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #333;
}

.answer-btn:hover {
    background: #fff5fc;
    border-color: #ffb6e1;
    transform: translateX(10px);
}

.answer-btn.selected {
    background: linear-gradient(135deg, #ff6ec7 0%, #b06fff 100%);
    color: white;
    border-color: #ff6ec7;
    transform: scale(1.02);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.button-group button {
    flex: 1;
}

/* Result Container */
.result-container {
    max-width: 800px;
    margin: 0 auto;
}

.result-card {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 5px solid;
    text-align: center;
}

.result-emoji {
    font-size: 6em;
    margin-bottom: 20px;
}

.result-type {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 10px;
}

.result-name {
    font-size: 1.8em;
    color: #666;
    margin-bottom: 10px;
}

.result-title {
    font-size: 1.3em;
    color: #999;
    margin-bottom: 30px;
}

.result-section {
    margin: 30px 0;
    text-align: left;
}

.result-section h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
}

.result-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

.trait-list {
    list-style: none;
    padding-left: 0;
}

.trait-list li {
    padding: 12px 20px;
    margin: 8px 0;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #ff6ec7;
}

.famous-people {
    font-size: 1.1em;
    color: #666;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.mbti-breakdown {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fff5fc 0%, #f0f8ff 100%);
    border-radius: 15px;
}

.mbti-breakdown h4 {
    text-align: center;
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #b06fff;
}

.breakdown-item span:first-child {
    font-weight: 600;
    color: #333;
}

.breakdown-item span:last-child {
    color: #666;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 30px auto 0;
}

/* Page Content (Privacy, Terms, About, Contact) */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.page-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6ec7 0%, #b06fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-date {
    text-align: center;
    color: #999;
    margin-bottom: 40px;
    font-size: 0.9em;
}

.content-section {
    margin-bottom: 35px;
}

.content-section h2 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.content-section h3 {
    font-size: 1.1em;
    color: #555;
    margin: 15px 0 10px;
}

.content-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.content-section ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.content-section ul li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 5px;
}

.content-section a {
    color: #b06fff;
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Contact Page */
.contact-info {
    margin: 20px 0;
}

.contact-item {
    background: linear-gradient(135deg, #fff5fc 0%, #f0f8ff 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 15px;
}

.contact-item h3 {
    color: #b06fff;
    margin-bottom: 10px;
}

.contact-detail {
    font-size: 1.2em;
    font-weight: 600;
    color: #ff6ec7;
}

.faq-item {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-left: 4px solid #b06fff;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.faq-item p {
    color: #555;
    line-height: 1.7;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    margin-top: 60px;
    padding: 40px 0;
    border-top: 3px solid #ffb6e1;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6ec7;
}

.footer-copy {
    text-align: center;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.footer-disclaimer {
    text-align: center;
    color: #aaa;
    font-size: 0.8em;
}

footer p {
    text-align: center;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 5px 0;
        margin-top: 5px;
        min-width: auto;
        border-radius: 10px;
        background: #f9f5ff;
    }

    .dropdown-menu li a {
        padding: 8px 15px;
        font-size: 0.85em;
    }

    .hero-title {
        font-size: 1.6em;
    }

    .hero-description {
        font-size: 1em;
    }

    header h1 {
        font-size: 2em;
    }

    .test-container, .result-card {
        padding: 25px;
    }

    .page-content {
        padding: 25px;
    }

    .question-title {
        font-size: 1.4em;
    }

    .result-emoji {
        font-size: 4em;
    }

    .result-type {
        font-size: 3em;
    }

    .button-group {
        flex-direction: column;
    }

    .breakdown-item {
        flex-direction: column;
        gap: 5px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .category-tags {
        gap: 8px;
    }

    .category-tag {
        font-size: 0.85em;
        padding: 8px 18px;
    }
}
