@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800&display=swap');


:root {
    --navy: #12233F;
    --orange: #F0641E;
    --orange-dark: #C94F14;
    --mustard: #F4B400;
    --cream: #FBF5E9;
    --white: #FFFFFF;
    --charcoal: #211C1A;
    --gray: #625B55;
    --border: #E4D9C4;
    --green: #23804B;
    --red: #B83A2B;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--cream);
    color: var(--charcoal);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}


/* =========================
   SHARED HEADER
   (matches index / explore / order)
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.nav-container {
    width: min(1180px, calc(100% - 40px));

    min-height: 76px;

    margin: auto;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--navy);

    font-size: 15px;
    font-weight: 800;

    line-height: 1.05;

    text-decoration: none;
}

.brand strong {
    display: block;
}

.brand-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--orange);

    border-radius: 12px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 34px;
}

.main-nav a {
    padding: 27px 0;

    position: relative;

    color: var(--gray);
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--navy);
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    bottom: 17px;
    left: 0;
    right: 0;

    height: 3px;

    background: var(--orange);

    border-radius: 10px;
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
}

.nav-home-button {
    padding: 10px 17px;

    border: 1px solid var(--border);

    background: var(--white);

    border-radius: 999px;

    color: var(--navy);

    font-weight: 800;
    text-decoration: none;
}



/* =========================
   MAIN CONTAINER
========================= */

.reviews-container {
    width: min(100% - 40px, 1050px);
    margin: 0 auto;
    padding: 70px 0 80px;
}


/* =========================
   HEADER
========================= */

.reviews-header {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}


.eyebrow {
    margin: 0 0 10px;

    color: var(--orange);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}


.reviews-header h1 {
    margin: 0;

    color: var(--navy);

    font-family: "Archivo Black", sans-serif;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
}


.subtitle {
    max-width: 650px;
    margin: 20px auto 0;

    color: var(--gray);

    font-size: 1.05rem;
}


/* =========================
   VENDOR CARD
========================= */

.vendor-card {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-bottom: 55px;
    padding: 28px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: 0 12px 30px rgba(18, 35, 63, 0.08);
}


.vendor-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #FFF1E9;
    border-radius: 18px;

    font-size: 2rem;
}


.vendor-info {
    flex: 1;
}


.small-label {
    margin: 0 0 4px;

    color: var(--orange);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}


.vendor-info h2 {
    margin: 0;

    color: var(--navy);

    font-family: "Archivo Black", sans-serif;
    font-size: 1.6rem;
}


.vendor-info p:last-child {
    margin: 4px 0 0;
    color: var(--gray);
}


.vendor-rating {
    min-width: 130px;
    text-align: right;
}


.vendor-rating strong {
    display: block;

    color: var(--navy);

    font-size: 1.45rem;
    font-weight: 800;
}


.stars {
    color: var(--mustard);

    font-size: 1rem;
    letter-spacing: 2px;
}


.vendor-rating > span {
    display: block;

    margin-top: 3px;

    color: var(--gray);
    font-size: 0.85rem;
}


/* =========================
   REVIEWS SECTION
========================= */

.reviews-section {
    margin-bottom: 55px;
}


.section-heading {
    margin-bottom: 22px;
}


.section-heading h2 {
    margin: 0;

    color: var(--navy);

    font-family: "Archivo Black", sans-serif;
    font-size: 2rem;
    line-height: 1.1;
}


/* =========================
   REVIEW CARDS
========================= */

.reviews-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.review-card {
    padding: 24px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: 0 8px 22px rgba(18, 35, 63, 0.06);
}


.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
}


.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}


.avatar {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: var(--navy);
    color: var(--white);

    border-radius: 50%;

    font-weight: 800;
}


.review-user h3 {
    margin: 0;

    color: var(--navy);

    font-size: 0.98rem;
    font-weight: 800;
}


.review-user p {
    margin: 1px 0 0;

    color: var(--gray);

    font-size: 0.76rem;
}


.review-date {
    color: var(--gray);
    font-size: 0.75rem;
}


.review-card .stars {
    margin-bottom: 10px;
}


.review-text {
    margin: 0;

    color: var(--charcoal);

    font-size: 0.92rem;
    line-height: 1.65;
}


/* =========================
   REVIEW FORM
========================= */

.review-form-section {
    max-width: 760px;
    margin: 0 auto 45px;
    padding: 35px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;

    box-shadow: 0 12px 30px rgba(18, 35, 63, 0.08);
}


.form-heading {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 28px;
}


.form-heading-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #FFF1E9;

    border-radius: 14px;

    font-size: 1.5rem;
}


.form-heading h2 {
    margin: 0;

    color: var(--navy);

    font-family: "Archivo Black", sans-serif;
    font-size: 2rem;
}


.form-heading p:last-child {
    margin: 8px 0 0;

    color: var(--gray);
}


.form-group {
    margin-bottom: 22px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--navy);

    font-size: 0.9rem;
    font-weight: 800;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 13px 15px;

    background: #FFFCF7;
    color: var(--charcoal);

    border: 1px solid var(--border);
    border-radius: 11px;

    font-family: "Inter", sans-serif;
    font-size: 0.95rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange);

    box-shadow: 0 0 0 3px rgba(240, 100, 30, 0.12);
}


