/* PlanBee Games - Modern, Fun CSS Styling */
/* Inspired by Poki's design but with a unique bee theme */

:root {
    --primary-color: #FFD700;
    --secondary-color: #FF8C00;
    --accent-color: #32CD32;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --border-radius-small: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, #FFF8DC 0%, #F0F8FF 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--bg-white);
    box-shadow: 0 4px 20px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary-color);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: inset 0 2px 4px var(--shadow-light);
}

.search-input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    width: 250px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(50, 205, 50, 0.1));
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-info {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    font-weight: 500;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    margin-bottom: 4rem;
}

/* Game Cards */
.game-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

/* Under Construction Styling */
.game-card.under-construction {
    opacity: 0.8;
    border: 2px dashed #FFA500;
    background: linear-gradient(135deg, var(--bg-white) 0%, #FFF8E1 100%);
}

.game-card.under-construction::before {
    content: "🚧";
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF6B35;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    animation: construction-pulse 2s infinite;
}

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

.construction-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    animation: construction-glow 3s infinite;
}

@keyframes construction-glow {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 2px 15px rgba(255, 107, 53, 0.6), 0 0 20px rgba(255, 107, 53, 0.2); }
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.game-card.featured {
    border: 3px solid var(--primary-color);
}

.game-card.featured::before {
    content: "⭐";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.game-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-light), #E6F3FF);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.featured .game-image {
    height: 250px;
}

.placeholder-image {
    font-size: 4rem;
    opacity: 0.8;
    transition: var(--transition);
}

.game-card:hover .placeholder-image {
    transform: scale(1.2) rotate(10deg);
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.featured .game-title {
    font-size: 1.5rem;
}

.game-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.game-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #228B22);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Games Section */
.featured-games {
    margin-bottom: 4rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.footer-section h4,
.footer-section h5 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #CCCCCC;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 1.5rem 0;
    text-align: center;
    color: #CCCCCC;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        justify-content: center;
        width: 100%;
    }
    
    .search-container {
        width: 100%;
        max-width: 400px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .main {
        padding: 1rem 0;
    }
}

/* Animation for game cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state for filtered games */
.games-grid.loading .game-card {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Hide games that don't match filter */
.game-card.hidden {
    display: none;
}
