/**
 * AstrologyWorld.org - Main Stylesheet
 * Professional Indian Theme - Saffron, Beige, White
 */

:root {
    --bg-cream: #FFF8F0;
    --bg-beige: #F5EBE0;
    --bg-light: #FFFFFF;
    --bg-card: #FFFAF5;
    --saffron: #FF9933;
    --saffron-light: #FFB366;
    --saffron-dark: #E68A00;
    --maroon: #800020;
    --maroon-light: #A0324F;
    --turmeric: #E3A857;
    --vermillion: #E34234;
    --text-primary: #2D2D2D;
    --text-secondary: #5C4033;
    --text-muted: #8B7355;
    --text-light: #A89078;
    --border-color: rgba(255, 153, 51, 0.3);
    --border-light: rgba(139, 115, 85, 0.2);
    --shadow-soft: 0 4px 20px rgba(128, 0, 32, 0.08);
    --shadow-card: 0 2px 15px rgba(255, 153, 51, 0.1);
    --gradient-saffron: linear-gradient(135deg, #FF9933 0%, #FFB366 50%, #FF9933 100%);
    --gradient-warm: linear-gradient(180deg, #FFF8F0 0%, #F5EBE0 100%);
    --gradient-header: linear-gradient(135deg, #800020 0%, #A0324F 100%);
    --transition-base: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--gradient-warm);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Mandala Background */
.mandala-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23800020' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23FF9933' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.site-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--gradient-header);
    box-shadow: 0 2px 20px rgba(128, 0, 32, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--saffron);
    color: #FFFFFF;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.05em;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    border-radius: 6px;
}

.brand-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-family: 'Cinzel', serif;
}

.nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 153, 51, 0.2);
    border-color: rgba(255, 153, 51, 0.3);
}

.nav-link.active {
    color: #FFFFFF;
    background: rgba(255, 153, 51, 0.3);
    border-color: var(--saffron);
}

/* User Navigation */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--saffron);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}
.nav-login {
    background: var(--saffron) !important;
    color: white !important;
    border-color: var(--saffron) !important;
}
.nav-login:hover {
    background: var(--saffron-dark) !important;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-dropdown > .nav-link i {
    transition: transform 0.2s;
}
.nav-dropdown.open > .nav-link i {
    transform: rotate(180deg);
}
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    text-decoration: none;
}
.dropdown-item:hover {
    background: rgba(255, 153, 51, 0.1);
    color: var(--saffron-dark);
}
.dropdown-item i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    color: var(--saffron);
}
.dropdown-item.active {
    background: rgba(255, 153, 51, 0.15);
    color: var(--saffron-dark);
}

/* Mobile dropdown */
@media (max-width: 768px) {
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: max-height 0.3s ease;
    }
    /* Disable hover on mobile - only .open class should work */
    .nav-dropdown:hover .dropdown-menu {
        max-height: 0;
    }
    .nav-dropdown.open .dropdown-menu {
        max-height: 500px;
    }
    .nav-dropdown.open:hover .dropdown-menu {
        max-height: 500px;
    }
    .dropdown-item {
        color: rgba(255,255,255,0.85);
        padding: 12px 24px 12px 56px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .dropdown-item:hover,
    .dropdown-item.active {
        background: rgba(255,153,51,0.15);
        color: white;
    }
    .dropdown-item i {
        color: var(--saffron-light);
    }
    .dropdown-divider {
        background: rgba(255, 255, 255, 0.1);
        margin: 4px 20px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}
.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.modal-header h3 {
    margin: 0;
    color: var(--maroon);
    font-family: 'Cinzel', serif;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
}
.modal-close:hover {
    color: var(--maroon);
}
.modal-body {
    padding: 1.5rem;
}

/* ===== MOBILE MENU SYSTEM ===== */

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: rgba(255, 153, 51, 0.2);
    border: 1px solid rgba(255, 153, 51, 0.4);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 153, 51, 0.3);
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--saffron);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger to X Animation */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hide mobile icons on desktop */
.nav-icon-mobile {
    display: none;
}

/* Dropdown arrow animation */
.dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--maroon);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
}

.card:hover {
    border-color: var(--saffron);
    box-shadow: var(--shadow-soft);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--maroon);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: none;
    font-variant: normal;
    letter-spacing: normal;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.form-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235C4033' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Radio & Checkbox */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-base);
}

