/* ==========================================
MyCarMarket
Version: v1.4.0
File: static/css/style.css
Global Style + Section System
========================================== */


/* ==========================================
START SECTION 1: GLOBAL LOADER
========================================== */

#global-loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(255,255,255,0.7);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.loader-circle{
    width:50px;
    height:50px;
    border:5px solid #ddd;
    border-top:5px solid #2563eb;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }
}

/* ==========================================
END SECTION 1: GLOBAL LOADER
========================================== */


/* ==========================================
START SECTION 2: TOAST NOTIFICATION
========================================== */

#toast{
    position:fixed;
    top:30px;
    right:30px;
    background:#111827;
    color:#ffffff;
    padding:15px 25px;
    border-radius:10px;
    display:none;
    z-index:99999;
    box-shadow:0 8px 20px rgba(0,0,0,0.2);
}

/* ==========================================
END SECTION 2: TOAST NOTIFICATION
========================================== */


/* ==========================================
START SECTION 3: SCROLL TO TOP BUTTON
========================================== */

#scrollTopBtn{
    position:fixed;
    bottom:25px;
    right:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#2563eb;
    color:#ffffff;
    font-size:22px;
    font-weight:bold;
    cursor:pointer;
    display:none;
    z-index:99999;
    box-shadow:0 6px 18px rgba(0,0,0,0.2);
    transition:0.3s;
}

#scrollTopBtn:hover{
    background:#1d4ed8;
}

/* ==========================================
END SECTION 3: SCROLL TO TOP BUTTON
========================================== */


/* ==========================================
START SECTION 4: GLOBAL BODY
========================================== */

body{
    font-family:Arial, sans-serif;
    background:#f4f6f8;
    margin:0;
    padding:0;
    color:#111827;
}

/* ==========================================
END SECTION 4: GLOBAL BODY
========================================== */


/* ==========================================
START SECTION 5: NAVBAR
========================================== */

.navbar{
    background:#111827;
    color:white;
    height:60px;
    padding:0 50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-sizing:border-box;
}

.logo{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    text-decoration:none;
    flex-shrink:0;
    height:100%;
    overflow:hidden;
}

.navbar-logo{
    height:56px;
    width:auto;
    max-width:320px;
    display:block;
    object-fit:contain;
}

.nav-links{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:22px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    margin:0;
    transition:0.25s;
}

.nav-links a:hover{
    color:#93c5fd;
}

.nav-links form{
    display:flex;
    align-items:center;
    margin:0;
}

.nav-links button{
    background:none;
    border:none;
    color:white;
    font-weight:bold;
    cursor:pointer;
    font-size:inherit;
    margin:0;
    padding:0;
    transition:0.25s;
}

.nav-links button:hover{
    color:#93c5fd;
}

/* ==========================================
END SECTION 5: NAVBAR
========================================== */


/* ==========================================
START SECTION 6: CONTAINER
========================================== */

.container{
    width:90%;
    max-width:1250px;
    margin:40px auto;
}

/* ==========================================
END SECTION 6: CONTAINER
========================================== */


/* ==========================================
START SECTION 7: BUTTONS
========================================== */

.view-btn,
.search-btn,
.btn{
    background:#2563eb;
    color:white;
    border:none;
    text-decoration:none;
    font-weight:bold;
    cursor:pointer;
}

.view-btn{
    display:block;
    text-align:center;
    padding:12px 18px;
    border-radius:10px;
}

.search-btn{
    padding:16px 30px;
    border-radius:10px;
}

.btn{
    width:100%;
    padding:15px;
    font-size:16px;
    border-radius:12px;
}

.view-btn:hover,
.search-btn:hover,
.btn:hover{
    background:#1d4ed8;
}

/* ==========================================
END SECTION 7: BUTTONS
========================================== */


/* ==========================================
START SECTION 8: BADGES
========================================== */

.featured-badge{
    position:absolute;
    top:12px;
    left:12px;
    background:#f59e0b;
    color:#111827;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
    z-index:2;
}

.verified-badge{
    position:absolute;
    top:12px;
    right:12px;
    background:#dcfce7;
    color:#166534;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
    z-index:2;
}

/* ==========================================
END SECTION 8: BADGES
========================================== */


