/* ===========================
   Pooplands Videos Page Styles
   =========================== */

/* Video-specific styles that work with the subpage theme */

/* Subscribe Section */
.subscribe-content {
    text-align: center;
}

.subscribe-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.subscribe-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* YouTube Button Styling */
.btn-primary {
    background: #ff0000 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3) !important;
    cursor: pointer !important;
}

.btn-primary:hover {
    background: #cc0000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4) !important;
}

.btn-primary:before {
    content: "▶" !important;
    font-size: 14px !important;
    margin-right: 4px !important;
}

.btn-secondary {
    background: transparent !important;
    color: #ff0000 !important;
    border: 2px solid #ff0000 !important;
    padding: 10px 22px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.btn-secondary:hover {
    background: #ff0000 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3) !important;
}

.btn-secondary:before {
    content: "📺" !important;
    font-size: 14px !important;
    margin-right: 4px !important;
}

/* Featured Video Section */
.featured-video-container {
    width: 100%;
    margin: 0 auto;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 600px; /* Even larger height */
    border-radius: var(--card-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
    background: rgba(0,0,0,0.5);
}

.play-button {
    width: 80px;
    height: 80px;
    background: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.video-thumbnail:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

.video-embed {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* Playlist Section */
.playlist-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.playlist-container {
    width: 100%;
    margin: 0 auto;
}

.playlist-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .subscribe-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-thumbnail,
    .playlist-container iframe {
        border-radius: 12px;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    font-style: italic;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.video-thumbnail:focus {
    outline: 3px solid var(--sunny-turquoise);
    outline-offset: 2px;
}

/* Music page specific styles */
.music-iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* Make video containers larger on desktop */
@media (min-width: 768px) {
    .featured-video-container,
    .playlist-container {
        max-width: none;
        width: 100%;
    }
    
    .playlist-container iframe,
    .music-iframe {
        min-height: 500px;
    }
}

/* Ensure embedded videos are large */
.video-embed {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    min-height: 600px !important;
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* Fix thumbnail sizing to prevent overflow */
.video-thumbnail {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 600px; /* Even larger height */
    border-radius: var(--card-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    /* Ensure thumbnail doesn't exceed container */
    box-sizing: border-box;
}