.radio-option input {
    display: none;
}

.radio-option.selected,
.radio-option:has(input:checked) {
    border-color: var(--saffron);
    background: rgba(255, 153, 51, 0.1);
}

.radio-option:hover {
    border-color: var(--saffron-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--gradient-saffron);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 153, 51, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--maroon);
    color: var(--maroon);
}

.btn-secondary:hover {
    background: var(--maroon);
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--saffron);
    color: var(--saffron-dark);
}

.btn-outline:hover {
    background: var(--saffron);
    color: #FFFFFF;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 2rem;
}

.hero-title {
    font-family: 'Cinzel', serif;
    line-height: 1.2;
}

.title-line {
    display: block;
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.title-highlight {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-saffron);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 2rem 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.zodiac-wheel {
    position: relative;
    width: 320px;
    height: 320px;
    animation: rotate-slow 60s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.zodiac-item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center;
}

.zodiac-symbol {
    font-size: 1.8rem;
    color: var(--maroon);
    text-shadow: 0 0 10px rgba(128, 0, 32, 0.2);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--bg-cream) 0%, var(--bg-beige) 100%);
    border: 3px solid var(--saffron);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate-slow 60s linear infinite reverse;
}

.om-symbol {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 3rem;
    color: var(--maroon);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--saffron);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Rashi/Zodiac Grid */
.rashi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.rashi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
}

.rashi-card:hover {
    border-color: var(--saffron);
    transform: scale(1.02);
    box-shadow: var(--shadow-card);
}

.rashi-symbol {
    font-size: 2.5rem;
    color: var(--maroon);
}

.rashi-info {
    display: flex;
    flex-direction: column;
}

.rashi-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.rashi-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.9rem;
    color: var(--saffron-dark);
}

.rashi-dates {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

.form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    height: fit-content;
    box-shadow: var(--shadow-card);
}

.result-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
    .form-panel,
    .result-panel {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .form-panel,
    .result-panel {
        padding: 1.25rem;
        border-radius: 12px;
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.result-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--maroon);
}

/* Charts Container */
.chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* North Indian Chart */
.north-indian-chart {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.ni-chart-svg {
    width: 100%;
    height: 100%;
}

.ni-chart-svg .house-box {
    fill: var(--bg-card);
    stroke: var(--maroon);
    stroke-width: 2;
}

.ni-chart-svg .house-box:hover {
    fill: rgba(255, 153, 51, 0.1);
}

.ni-chart-svg .diagonal-line {
    stroke: var(--maroon);
    stroke-width: 1;
}

.ni-chart-svg .house-number {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    fill: var(--text-muted);
}

.ni-chart-svg .planet-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    fill: var(--text-primary);
    font-weight: 600;
}

.ni-chart-svg .center-text {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    fill: var(--maroon);
    text-anchor: middle;
}

/* South Indian Chart */
.south-indian-chart {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.si-chart-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid var(--maroon);
}

.si-house {
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    position: relative;
}

.si-house:hover {
    background: rgba(255, 153, 51, 0.1);
}

.si-house-num {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.si-planets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.si-house.center-cell {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    background: var(--bg-beige);
}

/* Divisional Charts Grid */
.divisional-charts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.d-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.d-chart-card:hover,
.d-chart-card.active {
    border-color: var(--saffron);
    box-shadow: var(--shadow-card);
}

.d-chart-card.active {
    background: rgba(255, 153, 51, 0.1);
}

.d-chart-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--maroon);
    margin-bottom: 0.25rem;
}

.d-chart-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Dasha Table */
.dasha-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.dasha-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--maroon);
    margin-bottom: 1.5rem;
}

.dasha-table {
    width: 100%;
    border-collapse: collapse;
}

.dasha-table th,
.dasha-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.dasha-table th {
    background: var(--bg-beige);
    color: var(--maroon);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
}

.dasha-table tr:hover {
    background: rgba(255, 153, 51, 0.05);
}

.dasha-table .current-dasha {
    background: rgba(255, 153, 51, 0.15);
    font-weight: 600;
}

.dasha-planet {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.planet-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #FFFFFF;
}

