/**
 * Page-specific styles
 */

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: var(--z-sticky);
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: var(--radius-lg);
    font-size: var(--text-xl);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-link {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    padding-inline: var(--space-4);
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--accent-gold);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: clamp(var(--text-3xl), 8vw, var(--text-5xl));
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
    line-height: var(--line-height-relaxed);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding-block: var(--space-20);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin-inline: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    max-width: 800px;
    margin-inline: auto;
}

/* ============================================
   CONSULTATION PAGE
   ============================================ */
.page-content {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-16);
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.page-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
}

.page-description {
    color: var(--text-secondary);
}

/* Consultation Form */
.consultation-form {
    max-width: 600px;
    margin-inline: auto;
}

.consultation-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    backdrop-filter: blur(10px);
}

/* ============================================
   HEXAGRAM DISPLAY (Kinh Dịch)
   ============================================ */
.hexagram-container {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-block: var(--space-8);
    flex-wrap: wrap;
}

.hexagram {
    text-align: center;
}

.hexagram-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hexagram-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--space-4);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
}

.hexagram-line {
    height: 8px;
    min-width: 80px;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hexagram-line.yang {
    background: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.hexagram-line.yin {
    display: flex;
    gap: 12px;
}

.hexagram-line.yin::before,
.hexagram-line.yin::after {
    content: '';
    flex: 1;
    height: 100%;
    background: var(--accent-gold);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.hexagram-name {
    margin-top: var(--space-3);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--accent-gold);
}

.hexagram-chinese {
    font-size: var(--text-2xl);
    margin-top: var(--space-1);
}

/* Animation for casting */
.hexagram-line.casting {
    animation: lineFlicker 0.15s ease-in-out infinite;
}

@keyframes lineFlicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ============================================
   RESULT DISPLAY
   ============================================ */
.result-container {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.result-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--glass-border);
}

.result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-light) 100%);
    border-radius: var(--radius-md);
    font-size: var(--text-xl);
}

.result-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

.result-content {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.result-content h1,
.result-content h2,
.result-content h3 {
    color: var(--text-primary);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.result-content h1 {
    font-size: var(--text-2xl);
}

.result-content h2 {
    font-size: var(--text-xl);
}

.result-content h3 {
    font-size: var(--text-lg);
}

.result-content p {
    margin-bottom: var(--space-4);
}

.result-content ul,
.result-content ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.result-content li {
    margin-bottom: var(--space-2);
    list-style: disc;
}

.result-content strong {
    color: var(--accent-gold);
}

/* ============================================
   NUMEROLOGY CHART
   ============================================ */
.numerology-chart {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

@media (max-width: 600px) {
    .numerology-chart {
        grid-template-columns: repeat(2, 1fr);
    }
}

.numerology-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.numerology-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.numerology-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.numerology-number.master {
    color: var(--accent-purple);
    text-shadow: 0 0 20px var(--accent-purple);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        text-shadow: 0 0 20px var(--accent-purple);
    }

    50% {
        text-shadow: 0 0 30px var(--accent-purple), 0 0 40px var(--accent-purple-light);
    }
}

.numerology-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
    margin-top: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   PAYMENT MODAL
   ============================================ */
.payment-modal {
    width: 400px;
}

.payment-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.payment-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: var(--font-medium);
    margin-bottom: var(--space-1);
}

.step-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Zalo support banner */
.zalo-support {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(0, 136, 255, 0.1);
    border: 1px solid rgba(0, 136, 255, 0.3);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
}

.zalo-support a {
    color: #0088ff;
    font-weight: var(--font-medium);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding-block: var(--space-8);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-gold);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .hexagram-container {
        gap: var(--space-6);
    }

    .consultation-card {
        padding: var(--space-5);
    }

    .payment-modal {
        width: 100%;
    }

    .numerology-chart {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding-block: var(--space-16);
}

.cta-box {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
    padding: var(--space-10);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(147, 112, 219, 0.15) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: var(--accent-gold);
}

.cta-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--line-height-relaxed);
}

.btn-cta {
    background: linear-gradient(135deg, #00b14f 0%, #009b44 100%);
    color: white;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(0, 177, 79, 0.4);
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 177, 79, 0.6);
}

.cta-phone {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.cta-phone a {
    color: var(--accent-gold);
    font-weight: var(--font-semibold);
}

/* ============================================
   NAV CTA LINK
   ============================================ */
.nav-link.cta-link {
    background: linear-gradient(135deg, rgba(0, 177, 79, 0.2) 0%, rgba(0, 177, 79, 0.1) 100%);
    border: 1px solid rgba(0, 177, 79, 0.5);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    color: #00b14f;
    font-weight: var(--font-semibold);
    transition: all var(--transition-fast);
}

.nav-link.cta-link:hover {
    background: #00b14f;
    color: white;
    border-color: #00b14f;
}

/* ============================================
   FOOTER ENHANCED
   ============================================ */
.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--accent-gold);
}

.footer-logo {
    font-size: var(--text-2xl);
}

.footer-name {
    font-family: var(--font-display);
}

.footer-copyright strong {
    color: var(--accent-gold);
}