/* =================================================
   RESET & VARIABLES
================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #2563eb;
    --blue-dark: #1e40af;
    --blue-light: #60a5fa;
    --dark: #0f172a;
    --gray: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --radius: 10px;
    --transition: all 0.35s ease;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =================================================
   BASE
================================================= */
body {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    color: var(--dark);
    line-height: 1.7;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.visually-hidden {
    position: absolute;
    left: -9999px;
}

/* =================================================
   HEADER
================================================= */
.header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}



/* TOP BAR */
.top-bar {
    background: linear-gradient(90deg, var(--blue), var(--blue-dark));
    color: var(--white);
    font-size: 13px;
    padding: 8px 30px;
    display: flex;
    justify-content: space-between;
}



/* NAV CONTAINER */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
}

/* LOGO */
.logo img {
    width: 150px;
    transition: transform 0.4s;
}

.logo img:hover {
    transform: rotate(-5deg) scale(1.05);
}


/* =================================================
   NAV ACTIONS
================================================= */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-actions .icon {
    position: relative;
    font-size: 18px;
    color: var(--dark);
}

.nav-actions .icon:hover {
    color: var(--blue);
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--blue);
    color: var(--white);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
}

/* =================================================
   MOBILE MENU BUTTON
================================================= */
.menu-toggle {
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blue);
}

/* =================================================
   CATEGORY MENU
================================================= */
.category-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-height: 0;
    transition: var(--transition);
}

.category-nav.show {
    max-height: 900px;
}

.category-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 14px 20px;
}

.category-nav a {
    font-weight: 500;
    position: relative;
}

.category-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: var(--transition);
}

.category-nav a:hover::after {
    width: 100%;
}

/* =================================================
   MAIN CONTENT
================================================= */
main {
    padding: 60px 20px;
    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =================================================
   FOOTER
================================================= */
.footer {
    background: linear-gradient(180deg, var(--dark), #020617);
    color: var(--white);
    padding: 60px 20px 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer h3 {
    margin-bottom: 16px;
    position: relative;
}

.footer h3::after {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--blue-light);
    display: block;
    margin-top: 6px;
}

.footer p,
.footer a {
    font-size: 14px;
    color: #cbd5f5;
}

.footer a:hover {
    color: var(--blue-light);
    padding-left: 4px;
}

/* =================================================
   FOOTER BOTTOM
================================================= */
.footer-bottom {
    margin-top: 35px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

/* =================================================
   RESPONSIVE
================================================= */
@media (max-width: 768px) {
    .search-bar input {
        width: 140px;
    }

    .category-nav ul {
        flex-direction: column;
        gap: 12px;
    }
}
