/* ============================================================
   Jyothisya — Custom Styles
   Premium cosmic astrology theme
   ============================================================ */

/* ─── Google Font Import ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* ─── CSS Variables ───────────────────────────────────────── */
:root {
    --cosmic-dark: #0a0a1a;
    --cosmic-deep: #0f0f2e;
    --cosmic-navy: #141432;
    --cosmic-purple: #1a1a4e;
    --gold-primary: #d4a853;
    --gold-light: #f0d48a;
    --gold-glow: #e8c75080;
    --star-white: #f0f0ff;
    --text-primary: #e8e6f0;
    --text-secondary: #a8a5b8;
    --accent-violet: #7c3aed;
    --accent-indigo: #4f46e5;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success-green: #10b981;
    --danger-red: #ef4444;
    --warning-amber: #f59e0b;
}

/* ─── Base ────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cosmic-dark);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ─── Cosmic Background ──────────────────────────────────── */
.cosmic-bg {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(79, 70, 229, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--cosmic-dark) 0%, var(--cosmic-deep) 50%, var(--cosmic-navy) 100%);
    min-height: 100vh;
}

/* ─── Star Field Animation ───────────────────────────────── */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: white;
    box-shadow:
        25px 50px 0 rgba(255,255,255,0.3),
        100px 120px 0 rgba(255,255,255,0.2),
        200px 40px 0 rgba(255,255,255,0.4),
        350px 180px 0 rgba(255,255,255,0.15),
        500px 90px 0 rgba(255,255,255,0.3),
        620px 250px 0 rgba(255,255,255,0.25),
        780px 60px 0 rgba(255,255,255,0.35),
        900px 200px 0 rgba(255,255,255,0.2),
        150px 300px 0 rgba(255,255,255,0.15),
        430px 350px 0 rgba(255,255,255,0.3),
        700px 400px 0 rgba(255,255,255,0.2),
        50px 450px 0 rgba(255,255,255,0.25),
        300px 500px 0 rgba(255,255,255,0.35),
        800px 150px 0 rgba(255,255,255,0.15),
        950px 350px 0 rgba(255,255,255,0.3),
        1100px 100px 0 rgba(255,255,255,0.2),
        1250px 280px 0 rgba(255,255,255,0.25);
    animation: twinkle 4s ease-in-out infinite alternate;
}

.stars::after {
    width: 1px;
    height: 1px;
    box-shadow:
        80px 80px 0 rgba(255,255,255,0.2),
        180px 160px 0 rgba(255,255,255,0.3),
        320px 220px 0 rgba(255,255,255,0.15),
        470px 60px 0 rgba(255,255,255,0.25),
        640px 300px 0 rgba(255,255,255,0.2),
        750px 180px 0 rgba(255,255,255,0.35),
        890px 100px 0 rgba(255,255,255,0.15),
        1020px 250px 0 rgba(255,255,255,0.3),
        560px 400px 0 rgba(255,255,255,0.2),
        260px 380px 0 rgba(255,255,255,0.25);
    animation: twinkle 5s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ─── Glassmorphism Card ─────────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(212, 168, 83, 0.3);
    box-shadow: 0 8px 32px rgba(212, 168, 83, 0.1);
    transform: translateY(-2px);
}

/* ─── Gold Gradient Text ─────────────────────────────────── */
.gold-text {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Gold Button ────────────────────────────────────────── */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), #c49b40);
    color: var(--cosmic-dark);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
}

.btn-gold:hover::before {
    opacity: 1;
}

.btn-gold:active {
    transform: translateY(0);
}

/* ─── Form Inputs ────────────────────────────────────────── */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15), 0 0 20px rgba(212, 168, 83, 0.08);
    background: rgba(255, 255, 255, 0.08);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

/* ─── File Upload ────────────────────────────────────────── */
.file-upload-zone {
    border: 2px dashed rgba(212, 168, 83, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(212, 168, 83, 0.03);
}

.file-upload-zone:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 168, 83, 0.06);
}

.file-upload-zone.dragover {
    border-color: var(--gold-light);
    background: rgba(212, 168, 83, 0.1);
}

/* ─── Step Cards ─────────────────────────────────────────── */
.step-card {
    position: relative;
    padding: 30px 24px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--cosmic-dark);
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

/* ─── Pulse Animation ────────────────────────────────────── */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(212, 168, 83, 0); }
}

.pulse-gold {
    animation: pulse-gold 2s infinite;
}

