/* Courses Page Specific Styles */

/* Courses Hero Section */
.courses-hero {
    padding: 150px 0 100px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 37, 48, 0.9) 0%, rgba(44, 62, 80, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="chess" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="10" height="10" fill="%23f0d9b5" opacity="0.1"/><rect x="10" y="10" width="10" height="10" fill="%23f0d9b5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23chess)"/></svg>');
    opacity: 0.3;
}

.courses-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.courses-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--light-square), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 1s ease;
}

.courses-hero-subtitle {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-features .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    min-width: 150px;
}

.hero-features .feature:hover {
    transform: translateY(-5px);
    border-color: var(--light-square);
}

.hero-features .feature i {
    font-size: 2rem;
    color: var(--light-square);
}

.hero-features .feature span {
    color: #ccc;
    font-weight: 500;
}

/* Course Categories */
.course-categories {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 217, 181, 0.1), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--light-square);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.category-icon {
    font-size: 3.5rem;
    color: var(--light-square);
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.category-card p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--light-square);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Courses Grid Section */
.courses-grid-section {
    padding: 100px 0;
}

.courses-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--light-square);
    color: var(--primary-dark);
    border-color: var(--light-square);
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-square), var(--light-square));
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--light-square);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.course-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-badge.beginner {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.course-badge.intermediate {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: white;
}

.course-badge.advanced {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.course-badge.tournament {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.course-icon {
    font-size: 2.5rem;
    color: var(--light-square);
}

.course-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.course-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-details {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-square);
    font-size: 0.9rem;
}

.detail i {
    font-size: 1rem;
}

.course-features {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.course-features li {
    color: #ccc;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.course-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--light-square);
    font-weight: bold;
}

.course-price {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-square);
}

.period {
    color: #ccc;
    font-size: 0.9rem;
}

.course-actions {
    display: flex;
    gap: 10px;
}

.course-actions .btn {
    flex: 1;
    text-align: center;
}

/* Course Gallery */
.course-gallery {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.gallery-container {
    margin-top: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--light-square);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(240, 217, 181, 0.1) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

.image-placeholder {
    text-align: center;
    color: var(--light-square);
    z-index: 2;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.image-placeholder span {
    font-size: 1.1rem;
    font-weight: 500;
}

.gallery-caption {
    padding: 20px;
    text-align: center;
    color: #ccc;
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--light-square);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--light-square);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--light-square);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-square);
}

.period {
    color: #ccc;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    color: #ccc;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.pricing-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--light-square);
    font-weight: bold;
}

.pricing-features li.excluded {
    color: #666;
    text-decoration: line-through;
}

.pricing-features li.excluded:before {
    content: '✗';
    color: #666;
}

/* Courses CTA Section */
.courses-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.courses-cta .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--light-square), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.courses-cta .cta-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .courses-hero-title {
        font-size: 3rem;
    }
    
    .hero-features {
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .courses-hero {
        padding: 120px 0 80px;
        min-height: 60vh;
    }
    
    .courses-hero-title {
        font-size: 2.5rem;
    }
    
    .courses-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features .feature {
        width: 200px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-container {
        grid-template-columns: 1fr;
    }
    
    .courses-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .courses-hero-title {
        font-size: 2rem;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .course-details {
        flex-direction: column;
        gap: 10px;
    }
}