.planet-sun { background: #FFB300; }
.planet-moon { background: #E0E0E0; color: #333; }
.planet-mars { background: #E53935; }
.planet-mercury { background: #43A047; }
.planet-jupiter { background: #FFD54F; color: #333; }
.planet-venus { background: #EC407A; }
.planet-saturn { background: #5C6BC0; }
.planet-rahu { background: #607D8B; }
.planet-ketu { background: #8D6E63; }

.antardasha-row {
    background: var(--bg-cream);
}

.antardasha-row td:first-child {
    padding-left: 2rem;
}

/* Ashtakvarga */
.ashtakvarga-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.ashtakvarga-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.ashtakvarga-table th,
.ashtakvarga-table td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
}

.ashtakvarga-table th {
    background: var(--maroon);
    color: #FFFFFF;
    font-family: 'Cinzel', serif;
}

.ashtakvarga-table th.sign-header {
    background: var(--saffron);
}

.ashtakvarga-table .total-row {
    background: var(--bg-beige);
    font-weight: 600;
}

.ashtakvarga-table .high-score {
    background: rgba(76, 175, 80, 0.2);
    color: #2E7D32;
}

.ashtakvarga-table .low-score {
    background: rgba(244, 67, 54, 0.2);
    color: #C62828;
}

/* Predictions */
.predictions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.prediction-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
}

.prediction-card h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

.prediction-year {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--saffron-dark);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.prediction-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.prediction-aspects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.aspect-item {
    padding: 1rem;
    background: var(--bg-beige);
    border-radius: 10px;
}

.aspect-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.aspect-rating {
    display: flex;
    gap: 2px;
}

.aspect-star {
    color: var(--saffron);
}

.aspect-star.empty {
    color: var(--border-light);
}

/* City Typeahead */
.typeahead-container {
    position: relative;
}

.typeahead-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-soft);
    display: none;
}

.typeahead-results.active {
    display: block;
}

.typeahead-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.typeahead-item:hover {
    background: rgba(255, 153, 51, 0.1);
}

.typeahead-item:last-child {
    border-bottom: none;
}

.city-name {
    font-weight: 600;
    color: var(--text-primary);
}

.city-details {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.city-coords {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Tabs */
.tabs-container {
    margin: 2rem 0;
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: var(--transition-base);
}

.tab-btn:hover {
    color: var(--maroon);
}

.tab-btn.active {
    color: var(--maroon);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--saffron);
    border-radius: 3px 3px 0 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--bg-beige);
    color: var(--maroon);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
}

.data-table tbody tr:hover {
    background: rgba(255, 153, 51, 0.05);
}

/* Signs Grid */
.signs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.sign-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.sign-card:hover,
.sign-card.selected {
    border-color: var(--saffron);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.sign-card.selected {
    background: rgba(255, 153, 51, 0.1);
}

.sign-symbol {
    font-size: 2.5rem;
    color: var(--maroon);
    display: block;
    margin-bottom: 0.5rem;
}

.sign-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: block;
}

.sign-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.9rem;
    color: var(--saffron-dark);
    display: block;
}

/* Lo Shu Grid */
.loshu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 360px;
    min-width: 280px;
    width: 100%;
    margin: 0 auto;
    border: 3px solid var(--maroon);
}

.loshu-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 1.25rem;
    min-height: 90px;
}

.loshu-cell.empty {
    background: var(--bg-cream);
}

.loshu-cell.filled {
    background: rgba(255, 153, 51, 0.1);
}

.loshu-cell.multiple {
    background: rgba(255, 153, 51, 0.25);
}

.loshu-number {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--maroon);
    font-family: 'Cinzel', serif;
}

.loshu-dots {
    font-size: 0.9rem;
    color: var(--saffron);
    margin-top: 0.25rem;
}

/* Panchang Grid */
.panchang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.panchang-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.panchang-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--saffron);
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.panchang-content {
    flex: 1;
}

.panchang-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.panchang-value {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--maroon);
}

/* Footer */
.site-footer {
    background: var(--gradient-header);
    color: #FFFFFF;
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--saffron);
    color: #FFFFFF;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 8px;
}

.footer-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--saffron);
    display: block;
    margin: 0.5rem 0;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-group h4 {
    font-family: 'Cinzel', serif;
    color: var(--saffron);
    margin-bottom: 0.5rem;
}

