/* ===========================
   RESET
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --primary: #8b0000;
    --secondary: #c89b3c;
    --gold: #d4af37;

    --bg: #0f1117;
    --bg-card: #1a1d24;

    --text: #ffffff;
    --text-muted: #b7b7b7;

    --shadow: 0 10px 35px rgba(0, 0, 0, 0.3);

}

body {

    font-family: Inter, Arial, sans-serif;

    background: var(--bg);

    color: var(--text);

    overflow-x: hidden;

}


/* ===========================
   SPLASH SCREEN
=========================== */

#splash {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background:

        linear-gradient(
            135deg,
            #2a0000,
            #0f1117
        );

    transition: 0.5s ease;
}

#splash img {

    width: 120px;

    height: 120px;

    border-radius: 30px;

    margin-bottom: 20px;

    animation: pulse 2s infinite;
}

#splash h1 {

    color: var(--gold);

    font-size: 40px;
}

#splash p {

    color: var(--text-muted);

    margin-top: 10px;
}

@keyframes pulse {

    0% {

        transform: scale(1);
    }

    50% {

        transform: scale(1.08);
    }

    100% {

        transform: scale(1);
    }
}


/* ===========================
   SIDEBAR
=========================== */

#sidebar {

    position: fixed;

    left: 0;

    top: 0;

    width: 270px;

    height: 100vh;

    background: #12151d;

    border-right: 1px solid rgba(255,255,255,0.08);

    padding: 25px;

    z-index: 100;
}

.brand {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 40px;
}

.brand img {

    width: 50px;

    height: 50px;

    border-radius: 12px;
}

.brand span {

    font-size: 22px;

    font-weight: 700;
}

#sidebar nav {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

#sidebar nav button {

    background: transparent;

    color: white;

    border: none;

    text-align: left;

    padding: 16px;

    border-radius: 14px;

    font-size: 16px;

    cursor: pointer;

    transition: 0.3s;
}

#sidebar nav button:hover {

    background: rgba(212,175,55,0.15);

    color: var(--gold);
}


/* ===========================
   MAIN
=========================== */

main {

    margin-left: 270px;

    min-height: 100vh;
}


/* ===========================
   TOPBAR
=========================== */

.topbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 20px 30px;

    position: sticky;

    top: 0;

    z-index: 50;

    background: rgba(15,17,23,0.9);

    backdrop-filter: blur(20px);
}

#search {

    flex: 1;

    padding: 16px 20px;

    border: none;

    border-radius: 50px;

    background: #1b1e26;

    color: white;

    font-size: 16px;
}

#languageSwitcher {

    padding: 14px;

    border-radius: 14px;

    background: #1b1e26;

    color: white;

    border: none;
}


/* ===========================
   PAGES
=========================== */

.page {

    display: none;

    padding: 30px;
}

.page.active {

    display: block;
}


/* ===========================
   HERO
=========================== */

.hero {

    height: 400px;

    border-radius: 30px;

    overflow: hidden;

    background:

        linear-gradient(
            rgba(0,0,0,0.45),
            rgba(0,0,0,0.65)
        ),

        url("assets/loktak.jpg");

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}

.overlay {

    padding: 30px;
}

.overlay h1 {

    font-size: 60px;

    color: var(--gold);

    margin-bottom: 15px;
}

.overlay p {

    font-size: 22px;

    margin-bottom: 30px;
}

.overlay button {

    padding: 16px 32px;

    border: none;

    border-radius: 40px;

    background: var(--gold);

    color: black;

    font-size: 18px;

    cursor: pointer;

    font-weight: bold;
}


/* ===========================
   CARDS
=========================== */

.cards {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );

    gap: 25px;

    margin-top: 30px;
}

.card {

    background: var(--bg-card);

    padding: 25px;

    border-radius: 24px;

    cursor: pointer;

    transition: 0.3s;

    box-shadow: var(--shadow);
}

.card:hover {

    transform: translateY(-8px);

    border: 1px solid var(--gold);
}

.card h2 {

    color: var(--gold);

    margin-bottom: 10px;
}

.card p {

    color: var(--text-muted);
}


/* ===========================
   TABS
=========================== */

.tabs {

    display: flex;

    gap: 12px;

    overflow-x: auto;

    margin: 25px 0;
}

.tabs button {

    padding: 12px 18px;

    border: none;

    border-radius: 30px;

    background: #1a1d24;

    color: white;

    cursor: pointer;
}


/* ===========================
   CONTENT GRID
=========================== */

#lineageContainer,
#calendarGrid,
#umangContainer,
#favoritesContainer {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );

    gap: 18px;
}

.item {

    background: #1a1d24;

    padding: 20px;

    border-radius: 20px;

    box-shadow: var(--shadow);
}


/* ===========================
   MOBILE NAV
=========================== */

#bottomNav {

    display: none;
}


/* ===========================
   MOBILE
=========================== */

@media (max-width: 900px) {

    #sidebar {

        display: none;
    }

    main {

        margin-left: 0;

        padding-bottom: 90px;
    }

    .overlay h1 {

        font-size: 38px;
    }

    .overlay p {

        font-size: 18px;
    }

    .topbar {

        flex-direction: column;
    }

    #bottomNav {

        display: flex;

        justify-content: space-around;

        align-items: center;

        position: fixed;

        left: 0;

        right: 0;

        bottom: 0;

        height: 70px;

        background: #12151d;

        border-top: 1px solid rgba(255,255,255,0.1);

        z-index: 999;
    }

    #bottomNav button {

        border: none;

        background: transparent;

        color: white;

        font-size: 22px;
    }
}