/*
Theme Name: Episode Download Theme
Theme URI: http://example.com/episode-download-theme
Author: Your Name
Author URI: http://example.com
Description: A custom theme for managing and displaying series with multiple episodes and download links.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: episode-download-theme
*/

/* ============================
   Global Styles
============================ */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================
   Gradient Backgrounds
============================ */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, rgba(128, 0, 128, 0.2), #000, rgba(0, 0, 255, 0.2));
    z-index: 1;
    pointer-events: none;
}

.gradient-overlay-1, .gradient-overlay-2 {
    position: fixed;
    width: 50%;
    height: 50%;
    filter: blur(50px);
    z-index: 2;
    pointer-events: none;
}

.gradient-overlay-1 {
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(0, 0, 255, 0.1) 0%, transparent 70%);
}

.gradient-overlay-2 {
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, rgba(128, 0, 128, 0.1) 0%, transparent 70%);
}

/* ============================
   Container
============================ */
.container {
    max-width: 1000px; /* Adjusted max-width for desktop */
    margin: 0 auto;
    padding: 2.4rem; /* Increased padding for more vertical space */
    position: relative;
    z-index: 10;
}

/* ============================
   Note Section
============================ */
.note-section {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.4rem; /* Increased padding */
    margin-bottom: 3rem; /* Adjusted margin */
    text-align: center;
}

.note-title {
    font-size: 1.4rem; /* Increased font size */
    font-weight: bold;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin-right: 0.6rem;
}

.lightning {
    display: inline-block;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.note-text {
    color: #a0a0a0;
    margin-top: 0.6rem;
    font-size: 1.2rem;
}

/* ============================
   Series Title
============================ */
.series-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.series-content {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* ============================
   Episodes Section
============================ */
.episodes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Reduced gap from 3rem to 1.5rem */
}

.episode {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.2rem; /* Reduced padding from 2rem to 1.2rem */
    margin-bottom: 1.5rem; /* Reduced margin from 3rem to 1.5rem */
    transition: transform 0.3s ease;
    border: 2px solid; /* Added border */
    border-image: linear-gradient(to right, #06b6d4, #10b981) 1; /* Gradient border */
}

.episode:hover, .episode:focus-within {
    transform: scale(1.02);
}

.episode-title {
    font-size: 0.9rem; /* Reduced font size by 50% */
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.2rem; /* Reduced margin */
    padding-bottom: 0.6rem; /* Reduced padding */
    position: relative;
}

.episode-title span {
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.episode-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 2px;
    background: linear-gradient(to right, transparent, #808080, transparent);
}

/* ============================
   Button Container
============================ */
.button-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem; /* Increased gap for better spacing */
}

@media (min-width: 640px) {
    .button-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================
   Download Buttons
============================ */
.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem; /* Increased gap between icon and text */
    padding: 0.9rem 1.2rem; /* Increased padding */
    border-radius: 0.9rem; /* Increased border-radius */
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-button:hover::before,
.download-button:focus::before {
    opacity: 1;
}

.download-button.skydrop {
    background: linear-gradient(to right, #06b6d4, #10b981);
    box-shadow: 0 4px 6px -1px rgba(6, 182, 212, 0.25);
}

.download-button.telegram {
    background: linear-gradient(to right, #3b82f6, #6366f1);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25);
}

.download-button.hubcloud {
    background: linear-gradient(to right, #f59e0b, #ea580c);
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.25);
}

.download-button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ============================
   Icon Styles
============================ */
.icon {
    width: 1.5rem; /* Increased icon size */
    height: 1.5rem; /* Increased icon size */
    flex-shrink: 0;
}

/* ============================
   Loading Overlay
============================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    visibility: visible;
    opacity: 1;
}

.spinner {
    border: 10px solid #f3f3f3; /* Increased border thickness */
    border-top: 10px solid #10b981; /* Increased border thickness */
    border-radius: 50%;
    width: 72px; /* Increased spinner size */
    height: 72px; /* Increased spinner size */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================
   Series Archive Styles
============================ */
.series-archive {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.series-item {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease;
    border: 2px solid;
    border-image: linear-gradient(to right, #06b6d4, #10b981) 1;
}

.series-item:hover {
    transform: scale(1.02);
}

.series-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.series-excerpt {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.button-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #10b981;
    color: #fff;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.button-primary:hover {
    background-color: #059669;
}

/* ============================
   Responsive Enhancements
============================ */
@media (max-width: 480px) {
    .note-section, .episode, .series-item {
        padding: 1.8rem; /* Adjusted padding for smaller screens */
    }

    .note-title {
        font-size: 1rem; /* Adjusted font size */
    }

    .episode-title {
        font-size: 0.9rem; /* Adjusted font size */
    }

    .series-title {
        font-size: 1.5rem; /* Adjusted font size */
    }

    .series-excerpt {
        font-size: 1rem; /* Adjusted font size */
    }

    .button-container {
        grid-template-columns: 1fr; /* Stack buttons vertically */
    }

    .button-primary {
        padding: 0.6rem 1.2rem; /* Adjusted padding */
    }
}

/* Add these new button styles to your style.css file - place them after the .download-button.hubcloud styles */

.download-button.gdflix {
    background: linear-gradient(to right, #f59e0b, #ea580c);
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.25);
}

.download-button.gdtot {
    background: linear-gradient(to right, #3b82f6, #6366f1);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25);
}
