/**
 * Speaker Categories Page Styles
 * 
 * Styles for the speaker categories listing page
 * 3-column grid layout with hover effects
 * 
 * @package AISBKnowledgeNetworks
 * @since 1.0.0
 */

/* Speaker Categories Page */
.speaker-categories-page {
    background-color: #f8f9fa;
}

.speaker-categories-section {
    padding: 0 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-size: 63px;
    color: #2a548c;
    font-weight: 400;
    text-align: center;
}

p.section-description {
    font-size: 25px;
    letter-spacing: -1px;
    line-height: 32px;
    color: #2e2b2b;
    font-weight: 300;
    text-align: center;
    width: 80%;
    margin: 30px auto 0;
}

/* Categories Grid */
.speaker-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Category Card */
.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

/* Placeholder for categories without images */
.category-image.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
}

.placeholder-content span {
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

/* Category Overlay */
.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(16,2,2,0.9999999999999999) 100%);
    padding: 30px 20px 20px;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.category-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-align: center;
    text-transform: capitalize;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: #fff;
}

.btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* Responsive Design */
@media (max-width: 992px) {
    .speaker-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .section-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .speaker-categories-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .speaker-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .category-name {
        font-size: 18px;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .speaker-categories-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .speaker-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-overlay {
        padding: 25px 15px 15px;
    }
    
    .category-name {
        font-size: 16px;
    }
}

/* Animation for new categories loaded via AJAX */
.category-card {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple cards */
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }
.category-card:nth-child(9) { animation-delay: 0.9s; }
