/* ═══════════════════════════════════════════════════════
   MISTY HAVEN HOMEPAGE COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   FEATURED BANNER - Full Width Carousel
   ═══════════════════════════════════════════════════════ */
.mh-featured-banner {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

.mh-featured-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.mh-featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-featured-slide.active {
    opacity: 1;
    z-index: 1;
}

.mh-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(26, 11, 46, 0.9) 0%,
        rgba(74, 43, 111, 0.85) 50%,
        rgba(232, 165, 212, 0.7) 100%);
    backdrop-filter: blur(5px);
}

.mh-featured-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 40px;
    color: var(--text-primary);
}

.mh-featured-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-primary));
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: var(--glow);
}

.mh-featured-title {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF, var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.mh-featured-genres {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.mh-featured-genre {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.mh-featured-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.mh-featured-excerpt {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.mh-featured-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.mh-btn-primary {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-primary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
}

.mh-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(167, 139, 250, 0.6);
}

.mh-btn-secondary {
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.mh-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Carousel Dots */
.mh-featured-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.mh-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.mh-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════
   SECTIONS - Common Styles
   ═══════════════════════════════════════════════════════ */
.mh-section {
    padding: 80px 0;
}

.mh-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.mh-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.mh-section-title {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.mh-section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.mh-section-footer {
    text-align: center;
    margin-top: 50px;
}

.mh-view-all-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-primary));
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.mh-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow);
}

/* ═══════════════════════════════════════════════════════
   HOT THIS WEEK - Horizontal Scroll Carousel
   ═══════════════════════════════════════════════════════ */
.mh-hot-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.mh-hot-carousel::-webkit-scrollbar {
    height: 8px;
}

.mh-hot-carousel::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.mh-hot-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--purple-primary), var(--pink-primary));
    border-radius: 4px;
}

.mh-hot-card {
    flex: 0 0 250px;
    position: relative;
}

.mh-hot-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mh-badge-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    animation: pulse 2s ease-in-out infinite;
}

.mh-badge-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
}

.mh-badge-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.mh-hot-badge:not(.mh-badge-1):not(.mh-badge-2):not(.mh-badge-3) {
    background: linear-gradient(135deg, var(--pink-primary), var(--purple-primary));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mh-hot-link {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.mh-hot-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow);
}

.mh-hot-cover {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-primary));
}

.mh-hot-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-hot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: 0.3;
}

.mh-hot-title {
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mh-hot-stats {
    padding: 0 15px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.mh-hot-trend {
    color: #10B981;
    font-weight: 700;
}

.mh-hot-views {
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   ALL-TIME FAVORITES - Grid Layout
   ═══════════════════════════════════════════════════════ */
.mh-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.mh-favorite-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.mh-favorite-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow);
}

.mh-favorite-cover {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-primary));
}

.mh-favorite-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mh-favorite-card:hover .mh-favorite-cover img {
    transform: scale(1.1);
}

.mh-favorite-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: 0.3;
}

.mh-favorite-info {
    padding: 20px;
}

.mh-favorite-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mh-favorite-rating {
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mh-favorite-rating span {
    color: var(--purple-primary);
    font-weight: 700;
}

.mh-favorite-views {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   BROWSE BY GENRE - Grid
   ═══════════════════════════════════════════════════════ */
.mh-genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.mh-genre-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mh-genre-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple-primary);
}

.mh-genre-icon {
    font-size: 48px;
    filter: drop-shadow(0 0 10px var(--purple-glow));
}

.mh-genre-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.mh-genre-count {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .mh-featured-banner {
        height: 500px;
    }
    
    .mh-featured-title {
        font-size: 36px;
    }
    
    .mh-featured-actions {
        flex-direction: column;
    }
    
    .mh-section {
        padding: 50px 0;
    }
    
    .mh-section-title {
        font-size: 32px;
    }
    
    .mh-favorites-grid,
    .mh-genre-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
