/**
 * Game Grid Styles
 * Modern responsive grid layout for games
 */

/* Game Grid Container */
.game-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.popular-games-container,
.you-may-like-container,
.new-games-container {
    margin-bottom: 2.5rem;
}

/* Game Card Wrapper */
.game-card-wrapper {
    padding: 10px;
    margin-bottom: 10px;
}

/* Game Card */
.game-card {
    position: relative;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.game-card-link {
    display: block;
    color: #2c3e50;
    text-decoration: none;
}

.game-card-link:hover {
    text-decoration: none;
    color: #1abc9c;
}

/* Game Thumbnail */
.game-card-thumb {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.game-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-img {
    transform: scale(1.05);
}

/* Play Now Overlay */
.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 188, 156, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.play-now-btn {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px 15px;
    border: 2px solid #fff;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.play-now-btn i {
    margin-right: 5px;
    font-size: 18px;
}

.game-card:hover .play-now-btn {
    transform: scale(1.1);
}

/* Game Info */
.game-card-info {
    padding: 12px;
    text-align: center;
}

.game-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.game-card-rating {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.rating-stars {
    max-width: 80px;
    height: auto;
}

/* Lazy Loading Animation */
.game-card-img.lazyload {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-card-img.loaded {
    opacity: 1;
}

/* Loading Placeholder */
.game-card-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
}

.game-card-img.loaded + .game-card-thumb::before {
    display: none;
}

@keyframes loading-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .game-card-title {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .play-now-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 767px) {
    .game-card-wrapper {
        padding: 8px;
    }
    
    .game-card-info {
        padding: 10px 8px;
    }
    
    .game-card-title {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .game-card-wrapper {
        padding: 5px;
    }
    
    .game-card-overlay {
        display: none; /* Hide overlay on mobile for better UX */
    }
    
    .play-now-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .game-card-info {
        padding: 8px 5px;
    }
    
    .game-card-title {
        font-size: 11px;
        margin-bottom: 2px;
    }
    
    .rating-stars {
        max-width: 70px;
    }
}

/* Load More Button */
.load-more-games-wrapper {
    text-align: center;
    margin: 20px 0 40px;
}

.btn-load-more-games {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.3);
    cursor: pointer;
}

.btn-load-more-games:hover {
    background-color: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.4);
}

.btn-load-more-games i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-load-more-games:hover i {
    transform: translateY(2px);
}

.btn-load-more-games .fa-spinner {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Newsletter Subscription Section */
.newsletter-subscription-section {
    background: linear-gradient(135deg, #1e2a48 0%, #111827 100%);
    color: #fff;
    padding: 60px 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-subscription-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232d3a57' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.newsletter-container {
    background-color: rgba(14, 20, 33, 0.5);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.newsletter-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #1abc9c, #16a085);
    border-radius: 2px;
}

.newsletter-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.newsletter-benefits {
    padding-left: 0;
    list-style: none;
    margin-top: 20px;
}

.newsletter-benefits li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #cbd5e1;
}

.newsletter-benefits li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #1abc9c;
}

.newsletter-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form-container {
    width: 100%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 0;
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    flex-grow: 1;
    font-size: 16px;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.3);
    border-color: rgba(26, 188, 156, 0.5);
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-submit-btn {
    height: 50px;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(to right, #1abc9c, #16a085);
    color: #fff;
    border: none;
    padding: 0 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-submit-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.newsletter-submit-btn:hover {
    background: linear-gradient(to right, #16a085, #1abc9c);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.3);
}

.newsletter-submit-btn:hover i {
    transform: translateX(3px);
}

.newsletter-privacy {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.newsletter-privacy i {
    margin-right: 5px;
    color: #1abc9c;
}

.newsletter-success {
    background-color: rgba(26, 188, 156, 0.2);
    color: #1abc9c;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    border: 1px solid rgba(26, 188, 156, 0.4);
}

.newsletter-error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

@media (max-width: 991px) {
    .newsletter-container {
        padding: 30px;
    }
    
    .newsletter-content {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .newsletter-subscription-section {
        padding: 40px 0;
    }
    
    .newsletter-title {
        font-size: 24px;
    }
    
    .newsletter-description {
        font-size: 15px;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .newsletter-submit-btn {
        border-radius: 8px;
        width: 100%;
    }
} 