/**
 * Doctor Profile Page Styles
 * @package    com_doctors
 * @since      1.10.0
 */

/* Base styles */
.doctor-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.doctor-details {
    background: var(--md-chip-bg);
    padding: var(--md-spacing-4);
    border-radius: var(--md-card-border-radius);
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    color: var(--md-primary);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.experience {
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--md-spacing-2);
}

.category-tag {
    background: var(--md-chip-bg);
    color: var(--md-chip-text);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: var(--md-shadow-sm);
    display: inline-flex;
    align-items: center;
    font-size: var(--md-fs-info-chip);
    font-weight: 600;
}

/* ==========================================================================
   Profile hero card (profile variant only; list cards and modules keep
   the 50/50 split from doctor-card.css)
   ========================================================================== */

/* The photo column is capped at 360px and stretches to the info column's height,
   the image itself is never distorted (object-fit: cover). */
.doctor-profile .profile-card.fullpage > .image-wrapper.fullpage {
    flex: 0 1 360px;
    max-width: 360px;
}

.doctor-profile .profile-card.fullpage > .card-content.fullpage {
    flex: 1 1 0;
    min-width: 0;
}

/* Booking actions */
.doctor-profile .profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--md-spacing-1);
    margin-top: var(--md-spacing-3);
}

.doctor-profile .md-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--md-spacing-1);
    min-height: 44px;
    padding: var(--md-spacing-1) var(--md-spacing-2);
    border: 1px solid transparent;
    border-radius: var(--md-chip-border-radius);
    box-sizing: border-box;
    font-size: var(--md-fs-title);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background var(--md-transition-duration-short) var(--md-transition-easing-standard),
                border-color var(--md-transition-duration-short) var(--md-transition-easing-standard);
}

.doctor-profile .md-button .material-symbols-rounded.chip-icon {
    margin-right: 0;
}

.doctor-profile .md-button-filled {
    background: var(--md-primary);
    color: var(--md-surface);
    box-shadow: var(--md-elevation-1);
}

.doctor-profile .md-button-filled:hover {
    background: var(--md-primary-dark);
    color: var(--md-surface);
}

.doctor-profile .md-button-outlined {
    background: var(--md-surface);
    color: var(--md-primary);
    border-color: var(--md-border-color);
}

.doctor-profile .md-button-outlined:hover {
    background: var(--md-primary-alpha);
    border-color: var(--md-primary);
}

/* Mobile: one column, photo capped and centred */
@media screen and (max-width: 767px) {
    .doctor-profile .profile-card.fullpage {
        flex-direction: column;
        align-items: center;
    }

    .doctor-profile .profile-card.fullpage > .image-wrapper.fullpage {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        margin: var(--md-spacing-2) auto 0;
    }

    .doctor-profile .profile-card.fullpage > .card-content.fullpage {
        flex: 0 0 auto;
        width: 100%;
    }

    .doctor-profile .profile-actions {
        margin-top: var(--md-spacing-2);
    }
}

.doctor-facilities {
    display: flex;
    flex-direction: column;
    gap: var(--md-spacing-3);
}

/* Tablet (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .doctor-profile {
        padding: 16px;
    }

    .doctor-details {
        padding: 24px;
    }

    .detail-section h3 {
        font-size: 1.2em;
    }
}

/* Large mobile (576px - 767px) */
@media screen and (min-width: 576px) and (max-width: 767px) {
    .doctor-profile {
        padding: 14px;
    }

    .doctor-details {
        padding: 20px;
    }

    .detail-section {
        margin-bottom: 24px;
    }

    .detail-section h3 {
        font-size: 1.15em;
        margin-bottom: 12px;
    }

    .category-tag {
        padding: 6px 12px;
        font-size: 0.95em;
    }
}

/* Small mobile (up to 575px) */
@media screen and (max-width: 575px) {

    .doctor-profile {
        padding: 12px;
    }

    .doctor-details {
        padding: 16px;
    }

    .detail-section {
        margin-bottom: 20px;
    }

    .detail-section h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .experience {
        font-size: 1em;
        justify-content: flex-start;
    }

    .categories-list {
        gap: 8px;
        justify-content: flex-start;
    }

    .category-tag {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}

/* Extra small mobile (up to 374px) */
@media screen and (max-width: 374px) {
    .doctor-profile {
        padding: 10px;
    }

    .doctor-details {
        padding: 12px;
    }

    .category-tag {
        padding: 5px 8px;
        font-size: 0.85em;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .category-tag {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Print styles */
@media print {
    .doctor-profile {
        padding: 0;
        max-width: 100%;
    }

    .doctor-details {
        background: none;
        padding: 20px 0;
    }

    .category-tag {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Profile headings: the doctor's name is the page's h1 and the largest heading; section titles are h2 */
.profile-card.fullpage .doc-name {
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
    white-space: normal;
}

.doctor-facilities > h2 {
    margin: 0;
    font-size: 1.4rem;
}