/* ==========================================
START SECTION 9: ADS
========================================== */

.ad-banner{
    background:white;
    padding:20px;
    margin:28px 0;
    border-radius:16px;
    box-shadow:0 8px 24px rgba(0,0,0,0.08);
    text-align:center;
}

.ad-label{
    color:#6b7280;
    font-size:12px;
    margin-bottom:10px;
    text-transform:uppercase;
    letter-spacing:0.5px;
}

.ad-placeholder{
    min-height:90px;
    border:2px dashed #d1d5db;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f9fafb;
    color:#374151;
    line-height:1.5;
}

.ad-placeholder span{
    font-size:13px;
    color:#6b7280;
}

/* ==========================================
END SECTION 9: ADS
========================================== */


/* ==========================================
START SECTION 10: FOOTER
========================================== */

.footer{
    background:#111827;
    color:white;
    text-align:center;
    padding:35px 20px;
    margin-top:50px;
}

.footer a{
    color:#d1d5db;
    text-decoration:none;
    font-weight:bold;
}

.footer a:hover{
    color:white;
    text-decoration:underline;
}

/* ==========================================
END SECTION 10: FOOTER
========================================== */


/* ==========================================
START SECTION 11: TABLET RESPONSIVE
========================================== */

@media (max-width:992px){

    .navbar{
        padding:16px 22px;
        flex-direction:column;
        gap:12px;
    }

    .nav-links{
        justify-content:center;
        gap:8px;
    }

}

/* ==========================================
END SECTION 11: TABLET RESPONSIVE
========================================== */


/* ==========================================
START SECTION 12: MOBILE RESPONSIVE
========================================== */

@media (max-width:768px){

    body{
        overflow-x:hidden;
    }

    .navbar{
        padding:12px 10px;
        flex-direction:column;
        gap:10px;
    }

    .logo{
        width:100%;
        justify-content:center;
    }

    .navbar-logo{
        height:40px;
        max-width:200px;
    }

    .nav-links{
        width:100%;
        display:grid;
        grid-template-columns:repeat(4,1fr);
        gap:6px;
    }

    .nav-links a,
    .nav-links button{
        margin:0;
        font-size:11px;
        background:rgba(255,255,255,0.09);
        padding:7px 5px;
        border-radius:999px;
        text-align:center;
        line-height:1.2;
        width:100%;
        box-sizing:border-box;
    }

    .nav-links form{
        display:block;
        width:100%;
    }

    .container{
        width:94%;
        margin:22px auto;
    }

    .search-btn,
    .btn{
        width:100%;
        box-sizing:border-box;
    }

    .ad-banner{
        padding:12px;
    }

    .ad-placeholder{
        min-height:65px;
        font-size:12px;
    }

    .footer{
        padding:24px 14px;
        font-size:12px;
        line-height:1.5;
    }

    #toast{
        top:15px;
        right:12px;
        left:12px;
        padding:12px 14px;
        font-size:13px;
        text-align:center;
    }

    #scrollTopBtn{
        width:42px;
        height:42px;
        right:18px;
        bottom:18px;
        font-size:18px;
    }

}

/* ==========================================
END SECTION 12: MOBILE RESPONSIVE
========================================== */

/* ==========================================
START SECTION 13: SMALL MOBILE RESPONSIVE
========================================== */

@media (max-width:480px){

    .navbar-logo{
        height:34px;
        max-width:170px;
    }

    .nav-links{
        grid-template-columns:repeat(3,1fr);
        gap:5px;
    }

    .nav-links a,
    .nav-links button{
        font-size:10px;
        padding:7px 4px;
    }

    .footer{
        font-size:11px;
    }

    .ad-placeholder{
        min-height:55px;
    }

}

/* ==========================================
END SECTION 13: SMALL MOBILE RESPONSIVE
========================================== */

/* ==========================================
START SECTION 14: GLOBAL ANIMATION
========================================== */

.global-card-hover{

    transition:0.25s;

}

.global-card-hover:hover{

    transform:translateY(-4px);

}

.global-fade-in{

    animation:fadeIn 0.4s ease;

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==========================================
END SECTION 14: GLOBAL ANIMATION
========================================== */