/* Styles specific to the About page */

#about.content-section {
    background-color: #333333;
    color: #f1f1f1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 10px;
    padding-bottom: 20px;
    padding-left: 10px;
    max-width: 900px;
    animation: fadeInLeft 0.7s ease-out;
    display: block; /* Always visible on standalone page */
}

#about.content-section.active { /* Retain compatibility with existing JS */
    display: block;
}

/* Barber Card Styles (moved from pages.css) */
.barber-card {
    display: flex;
    align-items: center;
    background-color: #444444;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 30px 0;
}

.barber-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.barber-info { flex-grow: 1; }

.barber-name {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-align: center;
}

.barber-title {
    font-size: 1.1em;
    color: #cccccc;
    margin: 5px 0 10px;
}

.barber-bio {
    font-size: 1em;
    line-height: 1.6;
    color: #cccccc;
}

@media (max-width: 600px) {
    .barber-card { flex-direction: column; text-align: center; }
    .barber-photo { margin-right: 0; margin-bottom: 15px; }
}

/* Team grid */
.barber-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-barber-card {
    background: linear-gradient(145deg, #3d3d3d, #2e2e2e);
    border-radius: 14px;
    padding: 18px 16px 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.team-barber-card:hover, .team-barber-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.55);
}

.team-barber-photo-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 3px #444, 0 0 0 6px #222;
    margin-bottom: 12px;
}

.team-barber-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
    transition: transform .35s ease;
}

.team-barber-card:hover .team-barber-photo-wrapper img {
    transform: scale(1.06);
}

.team-barber-name {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin: 4px 0 2px;
    color: #ffffff;
    text-align: center;
}

.team-barber-role {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #c9c9c9;
    margin: 0 0 8px;
}

.team-mini-bio {
    font-size: .78rem;
    line-height: 1.4;
    color: #d7d7d7;
    text-align: center;
    min-height: 54px;
    margin: 0 0 12px;
}

.team-card-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.team-view-bio-btn {
    background: #262626;
    border: 1px solid #444;
    color: #ccc;
    padding: 8px 14px;
    border-radius: 24px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
    cursor: pointer;
}

.team-view-bio-btn:hover, .team-view-bio-btn:focus {
    background: #a020f0;
    color: #ffffff;
    border-color: #a020f0;
    transform: translateY(-2px);
    text-decoration: none;
}


/* Barber Bio Modal */
.barber-bio-modal {
    position: fixed;
    top: 0; left: 0; right:0; bottom:0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    padding: 30px 15px;
}

.barber-bio-modal-content {
    background: #222;
    color: #e5e5e5;
    width: 100%;
    max-width: 760px;
    max-height: 85vh; /* Constrain height so long bios become scrollable */
    overflow-y: auto; /* Enable vertical scrolling */
    overscroll-behavior: contain; /* Prevent background scroll chaining */
    border-radius: 18px;
    padding: 28px 30px 34px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
    position: relative;
    animation: modalFadeIn .35s ease;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #555 #222; /* Firefox */
}

/* Custom scrollbar (WebKit) */
.barber-bio-modal-content::-webkit-scrollbar { width: 10px; }
.barber-bio-modal-content::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 0 18px 18px 0; }
.barber-bio-modal-content::-webkit-scrollbar-thumb { background: #444; border-radius: 20px; border: 2px solid #1a1a1a; }
.barber-bio-modal-content::-webkit-scrollbar-thumb:hover { background: #5a5a5a; }

@keyframes modalFadeIn { from { transform: translateY(25px); opacity:0;} to { transform: translateY(0); opacity:1;} }

.barber-bio-close {
    position: absolute;
    top: 10px; right: 14px;
    background: transparent;
    border: none;
    color: #bbb;
    font-size: 1.9rem;
    cursor: pointer;
    transition: color .25s ease;
}
.barber-bio-close:hover { color: #fff; }

.barber-bio-header { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.barber-bio-header img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #333, 0 0 0 8px #181818; }
.barber-bio-headings h3 { font-size: 1.9rem; margin:0 0 6px; letter-spacing: 1px; }
.barber-bio-role { margin:0; font-size: .9rem; text-transform: uppercase; letter-spacing: 1.8px; color:#c0c0c0; }

.barber-bio-text { font-size: .95rem; line-height: 1.7; letter-spacing: .25px; margin-bottom: 26px; }
.barber-bio-text p { margin: 0 0 16px; }

.barber-bio-actions { display:flex; justify-content:flex-end; }
.bio-book-btn { background:#303030; color:#cfcfcf; padding:14px 26px; border-radius:30px; font-weight:600; letter-spacing:.6px; text-decoration:none; border:1px solid #4a4a4a; transition:background .3s ease, color .3s ease, transform .3s ease, border-color .3s ease; }
.bio-book-btn:hover, .bio-book-btn:focus { background:#a020f0; color:#fff; border-color:#a020f0; transform:translateY(-3px); }

@media (max-width: 640px) {
    .barber-bio-header { flex-direction: column; text-align:center; }
    .barber-bio-actions { justify-content:center; }
    .barber-bio-modal-content { padding:22px 22px 28px; }
}
