/* style.css */
/* بنەڕەتی گشتی */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

/* Main Header */
.main-header {
    background: linear-gradient(135deg, #ff7f50, #ff4500);
    color: white;
    padding: 15px 20px;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.3);
}

.main-header h1 {
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: bold;
}

.menu-btn {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 28px;
    cursor: pointer;
    display: none;
    background: none;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

/* مۆبایل مینوو */
.nav-menu ul {
    list-style: none;
    margin: 15px 0 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-menu li {
    margin: 5px;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.nav-menu a:hover {
    background: white;
    color: #ff4500;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .main-header h1 {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 300px;
        background: linear-gradient(180deg, #ff7f50, #ff4500);
        z-index: 1000;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 80px 20px 20px;
        overflow-y: auto;
        box-shadow: 5px 0 20px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        justify-content: flex-start;
        padding: 18px 25px;
        font-size: 1.1rem;
        border-radius: 15px;
    }
}

/* overlay بۆ مۆبایل مینوو */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(3px);
}

.nav-overlay.active {
    display: block;
}

/* Main Content */
main {
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Video Player Section */
.video-player-section {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 3px solid #ff6600;
}

.video-player-section h2 {
    text-align: center;
    color: #ff4500;
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.main-video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.main-video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #ffa500, #ff4500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    flex-direction: column;
    gap: 15px;
}

.main-video-placeholder i {
    font-size: 4rem;
    opacity: 0.7;
}

.main-video-frame {
    width: 100%;
    height: 100%;
    border: none;
    aspect-ratio: 16/9;
}

.current-episode-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 10px;
    border: 2px solid #ffa500;
}

.current-episode-info h3 {
    color: #ff4500;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.current-episode-info p {
    color: #666;
    font-size: 1rem;
}

/* Episodes Section */
.episodes-section h2 {
    text-align: center;
    color: #ff4500;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    padding: 20px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 15px;
    border: 3px solid #ff6600;
}

/* Episode Grid - Enhanced design */
.episode-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 0;
    max-width: 100%;
}

.episode-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 3px solid #ffa500;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.episode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff7f50, #ff4500, #ffa500);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.episode-card:hover::before {
    transform: translateX(0);
}

.episode-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 165, 0, 0.3);
    border-color: #ff4500;
    background: linear-gradient(135deg, #fff, #fffaf0);
}

.episode-card.active {
    border-color: #ff4500;
    background: linear-gradient(135deg, #fff5e6, #ffe0b3);
    box-shadow: 0 12px 30px rgba(255, 69, 0, 0.4);
}

.episode-card h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
    flex-shrink: 0;
}

.episode-card.active h3 {
    color: #ff4500;
}

/* Video Container - Enhanced */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #f2f2f2, #e8e8e8);
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.1);
    flex-grow: 1;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.video-thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.9), rgba(255, 69, 0, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 10px;
    transition: all 0.4s ease;
    padding: 15px;
}

.video-thumbnail:hover {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.95), rgba(255, 165, 0, 0.95));
    transform: scale(1.05);
}

.video-thumbnail i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.video-thumbnail span {
    font-size: 0.8rem;
    line-height: 1.3;
}

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

/* Error Message */
.error-message {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(220, 53, 69, 0.7));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 10px;
    padding: 15px;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Loading Animation */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    margin-top: 50px;
    color: #666;
    font-size: 1rem;
    border-top: 3px solid #ff6600;
}

/* Mobile Responsive grids */
@media screen and (max-width: 1200px) {
    .episode-list {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media screen and (max-width: 800px) {
    .episode-list {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    .episodes-section h2 {
        font-size: 1.8rem;
    }
    .video-player-section {
        padding: 20px;
    }
}

@media screen and (max-width: 600px) {
    .episode-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    .episode-card {
        padding: 15px;
        min-height: 170px;
    }
    .episode-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .video-thumbnail {
        font-size: 0.8rem;
        padding: 10px;
    }
    .video-thumbnail i {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    .video-thumbnail span {
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 400px) {
    .episode-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    main {
        padding: 20px 10px;
    }
}

/* =============================================
   کۆدی نوێ - فۆنتە تایبەتەکان بۆ هەر بەشێک
   ============================================= */

/* یەکەم: فۆنتەکانت دیاری بکە */
@font-face {
  font-family: 'text-video-player';
  src: url('fonts/K24KurdishLight-Light.ttf') format('truetype');
}
.main-video-placeholder p {
  font-family: 'text-video-player', 'Segoe UI', sans-serif !important;
} 

@font-face {
  font-family: 'footer';
  src: url('fonts/K24KurdishLight-Light.ttf') format('truetype');
}
footer p {
  font-family: 'footer', 'Segoe UI', sans-serif !important;
}