/**
 * HotMe Theme - Section Pages Styles
 * Creadoras, Trending, Populares, Nuevos
 * 
 * @package HotMe
 * @version 1.0.5
 */

/* ════════════════════════════════════════════════
   SECTION HERO (compartido)
   ════════════════════════════════════════════════ */
.hotme-section-hero {
    position: relative;
    padding: 140px 40px 60px;
    text-align: center;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotme-section-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a0a0c 0%, #0d0d0d 50%, #0a0a14 100%);
    z-index: 0;
}

.hotme-section-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(215, 55, 68, 0.15) 0%, transparent 70%);
}

/* Variantes de hero */
.hotme-hero-trending::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
}

.hotme-hero-popular::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 193, 7, 0.15) 0%, transparent 70%);
}

.hotme-hero-nuevos::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(76, 175, 253, 0.15) 0%, transparent 70%);
}

.hotme-section-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hotme-section-hero-icon {
    font-size: 40px;
    margin-bottom: 16px;
    line-height: 1;
}

.hotme-section-hero-icon i {
    color: var(--hm-red);
}

.hotme-section-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--hm-text);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.hotme-section-hero-desc {
    font-size: 16px;
    color: var(--hm-text-60);
    margin: 0 0 24px;
    line-height: 1.5;
}

.hotme-section-hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.hotme-section-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hotme-section-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--hm-red);
}

.hotme-section-stat-label {
    font-size: 12px;
    color: var(--hm-text-40);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ════════════════════════════════════════════════
   CREADORAS PAGE
   ════════════════════════════════════════════════ */
.hotme-creadoras-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.hotme-creadoras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.hotme-creator-card {
    background: var(--hm-bg-card);
    border-radius: var(--hm-radius-lg);
    border: 1px solid var(--hm-border);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.hotme-creator-card:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 55, 68, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Banner */
.hotme-creator-banner {
    height: 120px;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    overflow: hidden;
}

.hotme-creator-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hotme-creator-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, var(--hm-bg-card) 100%);
}

/* Avatar */
.hotme-creator-avatar-wrap {
    width: 80px;
    height: 80px;
    margin: -40px auto 0;
    position: relative;
    z-index: 2;
}

.hotme-creator-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--hm-bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Info */
.hotme-creator-info {
    padding: 12px 20px 20px;
    text-align: center;
}

.hotme-creator-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--hm-text);
    margin: 0 0 4px;
}

.hotme-creator-bio {
    font-size: 13px;
    color: var(--hm-text-40);
    margin: 0 0 14px;
    line-height: 1.4;
}

.hotme-creator-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.hotme-creator-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--hm-text-60);
}

.hotme-creator-stat i {
    color: var(--hm-red);
    font-size: 11px;
}

/* Mini thumbnails */
.hotme-creator-recent {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 16px;
}

.hotme-creator-mini-thumb {
    width: 52px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.hotme-creator-mini-thumb:hover {
    opacity: 1;
}

.hotme-creator-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA Button */
.hotme-creator-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 24px;
    background: var(--hm-red);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.hotme-creator-btn:hover {
    background: var(--hm-red-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(215, 55, 68, 0.4);
}

/* ════════════════════════════════════════════════
   VIDEO GRID (Trending, Popular, Nuevos)
   ════════════════════════════════════════════════ */
.hotme-section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.hotme-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Video Card */
.hotme-video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hotme-video-card {
    background: var(--hm-bg-card);
    border-radius: var(--hm-radius);
    border: 1px solid var(--hm-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.hotme-video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 55, 68, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Media / Thumbnail */
.hotme-video-card-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--hm-bg-elevated);
}

.hotme-video-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hotme-video-card:hover .hotme-video-card-thumb {
    transform: scale(1.05);
}

.hotme-video-card-nothumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hm-text-20);
    font-size: 36px;
}

/* Overlay */
.hotme-video-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hotme-video-card:hover .hotme-video-card-overlay {
    opacity: 1;
}

.hotme-video-card-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hm-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.hotme-video-card:hover .hotme-video-card-play {
    transform: scale(1);
}

/* Price Badge */
.hotme-video-card-price {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.hotme-price-free {
    background: rgba(76, 175, 80, 0.9);
}

/* Rank Badge (Populares) */
.hotme-video-card-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.hotme-rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.hotme-rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #9E9E9E);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.hotme-rank-3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

/* New Badge */
.hotme-video-card-new {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    background: var(--hm-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 3px;
    letter-spacing: 0.5px;
    animation: hotmePulseNew 2s ease-in-out infinite;
}

@keyframes hotmePulseNew {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Video Info */
.hotme-video-card-info {
    padding: 14px 16px;
}

.hotme-video-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-text);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotme-video-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hotme-video-card-creator {
    font-size: 12px;
    color: var(--hm-text-40);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hotme-video-card-creator i {
    color: var(--hm-red);
    font-size: 11px;
}

.hotme-video-card-sales {
    font-size: 11px;
    color: var(--hm-text-40);
    display: flex;
    align-items: center;
    gap: 3px;
}

.hotme-video-card-sales i {
    color: #FF6B35;
    font-size: 10px;
}

.hotme-video-card-date {
    font-size: 11px;
    color: var(--hm-text-40);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hotme-video-card-date i {
    font-size: 10px;
}

/* ════════════════════════════════════════════════
   CREATOR PROFILE PAGE (/creadora/nombre/)
   ════════════════════════════════════════════════ */
.hotme-creator-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 40px 48px;
    overflow: hidden;
}

.hotme-creator-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a0a0c 0%, #0d0d0d 50%, #0a0a14 100%);
}

.hotme-creator-hero-bg img.hotme-creator-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: blur(8px);
    transform: scale(1.1);
}

.hotme-creator-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(13, 13, 13, 0.3) 0%, 
        rgba(13, 13, 13, 0.7) 50%, 
        rgba(13, 13, 13, 0.95) 100%
    );
}

