/* Home Page Specific Styles */

body.home-page {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    display: block;
    /* Allow scrolling */
    overflow-y: auto;
    padding: 2rem;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    min-height: 80vh;
    animation: fadeIn 0.5s ease-out;
}

.home-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.home-header h1 {
    font-family: 'Bangers', cursive;
    font-size: 5rem;
    color: #fff;
    text-shadow:
        4px 4px 0px #2980b9,
        8px 8px 0px rgba(0, 0, 0, 0.1);
    letter-spacing: 3px;
    transform: rotate(-2deg);
    display: inline-block;
    padding: 0.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 4px dashed rgba(255, 255, 255, 0.5);
}

/* Floating elements decoration */
.home-header::before,
.home-header::after {
    content: '✨';
    position: absolute;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.home-header::before {
    top: -20px;
    left: 20%;
    animation-delay: 0s;
}

.home-header::after {
    top: 20px;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding: 1rem;
}

.game-card {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 6px 6px rgba(0, 0, 0, 0.1),
        0 0 0 0px var(--primary-color);
    overflow: hidden;
}

/* Card Top Decoration */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom right, #f1f2f6, #ffffff);
    border-radius: 25px 25px 50% 50% / 25px 25px 20px 20px;
    z-index: 0;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 10px rgba(0, 0, 0, 0.1),
        0 0 0 6px #ffd700;
}

.game-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    z-index: 1;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s;
}

.game-card:hover .game-icon {
    transform: scale(1.2) rotate(5deg);
}

.game-info {
    z-index: 1;
    text-align: center;
    width: 100%;
}

.game-title {
    font-family: 'Bangers', cursive;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.game-desc {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.3rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.play-badge {
    background: linear-gradient(to right, #ffd700, #f1c40f);
    color: #d35400;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
    transition: all 0.2s;
    border: 2px solid white;
}

.game-card:hover .play-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.6);
}

/* Locked State */
.game-card.locked {
    background: #f8f9fa;
    opacity: 0.8;
}

.game-card.locked .game-icon {
    filter: grayscale(1) opacity(0.5);
}

.game-card.locked .play-badge {
    background: #bdc3c7;
    color: #7f8c8d;
    box-shadow: none;
    font-size: 1.2rem;
}

.lock-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e74c3c;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .home-header h1 {
        font-size: 3.5rem;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }
}