/* ============================================================================
   REY PRODUCTION - COLLABORATORI SECTION
   Styles for Collaborators grid page and individual collaborator detail page
   ============================================================================ */

/* -- Page Layout ----------------------------------------------------------- */
.collab-page,
.collab-detail-page {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* -- Hero Section (Grid Page) ---------------------------------------------- */
.collab-page-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 220px 20px 40px;
    overflow: hidden;
}

.collab-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(191, 0, 0, 0.15) 0%, transparent 65%),
        radial-gradient(ellipse at 20% 80%, rgba(191, 0, 0, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0,0,0,0.2) 0%, #000 100%);
    z-index: 1;
}

.collab-page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #000 0%, #0a0a0a 40%, #000 100%);
}

.collab-page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23bf0000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.collab-page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.collab-hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid rgba(191, 0, 0, 0.5);
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #bf0000;
    margin-bottom: 24px;
    background: rgba(191, 0, 0, 0.08);
}

.collab-page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #fff;
}

.collab-page-hero h1 span {
    color: #fff;
}

.collab-page-hero-sub {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.5;
    max-width: 580px;
    margin: 0 auto;
}

/* -- Collaborators Grid ---------------------------------------------------- */
.collab-grid-section {
    padding: 40px 20px 100px;
}

.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.collab-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(15, 15, 15, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: #fff;
    transition: all 0.45s cubic-bezier(.22,.68,.19,1);
    cursor: pointer;
}

.collab-card:hover {
    transform: translateY(-10px);
    border-color: rgba(191, 0, 0, 0.4);
    box-shadow: 0 25px 60px rgba(191, 0, 0, 0.12), 0 0 0 1px rgba(191, 0, 0, 0.2);
}

.collab-card-img {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.collab-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.22,.68,.19,1);
}

.collab-card:hover .collab-card-img img {
    transform: scale(1.08);
}

.collab-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(191, 0, 0, 0.2);
}

.collab-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.85));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.collab-card:hover .collab-card-overlay {
    opacity: 1;
}

.collab-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    border: 1px solid rgba(191, 0, 0, 0.6);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(191, 0, 0, 0.3);
    backdrop-filter: blur(6px);
}

.collab-card-info {
    padding: 18px 20px;
}

.collab-card-info h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.collab-card-role {
    margin: 0;
    font-size: 0.85rem;
    color: #bf0000;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* -- Empty State ----------------------------------------------------------- */
.collab-empty {
    text-align: center;
    padding: 120px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.collab-empty i {
    font-size: 4rem;
    margin-bottom: 24px;
    color: rgba(191, 0, 0, 0.2);
    display: block;
}

.collab-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.collab-empty p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

/* -- Individual Collaborator Hero ------------------------------------------ */
.collab-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 180px 20px 40px;
    overflow: hidden;
}

.collab-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 50%, #000 100%);
    z-index: 1;
}

.collab-hero-bg {
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.collab-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.4;
    filter: blur(2px);
}

.collab-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.collab-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.collab-hero-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.collab-hero-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.collab-hero-social-btn:hover {
    background: rgba(191, 0, 0, 0.5);
    border-color: rgba(191, 0, 0, 0.8);
    transform: translateY(-2px);
}

/* -- Sections -------------------------------------------------------------- */
.collab-section {
    padding: 70px 20px;
}

.collab-section--dark {
    background: rgba(8, 8, 8, 0.6);
}

.collab-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 50px;
    letter-spacing: -0.3px;
}

.collab-section-title span {
    background: linear-gradient(135deg, #bf0000, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -- Bio (two-column: photo left, text right) ------------------------------ */
.collab-bio-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}
.collab-bio-photo {
    flex: 0 0 420px;
    max-width: 420px;
}
.collab-bio-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.collab-bio {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #d1d5db;
}

.collab-bio p {
    margin-bottom: 1.2em;
}

.collab-bio strong {
    color: #fff;
}

/* -- Social Links ---------------------------------------------------------- */
.collab-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 20px 0;
}

.collab-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(.22,.68,.19,1);
}

