/**
 * GAME FILTER SYSTEM - CSS STARTER STYLES
 * Save this as: /wp-content/themes/YOUR-CHILD-THEME/css/game-filters.css
 * Customize these styles to match your theme
 */

/* ==========================================================================
   FILTERS WRAPPER
   ========================================================================== */

.gf-filters-wrapper {
    margin-bottom: 30px;
}

.gf-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.gf-filter-group {
    flex: 1;
    min-width: 200px;
}

.gf-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.gf-filter-select {
    width: 80%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-height: 40px;
}
/* Filter order */
.gf-filter-subject { order: 1; }
.gf-filter-player { order: 2; }
.gf-filter-platform { order: 3; }
.gf-filter-level { order: 4; }
.gf-filter-genre { order: 5; }
.gf-educational-exclude { order: 6; }

/* Filter height */
.gf-filter-select {
    height: 100px; /* Adjust as needed */
}

/* Educational Games Checkbox */
.gf-educational-exclude {
    flex: 1 1 100%;
    margin-top: 10px;
}

.gf-educational-exclude label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.gf-hide-educational-checkbox {
    margin-right: 8px;
    cursor: pointer;
}

/* Filter Actions */
.gf-filter-actions {
    flex: 1 1 100%;
    margin-top: 10px;
}

.gf-reset-btn {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.gf-reset-btn:hover {
    background-color: #555;
}

/* Loading Indicator */
.gf-loading {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

/* ==========================================================================
   RESULTS GRID
   ========================================================================== */

.gf-results-wrapper {
    margin-top: 30px;
}

.gf-results-container {
    margin-bottom: 30px;
}

.gf-games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.gf-game-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.gf-game-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gf-game-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.gf-game-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
    background-color: #f5f5f5;
}

/* added place-items */
.gf-game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    place-items: center;
}

.gf-game-content {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gf-game-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.gf-game-excerpt {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-decoration: none !important;
}

.gf-game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 20px 5px 220px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gf-game-link {
        flex-direction: column;
    }
    
    .gf-game-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .gf-game-content {
        padding: 15px;
    }
    
    .gf-game-tags {
        padding: 0 15px 10px 15px;
    }
}

/**
 * GAME FILTER TAGS - PART 4 UPDATE
 * ADD this CSS to your game-filters.css file
 * Add it after the .gf-game-excerpt styles
 */

/* ==========================================================================
   GAME TAGS (NEW)
   ========================================================================== */
/* Margin top changed from 12 to 0 */

.gf-game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0px;
}

.gf-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.gf-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Optional: Different styles per taxonomy type */
.gf-tag-genre {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gf-tag-level {
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.gf-tag-platform {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gf-tag-player {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gf-tag-subject {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gf-game-tags {
        margin-top: 10px;
        gap: 5px;
    }
    
    .gf-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.gf-pagination-controls {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.gf-per-page-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gf-per-page-selector label {
    font-size: 14px;
    color: #666;
}

.gf-per-page-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    min-width: 80px;
}

.gf-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.gf-pagination-link,
.gf-pagination-current {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.gf-pagination-link:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.gf-pagination-current {
    background-color: #333;
    color: #fff;
    border-color: #333;
    font-weight: 600;
}

.gf-pagination-prev,
.gf-pagination-next {
    font-weight: 600;
}

/* ==========================================================================
   NO RESULTS
   ========================================================================== */

.gf-no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #edc1ac;
    border-radius: 8px;
}

.gf-no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.gf-notification-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.gf-notification-form input[type="email"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.gf-notification-form button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.gf-notification-form button:hover {
    background-color: #555;
}

.gf-notification-success p {
    font-size: 16px;
    color: #28a745;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .gf-filters-container {
        flex-direction: column;
    }
    
    .gf-filter-group {
        min-width: 100%;
    }
    
    .gf-game-link {
        flex-direction: column;
    }
    
    .gf-game-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .gf-pagination-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .gf-per-page-selector {
        justify-content: center;
    }
    
    .gf-pagination {
        font-size: 14px;
    }
    
    .gf-pagination-link,
    .gf-pagination-current {
        padding: 10px 14px;
        min-width: 44px;
        font-size: 14px;
    }
    
    .gf-notification-form {
        flex-direction: column;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gf-filters-container {
        gap: 12px;
    }
    
    .gf-filter-group {
        min-width: calc(50% - 6px);
    }
}

@media (min-width: 1025px) {
    .gf-games-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
/**
 * GAME FILTER FIXES - PART 3
 * ADD this CSS to your game-filters.css file
 */

/* Remove underline from excerpt */
.gf-game-excerpt {
    text-decoration: none !important;
}

/* Remove underline from tags */
.gf-tag {
    text-decoration: none !important;
}

/* Remove underline from game link (affects all children) */
.gf-game-link {
    text-decoration: none !important;
}

.gf-game-link:hover {
    text-decoration: none !important;
}

/* Ensure excerpt and tags specifically have no underline even when inside link */
.gf-game-link .gf-game-excerpt,
.gf-game-link .gf-tag {
    text-decoration: none !important;
}
/**
 * UPDATE 6: CSS FOR CLICKABLE TAGS
 * ADD this CSS to your game-filters.css file
 */

/* Make tags look clickable */
.gf-tag {
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.gf-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Tags on single game posts */
.gf-single-game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 15px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.gf-single-game-tags .gf-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .gf-single-game-tags {
        margin: 12px 0 15px 0;
    }
    
    .gf-single-game-tags .gf-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
}
/* White background for tags on single game posts only */
.gf-single-game-tags .gf-tag {
    background-color: #ffffff !important;
    border: 2px solid #ddd;
}