/* Activities Page Enhanced Styles */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Comic+Neue:wght@400;700&display=swap');

:root {
    --primary: #4361ee;
    --secondary: #f72585;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #38b000;
    --warning: #ff9e00;
    --purple: #7209b7;
    --orange: #ff9e00;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f8 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar spacing */
.navbar {
    margin-bottom: 0;
}

/* Tabs Container */
.tabs-container {
    background: linear-gradient(90deg, var(--primary), var(--purple));
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Activity Tabs - Improved */
.activity-tabs {
    margin: 0 auto;
    max-width: 1200px;
}

.activity-tabs ul {
    border: none;
    justify-content: center;
    flex-wrap: wrap;
}

.activity-tabs li {
    margin: 0 0.5rem;
}

.activity-tabs li a {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: white !important;
    border-radius: 30px;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.activity-tabs li.is-active a {
    background-color: white;
    color: var(--primary) !important;
    border-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.activity-tabs li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Score Display */
.score-display {
    margin: 1.5rem 0;
}

.animated-score {
    animation: pulse 2s infinite;
    border-radius: 15px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    box-shadow: 0 6px 20px rgba(16, 44, 168, 0.312);
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.animated-score::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgb(240, 236, 236),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(30deg);
    animation: shine 4s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* Main Title */
.main-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--purple), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    border-radius: 10px;
}

/* Subtitle */
.subtitle-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.game-description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: center;
    font-weight: 500;
}

.game-description::before, .game-description::after {
    content: "";
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    color: var(--accent);
    position: absolute;
    opacity: 0.3;
}

.game-description::before {
    top: -20px;
    left: 20px;
}

.game-description::after {
    content: "";
    bottom: -40px;
    right: 20px;
    transform: rotate(180deg);
}

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

/* Game Cards - Enhanced */
.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    top: 0;
}

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

.game-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.card-image {
    overflow: hidden;
    position: relative;
}

.card-image img {
    transition: transform 0.7s ease;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 0.9;
}

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

.game-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.card-content {
    padding: 1.8rem;
}

.card-content h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
}

.card-content p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 1.05rem;
}

/* Game Features */
.game-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Play Button */
.play-button-container {
    text-align: center;
    margin-top: 1rem;
}

.play-button {
    font-family: 'Fredoka One', cursive;
    background: linear-gradient(45deg, var(--primary), var(--purple));
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2rem;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.play-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.play-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.5);
}

.play-button:hover::before {
    left: 100%;
}

/* Category Section */
.category-section {
    margin: 5rem 0;
    padding: 3rem 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(240, 244, 255, 0.8));
    border-radius: 25px;
}

.category-title {
    font-family: 'Fredoka One', cursive;
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.category-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.category-card p {
    color: #666;
    line-height: 1.5;
}

/* Floating elements for playful effect */
.floating-shape {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    background: rgba(76, 201, 240, 0.15);
    animation: float 20s infinite ease-in-out;
}

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

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .activity-tabs li a {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .activity-tabs ul {
        flex-wrap: wrap;
    }
    
    .activity-tabs li {
        margin-bottom: 0.8rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .game-description {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
    
    .activity-tabs li a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 1.5rem;
    }
}

body {
    padding-top: 75px; /* Adjust this value based on your navbar height */
}

/* Alternatively, you can add it to the container */
.section-container {
    padding-top: 75px;
}

.hero.is-fullheight {
    padding-top: 75px;
}