.form-group textarea {
    resize: vertical;
    min-height: 130px;
}


.character-row {
    display: flex;
    align-items: center;

    margin-top: 7px;

    color: var(--gray);

    font-size: 0.75rem;
}


#characterCount {
    font-weight: 700;
}


.submit-review-button {
    width: 100%;
    min-height: 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;

    background: var(--orange);
    color: var(--white);

    border: none;
    border-radius: 11px;

    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.submit-review-button:hover {
    background: #D95215;
    transform: translateY(-1px);
}


.submit-review-button:active {
    transform: translateY(0);
}


.review-message {
    min-height: 24px;
    margin: 14px 0 0;

    text-align: center;

    font-size: 0.88rem;
    font-weight: 700;
}


.review-message.success {
    color: var(--green);
}


.review-message.error {
    color: var(--red);
}


/* =========================
   DYNAMIC REVIEWS
========================= */

.delete-review {
    padding: 5px 9px;

    background: transparent;
    color: var(--red);

    border: 1px solid rgba(200, 59, 49, 0.3);
    border-radius: 7px;

    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;

    cursor: pointer;
}


.delete-review:hover {
    background: rgba(200, 59, 49, 0.07);
}


/* =========================
   BOTTOM ACTIONS
========================= */

.page-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-top: 35px;
}


.back-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.back-button {
    background: var(--navy);
    color: var(--white);
}


.secondary-button {
    background: var(--white);
    color: var(--navy);

    border: 1px solid var(--border);
}


.back-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}


.back-button:hover {
    background: #1B3154;
}


.secondary-button:hover {
    background: #F5EFE5;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .nav-container {
        grid-template-columns: 1fr auto;
    }


    .main-nav {
        display: none;
    }


    .reviews-container {
        width: min(100% - 28px, 650px);
        padding: 50px 0 60px;
    }


    .reviews-header {
        margin-bottom: 35px;
    }


    .vendor-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }


    .vendor-rating {
        width: 100%;
        min-width: 0;
        text-align: left;
        padding-left: 92px;
        margin-top: -8px;
    }


    .reviews-list {
        grid-template-columns: 1fr;
    }


    .review-form-section {
        padding: 25px 20px;
    }

}


@media (max-width: 520px) {

    .reviews-header h1 {
        font-size: 2.35rem;
    }


    .subtitle {
        font-size: 0.95rem;
    }


    .vendor-card {
        padding: 20px;
        gap: 15px;
    }


    .vendor-icon {
        width: 58px;
        height: 58px;
        font-size: 1.65rem;
    }


    .vendor-info h2 {
        font-size: 1.3rem;
    }


    .vendor-rating {
        padding-left: 73px;
    }


    .review-form-section {
        padding: 22px 16px;
    }


    .character-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }


    .page-actions {
        flex-direction: column;
    }


    .back-button,
    .secondary-button {
        width: 100%;
    }

}

/* ========================================
   VENDOR FAVORITE BUTTON
======================================== */

.favorite-button {
    width: 48px;
    height: 48px;

    margin-left: auto;

    border: 2px solid var(--border);

    border-radius: 50%;

    background: var(--white);

    color: var(--orange);

    font-size: 24px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.favorite-button:hover {
    transform: scale(1.08);

    background: #FFF1E6;

    border-color: var(--orange);
}

.favorite-button.active {
    background: var(--orange);

    border-color: var(--orange);

    color: var(--white);
}

.favorite-button:active {
    transform: scale(0.95);
}


.favorite-message {
    text-align: center;

    min-height: 22px;

    margin: -10px auto 18px;

    font-weight: bold;

    opacity: 0;

    transition: opacity 0.2s ease;
}


@media (max-width: 600px) {

    .vendor-card {
        display: flex;

        flex-wrap: wrap;

        gap: 12px;
    }

    .favorite-button {
        margin-left: 0;
    }

}


/* ========================================
   FAVORITE TRUCKS
======================================== */

.favorites-section {
    position: relative;

    background: var(--white);

    padding: 28px;

    margin-bottom: 22px;

    border-radius: 20px;

    border: 1px solid var(--border);

    box-shadow: 0 10px 25px rgba(18, 35, 63, 0.06);

    overflow: hidden;
}


.favorites-section::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 6px;

    background:
        linear-gradient(
            90deg,
            var(--orange),
            var(--mustard)
        );
}


.favorites-section h2 {
    margin-top: 0;

    color: var(--navy);

    font-family: "Archivo Black", sans-serif;

    font-size: 24px;
}


.favorites-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.favorite-item {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 13px 14px;

    background: var(--cream);

    border: 1px solid var(--border);

    border-radius: 14px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.favorite-item:hover {
    border-color: var(--orange);

    transform: translateY(-2px);
}


.favorite-item-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--white);

    border-radius: 50%;

    font-size: 24px;
}


.favorite-item-info {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.favorite-item-info strong {
    color: var(--navy);

    font-size: 16px;
}


.favorite-item-info span {
    color: var(--gray);

    font-size: 13px;
}


.remove-favorite {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background: var(--orange);

    color: var(--white);

    font-size: 18px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.remove-favorite:hover {
    background: var(--orange-dark);

    transform: scale(1.08);
}


.no-favorites-message {
    margin: 5px 0 0;

    color: var(--gray);

    font-size: 14px;

    line-height: 1.6;
}