/* ═══════════════════════════════════════════════════
   CamStreamHub — Single Modelo Profile
   Diseño premium dark mode con degradado de marca
   ═══════════════════════════════════════════════════ */

:root {
    --csh-bg: #0a0a0f;
    --csh-bg-card: rgba(255, 255, 255, 0.04);
    --csh-bg-card-hover: rgba(255, 255, 255, 0.08);
    --csh-text: #e8e8ec;
    --csh-text-muted: #8b8b9e;
    --csh-gradient: linear-gradient(135deg, #0da6fd, #0847b4, #9a0567, #fd42ac);
    --csh-radius: 16px;
    --csh-radius-sm: 10px;
}

/* ── Reset del tema para este template ── */

.csh-single-modelo {
    background: var(--csh-bg);
    color: var(--csh-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    width: 100%;
}

/* Forzar body dark para toda la página */
body.single-modelo {
    background: var(--csh-bg) !important;
}

/* ── Override del tema Playful para el single-modelo ── */

/* Quitar padding/margin del tema en el contenedor principal */
.single-modelo .page_content_wrap {
    padding: 0 !important;
    margin: 0 !important;
}

.single-modelo .content_wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Asegurar que no haya sidebar */
.single-modelo .sidebar,
.single-modelo .sidebar_wrap {
    display: none !important;
}

.single-modelo .content {
    width: 100% !important;
    float: none !important;
}

/* Ocultar elementos del tema que no aplican al perfil */
.single-modelo .post_header,
.single-modelo .post_meta,
.single-modelo .post_content_single,
.single-modelo .post_footer,
.single-modelo .comments_wrap,
.single-modelo .nav-links-single,
.single-modelo .related_wrap,
.single-modelo .author_info,
.single-modelo .post_content,
.single-modelo .post_item_single,
.single-modelo .nav-links-single-scroll {
    display: none !important;
}

/* El mapa y título del tema que no aplican */
.single-modelo .sc_googlemap_wrap,
.single-modelo .sc_layouts_title {
    display: none !important;
}

/* Asegurar que el header del tema se adapte al dark mode */
.single-modelo .top_panel {
    position: relative;
    z-index: 100;
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */

.csh-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.csh-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(20px) brightness(0.4);
    transform: scale(1.1);
    z-index: 0;
}

.csh-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--csh-bg) 0%,
        rgba(10, 10, 15, 0.8) 40%,
        rgba(10, 10, 15, 0.4) 100%
    );
    z-index: 1;
}

.csh-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 50px;
    display: flex;
    align-items: flex-end;
    gap: 40px;
}

.csh-hero__avatar {
    flex-shrink: 0;
}

.csh-hero__avatar img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.csh-hero__info {
    flex: 1;
    padding-bottom: 10px;
}

.csh-hero__name {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    background: var(--csh-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.csh-hero__tags {
    font-size: 1.1rem;
    color: var(--csh-text-muted);
    margin: 0 0 20px;
    font-weight: 400;
}

.csh-hero__icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.csh-hero__icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--csh-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.csh-hero__icon-btn img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.csh-hero__icon-btn:hover {
    background: var(--btn-color, rgba(255, 255, 255, 0.1));
    border-color: var(--btn-color, rgba(255, 255, 255, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.csh-hero__icon-btn:hover img {
    filter: brightness(1);
}

/* ═══════════════════════════════════════════════════
   PROFILE BODY
   ═══════════════════════════════════════════════════ */

.csh-profile-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 80px;
}

/* ═══════════════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════════════ */

.csh-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 50px 0 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    letter-spacing: -0.01em;
}

.csh-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--csh-gradient);
    border-radius: 2px;
    margin-right: 12px;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════
   BIOGRAFÍA
   ═══════════════════════════════════════════════════ */

.csh-bio__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--csh-text-muted);
    max-width: 800px;
}

.csh-bio__text p {
    margin-bottom: 1em;
}

/* ═══════════════════════════════════════════════════
   PLATAFORMAS — Cards Glassmorphism
   ═══════════════════════════════════════════════════ */

.csh-platforms__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.csh-platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px;
    background: var(--csh-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--csh-radius);
    text-decoration: none !important;
    color: var(--csh-text) !important;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.csh-platform-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, var(--card-accent), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.csh-platform-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-accent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3),
                0 0 20px color-mix(in srgb, var(--card-accent) 20%, transparent);
}