.hotme-creator-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding-top: 120px;
}

.hotme-creator-hero-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--hm-red);
    box-shadow: 0 0 30px rgba(215, 55, 68, 0.3);
}

.hotme-creator-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotme-creator-hero-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--hm-text);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.hotme-creator-hero-bio {
    font-size: 15px;
    color: var(--hm-text-60);
    margin: 0 0 24px;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hotme-creator-hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 20px;
}

.hotme-creator-hero-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.hotme-creator-tag {
    padding: 5px 14px;
    background: rgba(215, 55, 68, 0.15);
    color: var(--hm-red);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(215, 55, 68, 0.3);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hotme-creator-tag:hover {
    background: var(--hm-red);
    color: #fff;
}

/* Section Header */
.hotme-creator-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hm-border);
}

.hotme-creator-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--hm-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hotme-creator-section-header h2 i {
    color: var(--hm-red);
    font-size: 18px;
}

.hotme-creator-section-count {
    font-size: 13px;
    color: var(--hm-text-40);
    background: var(--hm-glass);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ════════════════════════════════════════════════
   VIDEO PREVIEW ON HOVER
   ════════════════════════════════════════════════ */
.hotme-video-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hotme-has-preview:hover .hotme-video-card-thumb {
    filter: blur(2px);
    transition: filter 0.3s ease;
}

.hotme-has-preview:hover .hotme-video-card-overlay {
    z-index: 3;
}

/* Preview Badge */
.hotme-video-card-preview-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--hm-text-60);
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.hotme-has-preview:hover .hotme-video-card-preview-badge {
    background: rgba(215, 55, 68, 0.9);
    color: #fff;
}

/* ════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════ */
.hotme-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.hotme-empty-state i,
.hotme-empty-state span:first-child {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.6;
    color: var(--hm-text-40);
}

.hotme-empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--hm-text);
    margin: 0 0 8px;
}

.hotme-empty-state p {
    font-size: 14px;
    color: var(--hm-text-40);
    margin: 0;
}

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

/* Tablet */
@media (max-width: 992px) {
    .hotme-section-hero {
        padding: 120px 24px 48px;
        min-height: 240px;
    }
    
    .hotme-section-hero-title { font-size: 28px; }
    
    .hotme-creadoras-container,
    .hotme-section-container {
        padding: 32px 24px 60px;
    }
    
    .hotme-creadoras-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
    
    .hotme-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
    
    .hotme-creator-hero { min-height: 320px; padding: 0 24px 36px; }
    .hotme-creator-hero-name { font-size: 26px; }
    .hotme-creator-hero-avatar { width: 90px; height: 90px; }
}

/* Mobile */
@media (max-width: 768px) {
    .hotme-section-hero {
        padding: 100px 16px 40px;
        min-height: 200px;
    }
    
    .hotme-section-hero-icon { font-size: 32px; }
    .hotme-section-hero-title { font-size: 24px; }
    .hotme-section-hero-desc { font-size: 14px; }
    .hotme-section-stat-number { font-size: 22px; }
    
    .hotme-creadoras-container,
    .hotme-section-container {
        padding: 24px 16px 48px;
    }
    
    .hotme-creadoras-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hotme-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hotme-video-card-info { padding: 10px 12px; }
    .hotme-video-card-title { font-size: 13px; }
    .hotme-video-card-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
    
    .hotme-creator-banner { height: 100px; }
    
    .hotme-creator-hero { min-height: 280px; padding: 0 16px 32px; }
    .hotme-creator-hero-content { padding-top: 100px; }
    .hotme-creator-hero-avatar { width: 80px; height: 80px; border-width: 3px; }
    .hotme-creator-hero-name { font-size: 22px; }
    .hotme-creator-hero-bio { font-size: 13px; }
    .hotme-creator-hero-stats { gap: 20px; flex-wrap: wrap; }
    .hotme-creator-section-header { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hotme-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .hotme-video-card-play { width: 36px; height: 36px; font-size: 12px; }
    .hotme-video-card-price { font-size: 11px; padding: 3px 7px; }
    .hotme-video-card-rank { width: 24px; height: 24px; font-size: 10px; }
}
