/* تصميم احترافي لصفحة البودكاست - ملائم للجوال */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
    direction: rtl;
    text-align: right;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* عنوان الصفحة */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    background-clip: text;
    color: black; 
}

/* قسم الفلتر */
.filter-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    position: relative;
}

.filter-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-left: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.filter-select:hover {
    border-color: #667eea;
    transform: translateY(-1px);
}

.filter-button {
    grid-column: 1 / -1;
    padding: 15px 30px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.filter-button:active {
    transform: translateY(-1px);
}

/* عداد النتائج */
.results-count-box {
    background: linear-gradient(45deg, #ecf5fc, #d6eafc);
    color: #2c3e50;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(236, 245, 252, 0.3);
    border: 1px solid #bdd4e7;
}

.results-icon {
    font-size: 1.2em;
    margin-left: 10px;
}

.results-text {
    font-size: 16px;
    font-weight: 600;
}

.no-results {
    color: #ff6b6b;
}

/* قائمة البودكاست */
.podcast-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.podcast-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideUp 0.6s ease-out both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podcast-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* فيديو البودكاست */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: transform 0.3s ease;
}

.video-wrapper:hover iframe {
    transform: scale(1.05);
}

/* محتوى البطاقة */
.podcast-card > div:last-child {
    padding: 25px;
}

.podcast-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.4;
}

.podcast-description {
    font-size: 1rem;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 600;
}

.podcast-details {
    border-top: 2px solid #f0f4f8;
    padding-top: 20px;
}

.podcast-details p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
}

.podcast-details strong {
    color: #2c3e50;
    margin-left: 8px;
    min-width: 100px;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .courses-container {
        padding: 15px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .filter-container {
        padding: 20px;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-select {
        padding: 12px 35px 12px 15px;
        font-size: 14px;
    }
    
    .filter-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .podcast-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .podcast-card {
        margin: 0 5px;
    }
    
    .video-wrapper {
        height: 200px;
    }
    
    .podcast-card > div:last-child {
        padding: 20px;
    }
    
    .podcast-title {
        font-size: 1.2rem;
    }
    
    .podcast-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .podcast-details strong {
        min-width: auto;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .filter-container {
        padding: 15px;
    }
    
    .video-wrapper {
        height: 180px;
    }
    
    .podcast-card > div:last-child {
        padding: 15px;
    }
    
    .results-count-box {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* تحسينات إضافية للتفاعل */
.filter-select option {
    padding: 10px;
    color: #333;
}

.podcast-card:nth-child(even) .video-wrapper {
    background: linear-gradient(45deg, #764ba2, #667eea);
}

/* تأثيرات التحميل */
.podcast-card {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

.podcast-card:nth-child(1) { animation-delay: 0.1s; }
.podcast-card:nth-child(2) { animation-delay: 0.2s; }
.podcast-card:nth-child(3) { animation-delay: 0.3s; }
.podcast-card:nth-child(4) { animation-delay: 0.4s; }
.podcast-card:nth-child(5) { animation-delay: 0.5s; }
.podcast-card:nth-child(6) { animation-delay: 0.6s; }

/* تحسين الإمكانية */
.filter-select:focus,
.filter-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* تحسين الطباعة */
@media print {
    .filter-container {
        display: none;
    }
    
    .podcast-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .video-wrapper {
        display: none;
    }
}