.link-group a {
    color: rgba(255, 255, 255, 0.7);
}

.link-group a:hover {
    color: var(--saffron);
}

.footer-zodiac {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 153, 51, 0.3);
    border-bottom: 1px solid rgba(255, 153, 51, 0.3);
    margin-bottom: 2rem;
}

.footer-zodiac h4 {
    font-family: 'Cinzel', serif;
    color: var(--saffron);
    text-align: center;
    margin-bottom: 1.5rem;
}

.zodiac-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.zodiac-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition-base);
}

.zodiac-links a:hover {
    background: rgba(255, 153, 51, 0.2);
}

.zodiac-links .zodiac-symbol {
    font-size: 1.5rem;
    color: var(--saffron);
}

.zodiac-links .zodiac-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 153, 51, 0.2);
    color: var(--saffron);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--saffron);
    color: #FFFFFF;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #C62828;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2E7D32;
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #1565C0;
}

/* Loading */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top-color: var(--saffron);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 248, 240, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-text {
    margin-top: 1rem;
    font-family: 'Cinzel', serif;
    color: var(--maroon);
}

/* Utilities */
.text-center { text-align: center; }
.text-saffron { color: var(--saffron); }
.text-maroon { color: var(--maroon); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }

/* Print */
@media print {
    .main-nav, .site-footer, .btn, .form-panel { display: none !important; }
    body { background: #FFFFFF; }
    .result-panel { border: none; box-shadow: none; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-cta { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .rashi-grid { grid-template-columns: repeat(3, 1fr); }
    .two-column-layout { grid-template-columns: 1fr; }
    .signs-grid { grid-template-columns: repeat(3, 1fr); }
    .chart-container { grid-template-columns: 1fr; }
    .divisional-charts { grid-template-columns: repeat(3, 1fr); }
    .predictions-container { grid-template-columns: 1fr; }
    .panchang-grid { grid-template-columns: 1fr; }
    .footer-main { flex-direction: column; gap: 2rem; }
    .footer-links { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 768px) {
    /* Show hamburger */
    .mobile-toggle { display: flex; }
    
    /* Nav Links - Slide-out Panel */
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #800020 0%, #5c0000 100%);
        flex-direction: column;
        padding: 80px 0 30px;
        z-index: 100;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        gap: 0;
        display: flex;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    /* Mobile Nav Links */
    .nav-link {
        width: 100%;
        padding: 14px 24px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
        font-size: 15px;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .nav-link:hover {
        background: rgba(255, 153, 51, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-link.active {
        background: rgba(255, 153, 51, 0.25);
        border-left: 3px solid var(--saffron);
    }
    
    /* Show mobile icons */
    .nav-icon-mobile {
        display: inline-block;
        margin-right: 12px;
        font-size: 1.1em;
        width: 20px;
        text-align: center;
        color: var(--saffron);
    }
    
    /* Mobile Dropdown */
    .nav-dropdown {
        width: 100%;
    }
    
    /* User/Login button on mobile */
    .nav-login {
        margin: 15px 20px;
        width: calc(100% - 40px) !important;
        justify-content: center !important;
        border-radius: 25px !important;
        background: var(--saffron) !important;
    }
    
    .nav-user {
        margin: 10px 20px;
        width: calc(100% - 40px) !important;
        background: rgba(255, 153, 51, 0.2);
        border-radius: 10px;
        padding: 12px 16px !important;
    }
    
    /* Other responsive styles */
    .title-highlight { font-size: 2.5rem; }
    .features-grid, .rashi-grid, .signs-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row, .form-row-3, .form-row-4 { grid-template-columns: 1fr; }
    .divisional-charts { grid-template-columns: repeat(2, 1fr); }
    .prediction-aspects { grid-template-columns: 1fr; }
    .footer-bottom-content { flex-direction: column; gap: 1rem; text-align: center; }
    .zodiac-wheel { width: 250px; height: 250px; }
}

@media (max-width: 480px) {
    .main-content { padding: 1rem; }
    .section-title { font-size: 1.8rem; }
    .features-grid, .rashi-grid, .signs-grid, .divisional-charts { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    
    /* Full-width mobile menu on small screens */
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 12px 20px;
    }
}
