﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}


/* =========================
   NAVBAR ACCOUNT
========================= */

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-user {
    color: #475569;
    font-size: 14px;
}

    .welcome-user strong {
        color: #172033;
    }

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
}

    .btn-login:hover {
        background: #eff6ff;
    }

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    background: #2563eb;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
}

    .btn-register:hover {
        background: #1d4ed8;
        color: white;
    }

.btn-logout {
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

    .btn-logout:hover {
        background: #fecaca;
    }


/* =========================
   USER AVATAR
========================= */

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111827;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: 0.2s;
}

    .user-avatar:hover {
        background: #374151;
        color: white;
        transform: scale(1.05);
    }


/* =========================
   LOGIN / REGISTER
========================= */

.login-btn {
    padding: 8px 18px;
    border: 1px solid #111827;
    border-radius: 8px;
    color: #111827;
    text-decoration: none;
    margin-right: 10px;
    transition: 0.2s;
}

    .login-btn:hover {
        background: #111827;
        color: white;
    }

.register-btn {
    padding: 8px 18px;
    background: #111827;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

    .register-btn:hover {
        background: #374151;
        color: white;
    }


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #101827;
    color: #fff;
    margin-top: 80px;
}


/* =========================================================
   FOOTER CONTAINER
========================================================= */

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 55px 30px 25px;
    display: grid;
    /*
       Tăng cột cuối để thông tin liên hệ
       có đủ chiều rộng.
    */
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 45px;
}


/* =========================================================
   FOOTER COLUMN
========================================================= */

.footer-column h2 {
    margin: 0 0 15px;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

.footer-column h3 {
    margin: 0 0 15px;
    font-size: 25px;
    font-weight: 600;
    color: #fff;
}

.footer-column p {
    margin: 0 0 14px;
    color: #8d99aa;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   BRAND
========================================================= */

.footer-brand p {
    max-width: 360px;
}


/* =========================================================
   FOOTER LINKS
========================================================= */

.footer-column a {
    display: block;
    margin-bottom: 13px;
    color: #8d99aa;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}

    .footer-column a:hover {
        color: #fff;
    }


/* =========================================================
   CỘT LIÊN HỆ
========================================================= */

/*
   Cột Liên hệ là cột cuối cùng.
   Cho nó rộng hơn để thông tin không bị
   xuống dòng.
*/

.footer-column:last-child {
    min-width: 300px;
}


    /*
   Mỗi thông tin liên hệ nằm trên một hàng.
*/

    .footer-column:last-child p {
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0 0 14px;
        color: #8d99aa;
        font-size: 14px;
        line-height: 1.5;
        /*
       Không cho nội dung bị xuống dòng.
    */
        white-space: nowrap;
    }


        /*
   Khoảng cách giữa icon và nội dung.
*/

        .footer-column:last-child p:first-letter {
            font-size: 15px;
        }


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    border-top: 1px solid #303847;
    max-width: 100%;
}

.copyright {
    width: fit-content;
    margin: 0 auto;
    padding: 20px 30px;
    color: #737b89;
    font-size: 12px;
    text-align: center;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1100px) {

    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 35px;
    }

    /*
       Cột liên hệ chuyển sang hàng mới
       để đủ chiều rộng.
    */

    .footer-column:last-child {
        grid-column: 1 / -1;
        min-width: 0;
    }

        .footer-column:last-child p {
            white-space: nowrap;
        }
}


/* =========================================================
   RESPONSIVE - TABLET NHỎ
========================================================= */

@media (max-width: 900px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-column:last-child {
        grid-column: auto;
        min-width: 0;
    }

        .footer-column:last-child p {
            white-space: normal;
        }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 600px) {

    .footer-container {
        grid-template-columns: 1fr;
        padding: 40px 25px 20px;
        gap: 30px;
    }

    .footer-column h2 {
        font-size: 24px;
    }

    .footer-column h3 {
        font-size: 22px;
    }

    /*
       Trên điện thoại cho phép xuống dòng
       để không bị tràn màn hình.
    */

    .footer-column:last-child {
        min-width: 0;
    }

        .footer-column:last-child p {
            white-space: normal;
            overflow-wrap: break-word;
        }
}