/* ─── Floating Animation ─────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ─── Fade In Up ─────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ─── Checkmark Animation (Thank You page) ───────────────── */
@keyframes checkmark-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes circle-fill {
    to {
        box-shadow: inset 0 0 0 100px var(--success-green);
    }
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 3px solid var(--success-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: circle-fill 0.6s 0.5s ease forwards;
}

.checkmark-circle svg {
    width: 50px;
    height: 50px;
}

.checkmark-circle svg path {
    stroke: var(--success-green);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark-draw 0.5s 0.8s ease forwards;
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cosmic-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gold-primary), var(--accent-violet));
    border-radius: 4px;
}

/* ─── Admin Styles — Clean Minimal Redesign ──────────────── */
.admin-body {
    background: #f8f9fb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
}

.admin-sidebar {
    background: #ffffff;
    border-right: 1px solid #e8ecf1;
}

.admin-topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-topbar .gold-text {
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-card {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-card:hover {
    border-color: #d1d9e6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    background: #f1f5f9;
    padding: 11px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #334155;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-table tbody tr td .text-white,
.admin-table tbody tr td .font-medium.text-white {
    color: #0f172a !important;
}

/* ─── Status Badges (Light) ──────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-approved {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-completed {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-rejected {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ─── Admin Buttons (Light) ──────────────────────────────── */
.btn-approve {
    background: #10b981;
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-approve:hover {
    background: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.btn-approve:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-reject {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reject:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.btn-view {
    background: #f0f4ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-view:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
}

/* ─── Loading Spinner ────────────────────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* ─── Form Inputs (Light) ────────────────────────────────── */
.admin-body .form-input,
.admin-body input[type="text"],
.admin-body input[type="date"],
.admin-body input[type="number"],
.admin-body select {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.admin-body .form-input:focus,
.admin-body input[type="text"]:focus,
.admin-body input[type="date"]:focus,
.admin-body select:focus {
    border-color: #93c5fd !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ─── Admin text color overrides for light theme ─────────── */
.admin-body .text-white { color: #0f172a !important; }
.admin-body .text-green-400 { color: #059669 !important; }
.admin-body .text-red-400 { color: #dc2626 !important; }
.admin-body .text-blue-400 { color: #2563eb !important; }
.admin-body .text-purple-400 { color: #7c3aed !important; }
.admin-body .text-yellow-300 { color: #d97706 !important; }
.admin-body .text-green-300 { color: #059669 !important; }
.admin-body .text-red-300 { color: #dc2626 !important; }

/* ─── Gold button for light theme ────────────────────────── */
.admin-body .btn-gold {
    background: #1e293b !important;
    color: #ffffff !important;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-body .btn-gold:hover {
    background: #334155 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    
    .admin-table {
        font-size: 0.8rem;
    }
    
    .admin-table thead th,
    .admin-table tbody td {
        padding: 10px 8px;
    }
}

/* ═══════════════════════════════════════════════════════
   PHASE 1: Navigation, Footer, & Mega-Menu Styles
   ═══════════════════════════════════════════════════════ */

/* ─── Navigation Glass Bar ───────────────────────────── */
.nav-glass {
    background: rgba(10, 10, 26, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.nav-link.nav-active {
    color: var(--gold-primary);
    background: rgba(212, 168, 83, 0.08);
}

.nav-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.25s;
}

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

.nav-mega-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scaleY(0.96);
    min-width: 340px;
    background: rgba(20, 20, 50, 0.97);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-mega-panel,
.nav-dropdown:focus-within .nav-mega-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scaleY(1);
}
.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-mega-grid {
    display: grid;
    gap: 4px;
}

.nav-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    color: inherit;
}
.nav-mega-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.nav-mega-item.active {
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.15);
}
.nav-mega-item.nav-coming-soon {
    opacity: 0.5;
    pointer-events: none;
}

.nav-mega-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.nav-mega-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.nav-mega-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* ─── Mobile Drawer ──────────────────────────────────── */
.mobile-drawer {
    background: rgba(10, 10, 26, 0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-drawer.drawer-open {
    max-height: 600px;
}
.mobile-drawer:not(.hidden) {
    max-height: 600px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.mobile-nav-link.active {
    color: var(--gold-primary);
    background: rgba(212, 168, 83, 0.08);
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
    background: rgba(10, 10, 26, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 40px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 8px;
}
.footer-disclaimer {
    font-size: 0.7rem !important;
    opacity: 0.6;
    max-width: 600px;
    margin: 0 auto !important;
    line-height: 1.5;
}

/* ─── Footer Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
