@import url("series_page_base.css");

/* Additional CSS for improvements */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #d4af37;
    --accent-color: #8b4513;
    --light-bg: #f8f5f0;
    --dark-text: #333;
    --light-text: #666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --dark-color: #5D4037;
}

body {
    background-color: var(--light-bg);
}

.container {
    padding: 0 20px;
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin: 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.8rem;
}

h2 {
    font-size: 1.2rem;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.series-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.series-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.series-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    font-weight: bold;
}

.series-content {
    padding: 15px;
}

.series-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.series-content a:hover {
    text-decoration: underline;
}

.video-selector {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: 'Noto Sans Sinhala', Arial, sans-serif;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    margin-top: 15px;
}

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

.category-section {
    margin: 40px 0;
}

.category-title {
    font-size: 1.5em;
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

.search-container {
    margin: 20px 0;
    text-align: center;
}

.search-box {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.footer-links {
    text-align: center;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.footer-links a {
    display: inline-block;
    margin: 0 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .series-grid {
        grid-template-columns: 1fr;
    }

    .filter-options {
        flex-direction: column;
        align-items: center;
    }
}