/* =========================================================
   SHARED LAYOUT CSS
   Header / Footer / Navigation Only
   Tailwind-compatible: NO global selectors
   ========================================================= */


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 240px;
    height: auto;
    object-fit: contain;
}

.brand-logo-footer {
    width: 200px;
    height: auto;
    margin-top: -10px;
    object-fit: contain;
    padding: 0;
    border-radius: 5px;
}


/* =========================================================
   DESKTOP HEADER
   ========================================================= */

.desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px;
    background-color: #1d1c1c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}


/* =========================================================
   DESKTOP SEARCH
   ========================================================= */

.search-container {
    display: flex;
    align-items: center;
    width: 600px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 15px;
    outline: none;
}

.search-icons {
    display: flex;
    gap: 15px;
    padding: 0 15px;
    color: #777777;
    font-size: 18px;
    cursor: pointer;
}

.search-btn {
    background-color: #e63946;
    color: #ffffff;
    border: none;
    padding: 0 25px;
    height: 46px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #d62828;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    gap: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #f3f1f1;
    transition: color 0.3s ease;
}

.action-btn:hover {
    color: #e63946;
}


/* =========================================================
   AUTH LINK
   Scoped to IDs so Tailwind is less likely to be affected
   ========================================================= */

#desktopAuthLink,
#desktopAuthLink span,
#desktopAuthLink i {
    color: #f8f4f4 !important;
    opacity: 1 !important;
    text-decoration: none;
    transition: color 0.3s ease !important;
}

#desktopAuthLink:hover,
#desktopAuthLink:hover span,
#desktopAuthLink:hover i {
    color: #e63946 !important;
}


/* =========================================================
   MOBILE HEADER
   ========================================================= */

.mobile-header {
    display: none;
}

.mobile-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.mobile-actions {
    display: flex;
    gap: 20px;
    font-size: 20px;
    color: #f8f4f4;
}


/* =========================================================
   MOBILE SEARCH
   ========================================================= */

.search-container-mobile {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    border-radius: 8px;
    padding: 10px 15px;
}

.search-icon-left {
    color: #777777;
    margin-right: 10px;
    font-size: 16px;
}

.search-container-mobile input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.search-icons-right {
    display: flex;
    gap: 15px;
    color: #777777;
    font-size: 16px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 50px 20px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
}

.footer-logo {
    margin-bottom: 20px;
}

.brand-desc {
    color: #bbbbbb;
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 20px;
}

.contact-info p {
    color: #bbbbbb;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =========================================================
   FOOTER SOCIAL LINKS
   ========================================================= */

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #ffffff;
    font-size: 20px;
    background-color: #333333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #e63946;
}


/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #bbbbbb;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #e63946;
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #333333;
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888888;
    font-size: 14px;
}

.developer-credit {
    color: #e63946;
    font-weight: 600;
}


/* =========================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================= */

.mobile-bottom-nav {
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #f0ecec;
    font-size: 12px;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: #e63946;
}


/* =========================================================
   MOBILE AUTH LINK
   ========================================================= */

#mobileAuthLink,
#mobileAuthLink span,
#mobileAuthLink i {
    color: #f0ecec !important;
    opacity: 1 !important;
    transition: color 0.3s ease !important;
}

#mobileAuthLink.active,
#mobileAuthLink.active span,
#mobileAuthLink.active i {
    color: #e63946 !important;
}


/* =========================================================
   CATEGORY NAVIGATION
   Shared navigation only
   ========================================================= */

.category-nav-section {
    width: 100%;
    padding: 40px 50px;
    background-color: #ffffff;
}

.category-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 100px;
    background-color: #efeff0;
    border: 1px solid #8b8a8a;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333333;
}

.category-card:hover {
    border-color: #e63946;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.15);
    transform: translateY(-5px);
}

.cat-icon {
    font-size: 35px;
    color: #555555;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.category-card:hover .cat-icon {
    color: #e63946;
}

.cat-name {
    font-size: 16px;
    font-weight: 600;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

    .search-container {
        width: 400px;
    }

    .footer-container {
        flex-wrap: wrap;
    }

    .footer-col {
        min-width: 45%;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* Header */

    .brand-logo {
        width: 180px;
    }

    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: block;
        background-color: #1d1c1c;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.171);
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 10px 15px;
    }


    /* Mobile search */

    .search-container-mobile {
        display: flex;
        align-items: center;
        background-color: #f1f1f1;
        border-radius: 8px;
        padding: 10px 15px;
    }


    /* Category navigation */

    .category-nav-section {
        padding: 20px 15px;
    }

    .category-container {
        gap: 10px;
        justify-content: space-between;
    }

    .category-card {
        width: 23%;
        height: 85px;
        border-radius: 8px;
        padding: 10px 5px;
    }

    .cat-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .cat-name {
        font-size: 11px;
        text-align: center;
    }


    /* Footer */

    .footer-section {
        padding: 40px 20px 80px;
        margin-bottom: 0;
    }

    .footer-col {
        min-width: 100%;
    }

    .brand-logo-footer {
        width: 170px;
        height: auto;
        margin-top: -10px;
        object-fit: contain;
        padding: 0;
        border-radius: 5px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }


    /* Bottom navigation */

    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        height: 60px;
        width: 100%;
        background-color: #1d1c1c;
        box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.171);
        padding: 10px 0 8px;
        z-index: 999;
    }

}