/* ==============================
   Home Page Specific Styles
   ============================== */

/* Hero Banner Section */
.hero-banner {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #6a5acd 0%, #ff6b6b 100%);
    margin-bottom: 60px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 20px 40px rgba(106, 92, 205, 0.3);
}

.hero-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://picsum.photos/1920/1080?random=20') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-text {
    flex: 1;
    max-width: 600px;
}

.banner-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #ffd3d6, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.banner-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
}

.banner-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 300px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6a5acd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-content h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}


/* Animations */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Featured Games Section */
.featured-section {
    padding: 60px 0;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 30px;
    margin-bottom: 60px;
}

.featured-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.featured-slide {
    perspective: 1000px;
}

.featured-game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 208, 196, 0.95));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(106, 92, 205, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 211, 214, 0.5);
    position: relative;
}

.featured-game-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1), rgba(106, 92, 205, 0.1));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-game-card:hover:before {
    opacity: 1;
}

.featured-game-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(106, 92, 205, 0.3);
}

.game-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

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

.game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff9a9e, #ff6b6b);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
    z-index: 2;
}

.game-content {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.game-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #333333;
    font-weight: 600;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.game-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(106, 92, 205, 0.1);
    color: #6a5acd;
    border-radius: 15px;
    font-size: 0.75rem;
}

.game-rating {
    color: #f8b400;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.9rem;
}

.game-actions {
    display: flex;
    gap: 10px;
}

.game-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 12px;
}

/* Popular Games Section */
.popular-section {
    padding: 60px 0;
    margin-bottom: 60px;
}

.section-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.section-link:hover {
    transform: translateX(5px);
}

.games-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.game-masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.game-masonry-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 208, 196, 0.95));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(106, 92, 205, 0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 211, 214, 0.5);
    position: relative;
}

.game-masonry-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1), rgba(106, 92, 205, 0.1));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-masonry-card:hover:before {
    opacity: 1;
}

.game-masonry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(106, 92, 205, 0.25);
}

.game-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

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

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(106, 92, 205, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a5acd;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.btn-icon:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-3px);
}

.game-info {
    padding: 15px;
    position: relative;
    z-index: 1;
}

.game-name {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 600;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-meta .game-category {
    padding: 3px 10px;
    font-size: 0.7rem;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f8b400;
    font-size: 0.8rem;
}

.game-rating span {
    color: #666666;
    margin-left: 3px;
    font-size: 0.75rem;
}


/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #6a5acd, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #ff9a9e, #ff6b6b);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666666;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* Animations */
@keyframes glow-pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes icon-pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.7);
    }
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .featured-slider {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 15px;
    }
    
    .banner-text {
        max-width: 100%;
    }
    
    .banner-features {
        max-width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .featured-slider {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .hero-banner {
        height: auto;
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    
    .games-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .banner-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
    
    .banner-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .feature-card {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .games-masonry {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .hero-banner {
        border-radius: 0 0 20px 20px;
    }
    
    .banner-content {
        padding: 0 10px;
        gap: 20px;
    }
    
    .banner-actions {
        gap: 10px;
    }
    
    .btn-lg {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .banner-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-content h3 {
        font-size: 1rem;
    }
    
    .feature-content p {
        font-size: 0.8rem;
    }
}
