/* ===== Page Header ===== */
.page-header {
    padding: 120px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===== Categories Section ===== */
.categories-section {
    padding: 30px 20px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.categories-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
}

.category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--darker-bg);
}

/* ===== Tutorials Section ===== */
.tutorials-section {
    padding: 60px 20px;
}

.tutorials-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.video-card.hidden {
    display: none;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--shadow);
}

/* ===== Video Thumbnail ===== */
.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: var(--darker-bg);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.9;
    transition: all 0.3s;
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===== Video Info ===== */
.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.video-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.category-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-badge.mechanics {
    background: rgba(0, 217, 255, 0.2);
    color: var(--primary);
}

.category-badge.positioning {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
}

.category-badge.advanced {
    background: rgba(255, 23, 68, 0.2);
    color: var(--grand-champion);
}

/* ===== Video Modal ===== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    z-index: 10001;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    z-index: 10002;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

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

/* ===== Tablet Breakpoint ===== */
@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }
    
    .tutorials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .categories-nav {
        gap: 15px;
    }
}

/* ===== Desktop Breakpoint ===== */
@media (min-width: 1024px) {
    .tutorials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Large Desktop ===== */
@media (min-width: 1440px) {
    .tutorials-grid {
        gap: 35px;
    }
}
