
/* RESET & VARIABLES */
:root {
    --bg-main: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', system-ui, sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: 0.2s ease; }
a:hover { color: var(--accent-hover); }

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem 2rem;
    text-align: center;
}
.navbar h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar p { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; margin-top: 0.25rem; }

/* HERO */
.hero {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-main) 100%);
}
.hero h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* GRID CONTAINER */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* CARDS */
.card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-content { padding: 1.5rem; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
.card-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: #fff; }

/* SUBPAGE ARTICLE STYLING */
.article-container { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.article-container h3 { font-family: var(--font-heading); font-size: 2rem; margin: 3rem 0 1rem 0; color: #fff; }
.article-container h3 a { color: #fff; }
.article-container p { font-size: 1.1rem; margin-bottom: 1.5rem; color: #cbd5e1; }
.article-container ul { margin: 0 0 2rem 2rem; font-size: 1.1rem; color: #cbd5e1; }
.article-container li { margin-bottom: 0.5rem; }

/* Subpage Images */
.article-container figure, .article-container img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Availability Button */
.availability-container { text-align: center; margin: 2rem 0 3rem 0; }
.availability-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.availability-link:hover { transform: scale(1.05); box-shadow: 0 15px 25px rgba(99, 102, 241, 0.5); }

/* Footer */
footer { text-align: center; padding: 3rem; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.05); margin-top: 4rem; }


/* 2-COLUMN LAYOUT */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

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

/* SEARCH BAR */
.search-container {
    margin-bottom: 2rem;
}
#searchInput {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-sans);
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
#searchInput:focus {
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 15px rgba(99, 102, 241, 0.3);
}
#searchInput::placeholder {
    color: rgba(255,255,255,0.4);
}

/* SIDEBAR */
.sidebar-inner {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 100px;
}
.sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}
.popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.popular-list li {
    margin-bottom: 0.8rem;
}
.popular-list a {
    display: block;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.popular-list a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    transform: translateX(5px);
}