.csh-platform-card:hover::before {
    opacity: 0.12;
}

.csh-platform-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.csh-platform-card__icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.csh-platform-card:hover .csh-platform-card__icon img {
    transform: scale(1.15);
}

.csh-platform-card__name {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.csh-platform-card__cta {
    font-size: 0.8rem;
    color: var(--csh-text-muted);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.csh-platform-card:hover .csh-platform-card__cta {
    color: var(--card-accent);
}

/* ═══════════════════════════════════════════════════
   GALERÍA
   ═══════════════════════════════════════════════════ */

.csh-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.csh-gallery__item {
    position: relative;
    border-radius: var(--csh-radius-sm);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: block;
    text-decoration: none !important;
}

.csh-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.csh-gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: var(--csh-gradient);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.csh-gallery__item:hover img {
    transform: scale(1.08);
}

.csh-gallery__item:hover .csh-gallery__item-overlay {
    opacity: 0.3;
}

.csh-gallery__video-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.csh-gallery__item--video:hover .csh-gallery__video-placeholder {
    background: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════
   MODELOS RELACIONADAS
   ═══════════════════════════════════════════════════ */

.csh-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.csh-related__card {
    border-radius: var(--csh-radius);
    overflow: hidden;
    text-decoration: none !important;
    color: var(--csh-text) !important;
    background: var(--csh-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.35s ease;
}

.csh-related__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.csh-related__card-img {
    height: 320px;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.csh-related__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--csh-bg) 0%, transparent 50%);
}

.csh-related__card-info {
    padding: 16px 20px 20px;
}

.csh-related__card-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.csh-related__card-tags {
    font-size: 0.85rem;
    color: var(--csh-text-muted);
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .csh-hero {
        min-height: 400px;
    }

    .csh-hero__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 20px 30px;
        gap: 24px;
    }

    .csh-hero__avatar img {
        width: 160px;
        height: 160px;
    }

    .csh-hero__name {
        font-size: 2rem;
    }

    .csh-hero__icons {
        justify-content: center;
    }

    .csh-profile-body {
        padding: 0 16px 60px;
    }

    .csh-section-title {
        font-size: 1.3rem;
        margin: 36px 0 18px;
    }

    .csh-platforms__grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .csh-platform-card {
        padding: 20px 14px;
    }

    .csh-gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }

    .csh-related__grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 14px;
    }

    .csh-related__card-img {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .csh-hero__avatar img {
        width: 130px;
        height: 130px;
    }

    .csh-hero__name {
        font-size: 1.7rem;
    }

    .csh-platforms__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .csh-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .csh-related__grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════
   Disclaimer
   ═══════════════════════════════════════════════════ */

.csh-disclaimer {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 32px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.csh-disclaimer p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
    margin: 0;
}

.csh-disclaimer a {
    color: rgba(13, 166, 253, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.csh-disclaimer a:hover {
    color: #0da6fd;
}

/* ═══════════════════════════════════════════════════
   LIGHTBOX MODAL
   ═══════════════════════════════════════════════════ */

.csh-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.csh-lightbox--active {
    opacity: 1;
    visibility: visible;
}

.csh-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.csh-lightbox__content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.35s ease;
}

.csh-lightbox--active .csh-lightbox__content {
    transform: scale(1);
}

.csh-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.csh-lightbox__video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    background: #000;
}

.csh-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.csh-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.csh-lightbox__prev,
.csh-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.csh-lightbox__prev { left: 20px; }
.csh-lightbox__next { right: 20px; }

.csh-lightbox__prev svg,
.csh-lightbox__next svg {
    width: 24px;
    height: 24px;
}

.csh-lightbox__prev:hover,
.csh-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) scale(1.1);
}

.csh-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .csh-lightbox__prev,
    .csh-lightbox__next {
        width: 40px;
        height: 40px;
    }

    .csh-lightbox__prev { left: 10px; }
    .csh-lightbox__next { right: 10px; }

    .csh-lightbox__img {
        max-width: 95vw;
        max-height: 80vh;
    }

    .csh-lightbox__close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}
