@import url('https://fonts.googleapis.com/css2?family=Gayathri:wght@400;700&family=Manjari:wght@100;400;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* --- 🎨 Modern App Palette --- */
    --primary: #be185d;
    /* Pink-700 */
    --primary-light: #fbcfe8;
    /* Pink-200 */
    --primary-dark: #831843;
    /* Pink-900 */
    --secondary: #701a75;
    /* Fuchsia-900 */

    --accent: #0ea5e9;
    /* Sky-500 */

    --bg-app: #f8fafc;
    /* Slate-50 */
    --surface: #ffffff;

    --text-main: #000000;
    /* Deep Black */
    --text-muted: #111111;
    /* Dark Gray */
    --text-light: #333333;
    /* Medium Gray */

    --border-light: #e2e8f0;
    /* Slate-200 */
    --input-bg: #f1f5f9;
    /* Slate-100 */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-primary: 0 10px 25px -5px rgba(190, 24, 93, 0.4);

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --header-height: 70px;
    --bottom-nav-height: 80px;
}

/* --- Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Manjari', 'Inter', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

body {
    display: flex;
    flex-direction: column;
    /* Subtle Pattern */
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.2s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1100px;
    /* Slightly tighter for app feel */
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    flex: 1;
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: calc(var(--bottom-nav-height) + 30px);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Manjari', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 0.75em;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 0.5em;
}

h2.section-title,
.section-title {
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-full);
    margin-top: 8px;
}

.hero-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Components: App Card --- */
.glass-panel,
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.glass-panel:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
}

.card-title i {
    color: var(--primary);
}

/* --- Components: Buttons --- */
.btn-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.neon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #db2777 100%);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}

.neon-btn:active {
    transform: scale(0.98);
}

.neon-btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.neon-btn-secondary:hover {
    background: var(--bg-app);
}

/* --- Forms: Modern Inputs --- */
form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: all 0.2s ease-in-out;
    -webkit-appearance: none;
    /* Mobile fix */
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    background-color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Floating label effect preparation - keeping simple for now but clean */
input::placeholder {
    color: var(--text-light);
}

.flex.items-center.justify-between button {
    /* For form submit buttons inside containers */
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

/* --- Navigation: Header --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Desktop Menu */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links li a.active,
.nav-links li a:hover {
    color: var(--primary);
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

/* --- Navigation: Bottom Bar (App Style) --- */
.bottom-nav {
    display: none;
    /* Visible on mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: white;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
    /* iPhone X fix */
}

/* FAB Center */
.bottom-nav-fab {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--bg-app);
    box-shadow: 0 4px 10px rgba(190, 24, 93, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.bottom-nav-fab i {
    color: white;
    font-size: 1.5rem;
}

/* Item styles are in media query */

/* --- Mobile Side Menu --- */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-bottom: 100px;
}

.side-menu.active {
    right: 0;
}

.side-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.side-menu a i {
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- Responsive & Mobile --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        font-size: 0.75rem;
        padding: 5px;
        gap: 4px;
        height: 100%;
    }

    .bottom-nav a.active {
        color: var(--primary);
    }

    .bottom-nav a i {
        font-size: 1.4rem;
        margin-bottom: 2px;
    }

    /* Adjust grid for mobile */
    .grid {
        gap: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .main-content {
        padding-top: 80px;
        padding-bottom: 100px;
    }

    /* Enhance touch targets */
    .glass-panel {
        padding: 1.25rem;
    }

    /* Mobile Tables */
    table {
        width: 100%;
    }

    th,
    td {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

/* --- Utilities --- */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.w-full {
    width: 100%;
}

.font-bold {
    font-weight: 700;
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Top Sponsor Bar --- */
.sponsor-bar {
    background: linear-gradient(90deg, #881337 0%, #be123c 50%, #db2777 100%);
    /* Vibrant Red-Pink Gradient */
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    position: fixed;
    /* Fixed at top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    /* Above nav */
    height: auto;
    /* Dynamic height */
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(190, 18, 60, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsor-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    flex-wrap: wrap;
    /* Allow wrapping */
    line-height: 1.4;
}

.sponsor-label {
    opacity: 0.9;
}

.sponsor-link {
    color: #ffffff;
    /* Pure White */
    font-weight: 800;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.sponsor-link:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transform: translateY(-1px);
}

.sponsor-address {
    color: rgba(255, 255, 255, 0.9);
    /* High contrast white */
    font-size: 0.85rem;
    font-weight: 500;
}

.show-mobile {
    display: none;
    width: 100%;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .sponsor-bar {
        padding: 10px 0;
    }

    .hidden-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }

    .sponsor-content {
        flex-direction: column;
        gap: 4px;
    }
}

.text-danger {
    color: #ef4444;
}

/* --- Utility Classes (Tailwind-like) --- */
.w-12 {
    width: 3rem !important;
}

.h-12 {
    height: 3rem !important;
}

.rounded-full {
    border-radius: 50% !important;
}

.object-cover {
    object-fit: cover !important;
}

.mr-4 {
    margin-right: 1rem !important;
}

.flex {
    display: flex !important;
}

.items-center {
    align-items: center !important;
}

.bg-black\/30 {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.p-3 {
    padding: 0.75rem !important;
}

.rounded {
    border-radius: 0.25rem !important;
}

.flex-grow {
    flex-grow: 1 !important;
}

.text-right {
    text-align: right !important;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.font-bold {
    font-weight: 700;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

/* Grid Utilities */
.grid {
    display: grid !important;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.gap-4 {
    gap: 1rem !important;
}

/* Mobile First Grid */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.flex-col {
    flex-direction: column !important;
}