/* 
* Little ICY Productions - Games Styles
* Fun Games CSS
*/

/* Games Hero Section */
.games-hero {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 280px 0 20px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.games-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.games-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.games-icons i {
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-decoration i {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    animation: float 6s ease-in-out infinite;
}

.star-1 {
    top: 20%;
    left: 10%;
    font-size: 1.5rem;
    animation-delay: 0s !important;
}

.star-2 {
    top: 30%;
    right: 15%;
    font-size: 2rem;
    animation-delay: 1s !important;
}

.star-3 {
    bottom: 30%;
    left: 20%;
    font-size: 1.8rem;
    animation-delay: 2s !important;
}

.star-4 {
    top: 15%;
    right: 30%;
    font-size: 1.2rem;
    animation-delay: 3s !important;
}

.star-5 {
    bottom: 20%;
    right: 10%;
    font-size: 1.7rem;
    animation-delay: 4s !important;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Games Selection Section */
.games-selection {
    padding: 50px 0;
    background-color: var(--light-bg);
}

.games-selection h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-gray);
    font-size: 2.5rem;
}

.game-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.game-card {
    width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 30px 20px;
    text-align: center;
}

.game-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.button-container {
    margin: 20px 0;
}

.play-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.play-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.game-card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.coming-soon .card-content {
    position: relative;
    opacity: 0.7;
}

.coming-soon-label {
    display: inline-block;
    background-color: var(--tertiary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Game Section */
.game-section {
    padding: 50px 0;
    background-color: var(--light-bg);
}

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

.game-header h2 {
    color: var(--dark-gray);
    font-size: 2rem;
    margin: 0;
}

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

.back-btn {
    display: flex;
    align-items: center;
}

.back-btn:before {
    content: '\f060';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-gray);
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
}

.dropdown-menu a.active {
    background-color: var(--light-primary);
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .game-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .game-card {
        width: 100%;
        max-width: 350px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-left: 20px;
    }
    
    .dropdown-toggle .fa-caret-down {
        display: none;
    }
}

@media (max-width: 768px) {
    .games-hero {
        padding: 220px 0 20px;
    }
}

@media (max-width: 480px) {
    .games-hero {
        padding: 180px 0 20px;
    }
} 