﻿/* Page container */
.designers-page {
    padding-top: 32px;
    padding-bottom: 60px;
}

/* Section title */
.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 28px;
    color: #5B4F9D;
}

/* Designers grid layout */
.designers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

/* Mobile improvements */
@media (max-width: 768px) {

    .designers-page {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .designers-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.designer-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    width: 100%;
    /* modern shadow */
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    /* smooth animation */
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

    /* hover state */
    .designer-card:hover {
        transform: translateY(-3px);
        border-color: rgba(0,0,0,0.08);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
        background: #fafafa;
    }

    /* click feedback */
    .designer-card:active {
        transform: translateY(-1px) scale(0.995);
    }

    /* keyboard accessibility */
    .designer-card:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.25), 0 10px 30px rgba(0,0,0,0.08);
    }

/* ================= PAGE HEADER ================= */

.designer-header {
    background: linear-gradient(135deg, #5c4fa3, #6e60c8);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding: 48px 20px 36px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 25px rgba(92,79,163,0.25);
}

    .designer-header h3 {
        font-weight: 700;
        font-size: 24px;
        margin-bottom: 28px;
        letter-spacing: -0.3px;
    }

/* ================= PROFILE ================= */

.designer-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

    .designer-profile img {
        width: 76px;
        height: 76px;
        border-radius: 20px;
        object-fit: cover;
        background: #fff;
        border: 3px solid rgba(255,255,255,0.35);
        box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    }

.designer-name {
    font-weight: 700;
    font-size: 19px;
}

.designer-activities {
    font-size: 14px;
    opacity: .9;
    line-height: 1.7;
}

.designer-rating {
    margin-top: 6px;
    font-size: 14px;
}

/* ==========================================
   Designer Tabs - Responsive Horizontal Slider
   ========================================== */
.designer-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.designer-tabs {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px; /* space between tabs */
    padding-inline: 12px; /* safe left/right spacing */

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

    /* Hide scrollbar - Chrome, Safari, Edge */
    .designer-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Prevent shrinking */
    .designer-tabs > * {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

/* Optional: Desktop subtle edge hint (non-destructive) */
@media (min-width: 992px) {
    .designer-tabs::before,
    .designer-tabs::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        pointer-events: none;
        z-index: 1;
    }

    .designer-tabs::before {
        left: 0;
        background: linear-gradient(to right, #fff, transparent);
    }

    .designer-tabs::after {
        right: 0;
        background: linear-gradient(to left, #fff, transparent);
    }
}



.designer-tab {
    padding: 10px 28px;
    border-radius: 999px;
    border: 1px solid #d6d6e6;
    background: #f7f7fb;
    color: #6a6a78;
    font-weight: 600;
    transition: all .18s ease;
}

    .designer-tab:hover {
        background: #efeff7;
    }

    .designer-tab.active {
        background: #ffffff;
        border-color: #5c4fa3;
        color: #5c4fa3;
        box-shadow: 0 4px 10px rgba(92,79,163,0.15);
    }

/* ================= RATING CARD ================= */

.rating-wrapper {
    display: flex;
    gap: 30px;
    align-items: center;
    background: #ffffff;
    padding: 26px;
    border-radius: 20px;
    border: 1px solid #ececf3;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* ================= RATING BARS ================= */

.rating-bars {
    flex: 1;
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.rating-number {
    width: 22px;
    text-align: center;
    color: #444;
    font-weight: 600;
}

.rating-bar {
    flex: 1;
    height: 7px;
    background: #ececf3;
    border-radius: 20px;
    margin: 0 12px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg,#ffc107,#ffda44);
    width: 0%;
    border-radius: 20px;
    transition: width .6s ease;
}

.rating-star {
    width: 25px;
    text-align: center;
    color: #ffc107;
}

/* ================= BIG RATING BOX ================= */

.rating-summary {
    width: 150px;
    height: 130px;
    background: linear-gradient(145deg,#f3f4fa,#eef1f4);
    border-radius: 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

    .rating-summary .star {
        color: #ffc107;
        font-size: 20px;
    }

    .rating-summary .number {
        font-size: 42px;
        font-weight: 700;
        line-height: 1;
        color: #1d1d24;
    }

    .rating-summary .text {
        font-size: 14px;
        color: #6d6d78;
    }

/* ================= MOBILE ================= */

@media (max-width:768px) {

    .designer-header {
        padding: 36px 16px 26px;
    }

        .designer-header h3 {
            font-size: 20px;
        }

    .designer-profile img {
        width: 64px;
        height: 64px;
    }

    .rating-wrapper {
        flex-direction: column;
        padding: 22px;
        gap: 20px;
    }

    .rating-summary {
        width: 100%;
        height: 110px;
    }
}
