/**
 * CCM Hosts – Frontend Styles
 * Dark radio theme using RadioWave CSS custom properties
 */

/* ── Hosts Grid ───────────────────────────────────── */
.rw-hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* ── Host Card ────────────────────────────────────── */
.rw-host-card {
    background: var(--rw-bg-card, #16162a);
    border-radius: var(--rw-radius, 12px);
    overflow: hidden;
    box-shadow: var(--rw-shadow, 0 4px 24px rgba(0,0,0,.3));
    transition: transform var(--rw-transition, .3s ease), box-shadow var(--rw-transition, .3s ease);
}

.rw-host-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
}

/* Image */
.rw-host-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--rw-bg-dark, #0f0f1a);
}

.rw-host-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.rw-host-card:hover .rw-host-image img {
    transform: scale(1.05);
}

.rw-host-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--rw-bg-dark, #0f0f1a), var(--rw-bg-card, #16162a));
}

.rw-host-no-image .rw-icon-person {
    width: 64px;
    height: 64px;
    opacity: .35;
    color: var(--rw-text-secondary, #8888aa);
}

/* Info */
.rw-host-info {
    padding: 1.25rem;
}

.rw-host-name {
    margin: 0 0 .35rem;
    font-family: var(--rw-font-heading, 'Poppins', sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.rw-host-name a {
    color: var(--rw-text-primary, #fff);
    text-decoration: none;
    transition: color var(--rw-transition, .3s ease);
}

.rw-host-name a:hover {
    color: var(--rw-primary, #ff3366);
}

.rw-host-role {
    display: inline-block;
    padding: .2em .7em;
    margin-bottom: .65rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--rw-primary, #ff3366);
    background: rgba(255, 51, 102, .12);
    border-radius: 999px;
}

.rw-host-bio {
    font-size: .875rem;
    line-height: 1.55;
    color: var(--rw-text-secondary, #8888aa);
    margin-bottom: .85rem;
}

/* Social Icons */
.rw-host-socials,
.rw-profile-socials {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.rw-host-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: var(--rw-text-secondary, #8888aa);
    transition: background var(--rw-transition, .3s ease), color var(--rw-transition, .3s ease), transform .2s ease;
}

.rw-host-social:hover {
    transform: scale(1.12);
}

.rw-host-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Platform-specific hover colours */
.rw-host-social-facebook:hover  { background: #1877f2; color: #fff; }
.rw-host-social-twitter:hover   { background: #1da1f2; color: #fff; }
.rw-host-social-instagram:hover { background: #e4405f; color: #fff; }
.rw-host-social-youtube:hover   { background: #ff0000; color: #fff; }
.rw-host-social-tiktok:hover    { background: #010101; color: #fff; }
.rw-host-social-spotify:hover   { background: #1db954; color: #fff; }

/* ── Profile Page ─────────────────────────────────── */
.rw-host-profile {
    max-width: 960px;
    margin: 0 auto;
}

.rw-profile-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.rw-profile-image {
    flex: 0 0 280px;
    border-radius: var(--rw-radius, 12px);
    overflow: hidden;
    box-shadow: var(--rw-shadow, 0 4px 24px rgba(0,0,0,.3));
}

.rw-profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

.rw-profile-info {
    flex: 1;
    min-width: 0;
}

.rw-profile-name {
    margin: 0 0 .5rem;
    font-family: var(--rw-font-heading, 'Poppins', sans-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--rw-text-primary, #fff);
}

.rw-profile-bio {
    color: var(--rw-text-secondary, #8888aa);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.rw-profile-bio p {
    margin-bottom: .75rem;
}

.rw-profile-socials {
    margin-bottom: 1.25rem;
}

.rw-profile-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: var(--rw-text-secondary, #8888aa);
    transition: background var(--rw-transition, .3s ease), color var(--rw-transition, .3s ease), transform .2s ease;
}

.rw-profile-socials a:hover {
    background: var(--rw-primary, #ff3366);
    color: #fff;
    transform: scale(1.12);
}

.rw-profile-socials a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.rw-profile-links {
    font-size: .9rem;
}

.rw-profile-links a {
    color: var(--rw-accent, #00d4aa);
    text-decoration: none;
    transition: color var(--rw-transition, .3s ease);
}

.rw-profile-links a:hover {
    color: var(--rw-primary, #ff3366);
    text-decoration: underline;
}

/* Shows list */
.rw-profile-shows {
    margin-top: 2rem;
}

.rw-profile-shows h3 {
    font-family: var(--rw-font-heading, 'Poppins', sans-serif);
    font-size: 1.25rem;
    color: var(--rw-text-primary, #fff);
    margin-bottom: .75rem;
}

.rw-shows-list {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.rw-show-tag {
    display: inline-block;
    padding: .4em 1em;
    font-size: .85rem;
    font-weight: 600;
    color: var(--rw-text-primary, #fff);
    background: var(--rw-bg-dark, #0f0f1a);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    text-decoration: none;
    transition: background var(--rw-transition, .3s ease), border-color var(--rw-transition, .3s ease);
}

.rw-show-tag:hover {
    background: var(--rw-primary, #ff3366);
    border-color: var(--rw-primary, #ff3366);
    color: #fff;
}

/* ── Current Host (sidebar/widget) ────────────────── */
.rw-current-host {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--rw-bg-card, #16162a);
    border-radius: var(--rw-radius, 12px);
    box-shadow: var(--rw-shadow, 0 4px 24px rgba(0,0,0,.3));
}

.rw-current-host-image {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.rw-current-host-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rw-current-host-label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--rw-text-secondary, #8888aa);
    margin-bottom: .15rem;
}

.rw-current-host-name {
    margin: 0;
    font-family: var(--rw-font-heading, 'Poppins', sans-serif);
    font-size: 1rem;
    font-weight: 600;
}

.rw-current-host-name a {
    color: var(--rw-text-primary, #fff);
    text-decoration: none;
}

.rw-current-host-name a:hover {
    color: var(--rw-primary, #ff3366);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .rw-hosts-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .rw-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rw-profile-image {
        flex: none;
        width: 200px;
    }

    .rw-profile-socials,
    .rw-shows-list {
        justify-content: center;
    }

    .rw-profile-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .rw-hosts-grid {
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }

    .rw-host-info {
        padding: .85rem;
    }

    .rw-host-name {
        font-size: 1rem;
    }

    .rw-host-bio {
        display: none;
    }
}
