/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Ocean & Cruise Theme */
    --navy: #0a2239;
    --ocean-blue: #1d4e89;
    --sky-blue: #7DAFDB;
    --aqua: #4fc3c8;
    --gold: #d4af37;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --medium-gray: #e1e8ed;
    --dark-gray: #495057;

    /* Room Type Colors */
    --aqua-color: #20b2aa;
    --prime-aqua-color: #1e90ff;
    --aqua-sky-color: #4fc3c8;
    --celebrity-color: #9370db;
    --royal-color: #d4af37;

    /* Spacing */
    --section-padding: 4rem 2rem;
    --container-max-width: 1400px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.hidden {
    display: none !important;
}

/* Header / Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--ocean-blue) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Navigation */
.navigation {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation .container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-btn {
    padding: 0.75rem 2rem;
    background: var(--ocean-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

section h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 1rem;
    text-align: center;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Quiz Section */
.quiz-section {
    background: var(--white);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.question {
    display: none;
    animation: fadeIn 0.5s ease;
}

.question.active {
    display: block;
}

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

.question h3 {
    font-size: 1.6rem;
    color: var(--ocean-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: var(--dark-gray);
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--light-gray);
}

.form-grid input,
.form-grid select {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
    font-size: 1rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--medium-gray);
    background: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.checkbox-grid input {
    width: 18px;
    height: 18px;
}

.ship-detection {
    text-align: center;
    font-style: italic;
    color: var(--ocean-blue);
    margin-bottom: 1.5rem;
}

.option {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    color: var(--dark-gray);
    position: relative;
    overflow: hidden;
}

.option::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 175, 219, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.option:hover::before {
    width: 300px;
    height: 300px;
}

.option:hover {
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--aqua) 100%);
    color: var(--white);
    border-color: var(--ocean-blue);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 20px rgba(29, 78, 137, 0.3);
}

.option:active {
    transform: translateX(10px) scale(0.98);
}

/* Back Button */
.back-btn {
    padding: 0.8rem 1.5rem;
    background: var(--medium-gray);
    color: var(--dark-gray);
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.back-btn:hover {
    background: var(--ocean-blue);
    color: var(--white);
    border-color: var(--ocean-blue);
    transform: translateX(-5px);
}

.back-btn.hidden {
    display: none;
}

/* Quiz Result */
.quiz-result {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--ocean-blue), var(--sky-blue));
    color: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease;
}

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

.quiz-result.hidden {
    display: none;
}

.quiz-result h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.comparison-message {
    margin: 1.5rem auto 0;
    max-width: 640px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.result-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-cta,
.share-tools {
    background: rgba(10, 34, 57, 0.35);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.auth-cta h4,
.share-tools h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 0.75rem;
}

.primary-btn,
.secondary-btn,
.outline-btn {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.outline-btn {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.primary-btn:hover,
.secondary-btn:hover,
.outline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.auth-status {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.share-field {
    display: block;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.share-input {
    margin-top: 0.4rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.share-input input {
    flex: 1;
    min-width: 220px;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
}

.invite-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

.invite-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.invite-input-row input {
    flex: 1;
    min-width: 220px;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
}

.invite-feedback {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    min-height: 1.2rem;
}

.share-note {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.75rem;
}

.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 999;
}

.auth-modal__panel {
    background: var(--white);
    color: var(--navy);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.auth-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}

.auth-modal__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.auth-modal__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-modal__link {
    color: var(--ocean-blue);
    text-align: center;
    font-weight: 600;
    text-decoration: underline;
}

#result-content h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

#result-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

#result-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

#result-content li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.restart-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 0.8rem 2rem;
    background: var(--white);
    color: var(--ocean-blue);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.05);
}

/* Comparison Table Section */
.comparison-section {
    background: var(--light-gray);
}

.comparison-density {
    margin: 2rem auto 1rem;
    text-align: center;
    max-width: 900px;
}

.comparison-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(10, 34, 57, 0.12);
}

.toggle-label {
    font-weight: 600;
    color: var(--navy);
}

.mode-btn {
    border: none;
    background: transparent;
    color: var(--dark-gray);
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mode-btn.active {
    background: var(--navy);
    color: var(--white);
}

.toggle-hint {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.comparison-digest {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.digest-card {
    background: var(--white);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 28px rgba(10, 34, 57, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.digest-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ocean-blue);
    font-weight: 700;
    margin: 0;
}

.digest-card h3 {
    margin: 0;
    color: var(--navy);
}

.digest-card ul {
    padding-left: 1.1rem;
    margin: 0;
    color: var(--dark-gray);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.digest-card li {
    line-height: 1.4;
}

.digest-cta {
    align-self: flex-start;
    border: none;
    background: rgba(31, 78, 137, 0.1);
    color: var(--ocean-blue);
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.digest-cta:hover,
.digest-cta:focus {
    background: var(--ocean-blue);
    color: var(--white);
    outline: none;
}

.comparison-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.comparison-tab {
    border: none;
    background: rgba(10, 34, 57, 0.1);
    color: var(--navy);
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comparison-tab.active {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(10, 34, 57, 0.25);
}

.comparison-panels {
    margin-top: 2rem;
}

.comparison-panel {
    display: none;
}

.comparison-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.panel-heading {
    font-size: 1.6rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--navy), var(--ocean-blue));
    color: var(--white);
}

.comparison-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table th:first-child {
    min-width: 180px;
}

.room-type {
    min-width: 200px;
    text-align: center !important;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.comparison-table tbody tr:hover {
    background: var(--light-gray);
}

.comparison-panel .table-wrapper {
    margin-bottom: 1.5rem;
}

.feature-label {
    font-weight: 600;
    color: var(--navy);
    background: var(--light-gray);
}

.royal-table thead {
    background: linear-gradient(135deg, #0067b1, #00a3da);
}

.room-directory {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.room-directory-loading {
    text-align: center;
    margin: 0;
}

.room-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.room-row:last-child {
    border-bottom: none;
}

.room-row__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 280px;
}

.room-row__icon {
    font-size: 2rem;
}

.room-row__title h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--navy);
}

.room-row__title p {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.room-row__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 220px;
    font-weight: 600;
    color: var(--ocean-blue);
}

.room-row__price {
    color: var(--gold);
}

.room-row__detail {
    font-weight: 400;
    color: var(--dark-gray);
}

.room-row--highlight {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.6);
    border-radius: 12px;
}

.highlight-row {
    background: rgba(125, 175, 219, 0.1);
}

.has-perk {
    color: #28a745;
    font-weight: 600;
}

.no-perk {
    color: #dc3545;
}

/* Room Type Headers */
.basic {
    background: linear-gradient(135deg, #708090, #2F4F4F) !important;
}

.aqua {
    background: linear-gradient(135deg, var(--aqua-color), #17a2b8) !important;
}

.prime-aqua {
    background: linear-gradient(135deg, var(--prime-aqua-color), #4682b4) !important;
}

.aqua-sky {
    background: linear-gradient(135deg, var(--aqua-sky-color), #20c997) !important;
}

.magic-carpet {
    background: linear-gradient(135deg, #ff6b9d, #c06c84) !important;
}

.sky {
    background: linear-gradient(135deg, #89CFF0, #4a90e2) !important;
}

.sunset {
    background: linear-gradient(135deg, #ff7e5f, #feb47b) !important;
}

.concierge-partial {
    background: linear-gradient(135deg, #87CEEB, #4682B4) !important;
}

.concierge {
    background: linear-gradient(135deg, #5F9EA0, #2F4F4F) !important;
}

.prime-concierge {
    background: linear-gradient(135deg, #48D1CC, #008B8B) !important;
}

.edge-villa {
    background: linear-gradient(135deg, #DAA520, #B8860B) !important;
}

.penthouse {
    background: linear-gradient(135deg, #CD853F, #8B4513) !important;
}

.celebrity {
    background: linear-gradient(135deg, var(--celebrity-color), #8a2be2) !important;
}

.royal {
    background: linear-gradient(135deg, var(--royal-color), #b8860b) !important;
}

/* Guide Section */
.guide-section {
    background: var(--white);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guide-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--ocean-blue);
}

.guide-card.basic {
    border-top-color: #708090;
}

.guide-card.aqua {
    border-top-color: var(--aqua-color);
}

.guide-card.prime-aqua {
    border-top-color: var(--prime-aqua-color);
}

.guide-card.aqua-sky {
    border-top-color: var(--aqua-sky-color);
}

.guide-card.magic-carpet {
    border-top-color: #ff6b9d;
}

.guide-card.sky {
    border-top-color: #89CFF0;
}

.guide-card.sunset {
    border-top-color: #ff7e5f;
}

.guide-card.concierge-partial {
    border-top-color: #87CEEB;
}

.guide-card.concierge {
    border-top-color: #5F9EA0;
}

.guide-card.prime-concierge {
    border-top-color: #48D1CC;
}

.guide-card.edge-villa {
    border-top-color: #DAA520;
}

.guide-card.penthouse {
    border-top-color: #CD853F;
}

.guide-card.celebrity {
    border-top-color: var(--celebrity-color);
}

.guide-card.royal {
    border-top-color: var(--royal-color);
}

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

.guide-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.price-tier {
    color: var(--ocean-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.guide-card p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.highlights {
    list-style: none;
    padding: 0;
}

.highlights li {
    padding: 0.4rem 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* Hierarchy Section */
.hierarchy-section {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
}

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

.tier-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tier-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tier-label.wellness {
    background: var(--aqua-color);
}

.tier-label.bridge {
    background: var(--aqua-sky-color);
}

.tier-label.suite {
    background: var(--celebrity-color);
}

.tier-label.premium {
    background: var(--royal-color);
}

.tier-card h4 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 0.8rem;
}

.tier-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .navigation .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem 0.5rem;
    }

    .comparison-mode-toggle {
        flex-direction: column;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .hierarchy-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .option {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--ocean-blue);
    font-size: 1.2rem;
}

/* Accessibility */
.option:focus,
.nav-btn:focus,
.restart-btn:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navigation,
    .quiz-section,
    footer {
        display: none;
    }

    .comparison-section {
        page-break-inside: avoid;
    }
}

/* Fireworks Animation for Iconic Suite */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework-explosion 1.5s ease-out forwards;
}

@keyframes firework-explosion {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.firework-trail {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 3px;
    height: 0;
    background: linear-gradient(to top, transparent, var(--trail-color));
    animation: trail 1s ease-out forwards;
}

@keyframes trail {
    0% {
        height: 0;
        opacity: 1;
    }
    100% {
        height: var(--trail-height);
        opacity: 0;
    }
}

.iconic-result {
    animation: iconic-glow 2s ease-in-out infinite;
}

@keyframes iconic-glow {
    0%, 100% {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 30px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 60px rgba(212, 175, 55, 0.6);
    }
}

/* Privacy Policy Styles */
.privacy-section {
    background: var(--white);
    padding: 3rem 2rem;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.privacy-content h2 {
    color: var(--navy);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.privacy-content h3 {
    color: var(--ocean-blue);
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-content h4 {
    color: var(--ocean-blue);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.privacy-content p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.privacy-content li {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--ocean-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-content a:hover {
    color: var(--aqua);
}

.last-updated {
    font-style: italic;
    color: var(--dark-gray);
    opacity: 0.8;
    font-size: 0.95rem;
}

.back-to-home {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--medium-gray);
}

.btn-back {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--ocean-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-back:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.privacy-notice {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 1rem;
    line-height: 1.6;
}

.privacy-notice a {
    color: var(--aqua);
    text-decoration: underline;
}

.privacy-notice a:hover {
    color: var(--gold);
}

/* Privacy Policy Responsive */
@media (max-width: 768px) {
    .privacy-content {
        padding: 1.5rem;
    }

    .privacy-content h2 {
        font-size: 1.8rem;
    }

    .privacy-content h3 {
        font-size: 1.4rem;
    }

    .privacy-content h4 {
        font-size: 1.2rem;
    }

    .privacy-content ul {
        margin-left: 1.5rem;
    }
}
