/* ================================================
   ESPANOLGAMES.ES — HOMEPAGE
   File: assets/css/homepage.css
   ================================================ */

/* Grid Layout */
.games-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Card Container */
.game-card-modern {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.game-card-modern:hover {
    transform: translateY(-8px);
    border-color: #ff4400;
    box-shadow: 0 12px 40px rgba(255, 68, 0, 0.25);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Image Section */
.card-image-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #1a1a1a;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card-modern:hover .card-img {
    transform: scale(1.1);
}

/* Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-modern:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 68, 0, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.game-card-modern:hover .play-icon {
    transform: scale(1);
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: #ff4400;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 68, 0, 0.3);
}

/* Rating Badge */
.rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 193, 7, 0.95);
    backdrop-filter: blur(10px);
    color: #000;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-badge.featured {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.rating-badge i {
    font-size: 11px;
}

/* Content Section */
.card-content-wrap {
    padding: 16px;
}

.card-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.card-link:hover .card-title {
    color: #ff4400;
}

/* Meta Info */
.card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
}

.meta-item i {
    color: #ff4400;
    font-size: 11px;
}

/* Section Styling */
.games-section {
    padding: 60px 0;
    background: #000;
}

.section-dark {
    background: #0a0a0a;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: #ff4400;
}

/* Responsive */
@media (max-width: 1200px) {
    .games-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .games-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .games-section {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .games-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}