/* ============================================
   CAS Artist Manager — Frontend Styles
   ============================================ */

/* --- Directory --- */
.cas-directory-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.cas-directory-title {
    text-align: center;
    margin-bottom: 10px;
}

.cas-view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}

.cas-toggle-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cas-toggle-btn.active {
    background: #2c2c2c;
    color: #fff;
    border-color: #2c2c2c;
}

.cas-directory-section {
    margin-bottom: 50px;
}

.cas-directory-section-title {
    border-bottom: 2px solid #c9a84c;
    padding-bottom: 8px;
    margin-bottom: 24px;
}

/* Grid view */
.cas-artist-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
    gap: 20px;
}

.cas-artist-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.cas-artist-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cas-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cas-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.cas-card-no-image {
    width: 100%;
    height: 180px;
    background: #c9a84c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #fff;
    font-weight: bold;
}

.cas-card-info {
    padding: 12px;
}

.cas-card-name {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.cas-card-mediums {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* List view */
.cas-artist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cas-list-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.cas-list-item a {
    font-weight: 600;
    text-decoration: none;
    color: #2c2c2c;
}

.cas-list-item a:hover {
    color: #c9a84c;
}

.cas-list-mediums {
    color: #666;
}

.cas-teaches-badge {
    display: inline-block;
    background: #c9a84c;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toggle visibility */
.cas-hidden-view {
    display: none !important;
}

/* --- Single Artist Page --- */
.cas-artist-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.cas-artist-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.cas-headshot-wrap {
    flex-shrink: 0;
}

.cas-headshot {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #c9a84c;
}

.cas-artist-intro {
    flex: 1;
}

.cas-artist-name {
    margin: 0 0 8px 0;
    font-size: 28px;
}

.cas-mediums {
    color: #666;
    font-size: 15px;
    margin: 0 0 12px 0;
    font-style: italic;
}

.cas-blurb {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* Social links */
.cas-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.cas-social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #2c2c2c;
    font-size: 13px;
    transition: background 0.2s ease;
}

.cas-social-link:hover {
    background: #c9a84c;
    color: #fff;
    border-color: #c9a84c;
}

/* Mentoring callout */
.cas-mentoring-callout {
    background: #fdf8ec;
    border-left: 4px solid #c9a84c;
    padding: 14px 18px;
    margin: 0 0 30px 0;
    border-radius: 0 4px 4px 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Artwork heading hint */
.cas-artwork-hint {
    font-size: 14px;
    font-weight: normal;
    color: #888;
}

/* Artwork grid */
.cas-artwork-section {
    margin: 30px 0;
}

.cas-artwork-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
    gap: 12px;
    margin-top: 12px;
}

.cas-artwork-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s ease;
}

.cas-artwork-item:hover img {
    opacity: 0.85;
}

/* Bio sections */
.cas-bio-sections {
    margin: 30px 0;
}

.cas-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.cas-section:last-child {
    border-bottom: none;
}

.cas-section-heading {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #2c2c2c;
}

.cas-section-content {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* Back link */
.cas-back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cas-back-link a {
    color: #c9a84c;
    text-decoration: none;
    font-size: 14px;
}

.cas-back-link a:hover {
    text-decoration: underline;
}

/* Pending list — never toggled by grid/list JS */
.cas-pending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Pending section */
.cas-pending-note {
    font-size: 16px;
    font-weight: normal;
    color: #888;
}

.cas-pending-item .cas-pending-name {
    font-weight: 600;
    color: #2c2c2c;
}

/* Responsive */
@media ( max-width: 600px ) {
    .cas-artist-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cas-social-links {
        justify-content: center;
    }

    .cas-artist-grid {
        grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) );
    }
}