.collab-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.collab-social--instagram:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); border-color: transparent; }
.collab-social--youtube:hover   { background: #ff0000; border-color: transparent; }
.collab-social--facebook:hover  { background: #1877f2; border-color: transparent; }
.collab-social--spotify:hover   { background: #1db954; border-color: transparent; }
.collab-social--linkedin:hover  { background: #0a66c2; border-color: transparent; }
.collab-social--website:hover   { background: rgba(191, 0, 0, 0.6); border-color: rgba(191, 0, 0, 0.8); }

/* -- Share Buttons --------------------------------------------------------- */
.collab-share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
}

.collab-share-buttons .share-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(.22,.68,.19,1);
    font-family: inherit;
}

.collab-share-buttons .share-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.collab-share-buttons .share-facebook:hover  { background: #1877f2; border-color: transparent; color: #fff; }
.collab-share-buttons .share-whatsapp:hover  { background: #25d366; border-color: transparent; color: #fff; }
.collab-share-buttons .share-twitter:hover   { background: #000; border-color: rgba(255,255,255,0.3); color: #fff; }
.collab-share-buttons .share-telegram:hover  { background: #0088cc; border-color: transparent; color: #fff; }
.collab-share-buttons .share-copy:hover      { background: rgba(191, 0, 0, 0.6); border-color: rgba(191, 0, 0, 0.8); color: #fff; }

/* -- Photo Gallery --------------------------------------------------------- */
.collab-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.collab-gallery-item {
    flex: 0 0 auto;
    width: calc(20% - 8px);
    min-width: 160px;
    position: relative;
    display: block;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 9 / 16;
    background: #1a1a1a;
    border-radius: 8px;
}

.collab-gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}

.collab-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -- Video ----------------------------------------------------------------- */
.collab-video {
    max-width: 800px;
    margin: 0 auto;
}

.collab-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.collab-video-embed iframe,
.collab-video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* -- Lightbox -------------------------------------------------------------- */
.collab-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.collab-lb.active {
    display: flex;
}

.collab-lb-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
    width: 100%;
    cursor: zoom-out;
}

.collab-lb-img-wrap img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    user-select: none;
    -webkit-user-drag: none;
}

.collab-lb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.collab-lb-close:hover {
    background: rgba(191, 0, 0, 0.6);
    border-color: rgba(191, 0, 0, 0.8);
}

.collab-lb-prev,
.collab-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.collab-lb-prev { left: 16px; }
.collab-lb-next { right: 16px; }

.collab-lb-prev:hover,
.collab-lb-next:hover {
    background: rgba(191, 0, 0, 0.5);
    border-color: rgba(191, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.collab-lb-caption {
    text-align: center;
    padding: 0 20px 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.collab-lb-counter {
    text-align: center;
    padding: 0 20px 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .collab-lb-prev,
    .collab-lb-next {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .collab-lb-prev { left: 8px; }
    .collab-lb-next { right: 8px; }
    .collab-lb-img-wrap {
        padding: 50px 10px 30px;
    }
}

/* -- Audio Tracks / Voiceover ---------------------------------------------- */
.collab-tracks {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.collab-track-card {
    background: rgba(15, 15, 15, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.collab-track-card:hover {
    border-color: rgba(191, 0, 0, 0.3);
    box-shadow: 0 8px 30px rgba(191, 0, 0, 0.06);
}

.collab-track-card h4 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.collab-track-card h4::before {
    content: '\f130';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #bf0000;
    font-size: 0.85em;
}

.collab-track-card .waveform {
    margin-bottom: 12px;
}

.collab-track-card .player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* -- Back CTA -------------------------------------------------------------- */
.collab-back-cta {
    text-align: center;
    padding: 60px 20px 100px;
}

.collab-back-cta .svc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.collab-back-cta .svc-btn:hover {
    border-color: rgba(191, 0, 0, 0.5);
    background: rgba(191, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* -- Responsive ------------------------------------------------------------ */
@media (max-width: 768px) {
    .collab-page-hero {
        padding: 160px 16px 30px;
    }
    .collab-page-hero h1 {
        font-size: 1.7rem;
    }
    .collab-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
    .collab-card-info {
        padding: 12px 14px;
    }
    .collab-card-info h3 {
        font-size: 0.95rem;
    }
    .collab-card-role {
        font-size: 0.72rem;
    }
    .collab-hero {
        min-height: 400px;
        padding: 160px 16px 30px;
    }
    .collab-bio-layout {
        flex-direction: column;
        gap: 30px;
    }
    .collab-bio-photo {
        flex: none;
        max-width: 100%;
    }
    .collab-hero h1 {
        font-size: 2.2rem;
    }
    .collab-section {
        padding: 50px 16px;
    }
    .collab-section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    .collab-gallery-item {
        width: calc(33.333% - 6px);
        min-width: 100px;
    }
    .collab-socials {
        gap: 10px;
    }
    .collab-social-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    .collab-video {
        grid-template-columns: 1fr !important;
    }
}
