/**
 * Salon Team Directory - Single Profile Page Styles
 * Design: Photo left with booking overlay, details right, gallery below
 * NOTE: Uses high specificity and !important on critical layout properties
 *       to prevent theme/Elementor CSS from breaking the layout.
 */

/* ─── Wrapper ─── */
.std-single-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.std-single-wrapper *,
.std-single-wrapper *::before,
.std-single-wrapper *::after {
    box-sizing: border-box;
}

.std-single-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

/* ─── Top Section: Photo + Details ─── */
.std-single-top {
    display: flex;
    flex-direction: row;
    gap: 0;
}

/* ─── Photo Side ─── */
.std-single-photo {
    width: 45%;
    min-width: 45%;
    flex-shrink: 0;
    position: relative !important;
    overflow: hidden !important;
}

.std-single-photo > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
    display: block !important;
    min-height: 500px;
}

/* ─── Booking button wrapper (below content in details panel) ─── */
.std-single-booking-wrap {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

/* ─── Booking button ─── */
.std-single-booking-wrap .std-single-booking-btn,
.std-single-booking-wrap a.std-single-booking-btn,
.std-single-booking-wrap a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: auto;
    background-color: #8B0000;
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
    border-radius: 0;
    line-height: 1.4;
    box-shadow: none;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.std-single-booking-wrap .std-single-booking-btn:hover,
.std-single-booking-wrap a.std-single-booking-btn:hover,
.std-single-booking-wrap a:hover {
    background-color: #a00000;
    color: #fff;
    text-decoration: none;
}

.std-booking-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    fill: none !important;
    stroke: currentColor !important;
}

/* ─── Details Side ─── */
.std-single-details {
    flex: 1;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.std-single-name {
    color: #8B0000;
    font-size: 2.2em;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

/* Subtitle / Instagram / Position */
.std-single-subtitle {
    margin-bottom: 20px;
}

.std-single-subtitle p {
    margin: 0 0 4px 0;
    font-size: 1em;
    color: #333;
    line-height: 1.5;
}

.std-single-subtitle a {
    color: #333;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.std-single-subtitle a:hover {
    color: #8B0000;
}

/* Bio */
.std-single-bio {
    margin-bottom: 25px;
}

.std-single-bio-heading {
    color: #8B0000;
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 8px 0;
    font-style: italic;
}

.std-single-bio-content {
    font-size: 0.95em;
    line-height: 1.65;
    color: #333;
}

.std-single-bio-content p {
    margin: 0 0 10px 0;
}

/* ─── Schedule Table ─── */
.std-single-schedule {
    margin-bottom: 25px;
}

.std-schedule-table {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    font-size: 0.9em;
}

.std-schedule-table thead th {
    background-color: #8B0000;
    color: #fff;
    padding: 8px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
}

.std-schedule-table tbody td {
    padding: 7px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.std-schedule-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.std-schedule-table tbody tr:last-child td {
    border-bottom: none;
}

/* ─── Status / Availability Message ─── */
.std-single-status {
    margin-top: 10px;
    padding: 0;
}

.std-single-status p {
    margin: 0 0 4px 0;
}

.std-single-status,
.std-single-status p,
.std-single-status strong,
.std-single-status em {
    color: #8B0000;
    font-weight: 700;
    font-style: italic;
    font-size: 1em;
    line-height: 1.5;
}

/* ═══════════════════════════════════════
 *  SAMPLE WORK GALLERY SECTION
 * ═══════════════════════════════════════ */

.std-single-gallery-section {
    padding: 30px 40px 40px;
    border-top: 1px solid #eee;
}

.std-single-gallery-heading {
    color: #333;
    font-size: 1.1em;
    font-style: italic;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.std-single-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.std-single-gallery-item {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    position: relative;
    display: block;
    text-decoration: none !important;
    border: none !important;
    outline: none;
}

a.std-single-gallery-item,
a.std-single-gallery-item:hover,
a.std-single-gallery-item:focus,
a.std-single-gallery-item:visited {
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: none !important;
}

.std-single-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.std-single-gallery-item:hover img {
    transform: scale(1.05);
}

/*
 * ═══════════════════════════════════════
 *  RESPONSIVE
 * ═══════════════════════════════════════
 */

/* Large screens (2560px+) */
@media (min-width: 2560px) {
    .std-single-wrapper {
        max-width: 1400px;
    }

    .std-single-name {
        font-size: 2.8em;
    }

    .std-single-photo > img {
        min-height: 650px;
    }
}

/* Tablet (max 991px) */
@media (max-width: 991px) {
    .std-single-top {
        flex-direction: column;
    }

    .std-single-photo {
        width: 100% !important;
        min-width: 100% !important;
    }

    .std-single-photo > img {
        min-height: 400px;
        max-height: 550px;
    }

    .std-single-details {
        padding: 25px 30px;
    }

    .std-single-gallery-section {
        padding: 25px 30px 35px;
    }

    .std-single-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
    .std-single-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }

    .std-single-photo > img {
        min-height: 350px;
        max-height: 450px;
    }

    .std-single-booking-wrap .std-single-booking-btn,
    .std-single-booking-wrap a.std-single-booking-btn,
    .std-single-booking-wrap a {
        font-size: 13px !important;
        padding: 12px 20px !important;
        letter-spacing: 1px !important;
    }

    .std-single-details {
        padding: 20px;
    }

    .std-single-name {
        font-size: 1.6em;
    }

    .std-schedule-table {
        max-width: 100%;
    }

    .std-single-gallery-section {
        padding: 20px;
    }

    .std-single-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Small mobile (max 575px) */
@media (max-width: 575px) {
    .std-single-photo > img {
        min-height: 280px;
        max-height: 380px;
    }

    .std-single-booking-wrap .std-single-booking-btn,
    .std-single-booking-wrap a.std-single-booking-btn,
    .std-single-booking-wrap a {
        font-size: 12px !important;
        padding: 10px 16px !important;
    }

    .std-single-booking-wrap {
        bottom: 15px !important;
    }

    .std-single-name {
        font-size: 1.4em;
    }

    .std-single-details {
        padding: 15px;
    }

    .std-single-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Print ─── */
@media print {
    .std-single-booking-btn {
        display: none !important;
    }

    .std-single-top {
        flex-direction: column;
    }

    .std-single-photo {
        width: 100% !important;
    }
}

/* ─── Accessibility ─── */
@media (prefers-reduced-motion: reduce) {
    .std-single-gallery-item img,
    .std-single-booking-btn {
        transition: none !important;
    }
}
