/**
 * Game Carousel Algorithm - Minimal Custom Styles
 * Spectra handles carousel styling
 * CREATE NEW FILE: wp-content/themes/your-astra-child/css/gca-custom-styles.css
 */

/* Container */
.gca-carousel-container {
    margin: 40px 0;
}

/* Single Row - FIXED VERTICAL SPACING */
.gca-carousel-row,
.gca-spectra-row {
    margin-bottom: 60px !important;
    clear: both;
}

/* H2 Taxonomy Heading */
.gca-taxonomy-heading {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.gca-taxonomy-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gca-taxonomy-link:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Lazy Load Animation */
.gca-lazy-row {
    min-height: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Load More Button */
.gca-load-more-container {
    text-align: center;
    margin: 40px 0;
}

.gca-load-more-btn {
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #0073aa;
    background: #fff;
    color: #0073aa;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.gca-load-more-btn:hover:not(:disabled) {
    background: #0073aa;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    transform: translateY(-2px);
}

.gca-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #999;
    box-shadow: none;
}

/* Spectra Carousel Adjustments */
.gca-spectra-row .uagb-post-carousel {
    margin-top: 0;
    margin-bottom: 0;
}

/* Fix Spectra arrow positioning if needed */
.gca-spectra-row .slick-arrow {
    z-index: 10;
}

/* Ensure consistent spacing between rows */
.gca-spectra-row + .gca-spectra-row {
    margin-top: 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .gca-taxonomy-heading {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .gca-carousel-row,
    .gca-spectra-row {
        margin-bottom: 50px !important;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .gca-taxonomy-heading {
        font-size: 26px;
    }
}

/* Accessibility - Focus states */
.gca-taxonomy-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 3px;
}

/* Click tracking helper - make entire card clickable area */
.gca-spectra-row .uagb-post__inner-wrap {
    cursor: pointer;
}
/* Simple horizontal scroll for lazy-loaded carousels */
.gca-lazy-placeholder .uagb-post-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
}

.gca-lazy-placeholder .uagb-post__inner-wrap {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    min-width: 300px;
}

@media (max-width: 1024px) {
    .gca-lazy-placeholder .uagb-post__inner-wrap {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .gca-lazy-placeholder .uagb-post__inner-wrap {
        flex: 0 0 calc(100% - 20px);
    }
}