/* Premium Educational Website Header and Hero Styles */

/* Header Redesign */
.header {
    background: linear-gradient(135deg, #00a8cc 0%, #0077be 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Top Navigation */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.brand-name {
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 8px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 20px;
}

.search-btn {
    background: #ff6b6b;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

/* Utility Navigation */
.utility-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.premium-link {
    background: linear-gradient(135deg, #ff6b6b, #ff8a80);
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.premium-link:hover {
    background: linear-gradient(135deg, #ff5252, #ff7043);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 15px;
    padding: 15px 0;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.nav-btn:hover, .nav-btn.active {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section Redesign */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 600px;
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="4" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
    height: 500px;
}

/* Central Game Hub */
.central-hub {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-game-circle {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
    border: 8px solid rgba(255, 255, 255, 0.3);
}

.main-game-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.6);
}

.circle-content {
    text-align: center;
    color: white;
}

.hub-title {
    font-family: 'Fredoka One', cursive;
    font-size: 32px;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hub-subtitle {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

/* Age Group Circles */
.age-circles-grid {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
    pointer-events: none;
}

.age-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.3);
    pointer-events: all;
}

.age-circle.young-kids {
    background: linear-gradient(135deg, #ff6b6b, #ff8a80);
    justify-self: start;
    align-self: start;
}

.age-circle.middle-kids {
    background: linear-gradient(135deg, #4ecdc4, #26a69a);
    justify-self: end;
    align-self: start;
}

.age-circle.teens {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    justify-self: start;
    align-self: end;
}

.age-circle.all-ages {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    justify-self: end;
    align-self: end;
}

.age-circle:hover, .age-circle.active {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.circle-inner {
    text-align: center;
    color: white;
}

.age-label {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.age-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
}

/* Special Features */
.special-features {
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.feature-card {
    width: 225px;
    height: 225px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    color: white;
}

.printables-card {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.new-games-card {
    background: linear-gradient(135deg, #e91e63, #c2185b);
}

.feature-card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.feature-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    margin: 0 0 4px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.feature-card p {
    font-size: 12px;
    margin: 0;
    font-weight: 600;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.main-title {
    font-family: 'Fredoka One', cursive;
    font-size: 48px;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #ffd54f, #ff8f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        min-width: 250px;
    }
    
    .utility-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        height: auto;
    }
    
    .central-hub {
        grid-column: 1;
        grid-row: 1;
    }
    
    .age-circles-grid {
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .special-features {
        grid-column: 1;
        grid-row: 3;
        flex-direction: row;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .main-description {
        font-size: 18px;
    }
}


/* Printables Section Styles */
.printables-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.printables-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

#printables-tab-content {
    min-height: 400px;
}

/* Printable Pages Grid */
.printable-pages h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-family: 'Fredoka One', cursive;
}

.printable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.printable-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #f0f0f0;
}

.printable-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.printable-preview {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.printable-preview i {
    font-size: 35px;
    color: white;
}

.printable-item h4 {
    color: #333;
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: 700;
}

.printable-item p {
    color: #666;
    margin: 5px 0 15px;
    font-size: 14px;
}

.difficulty {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.difficulty.easy {
    background: #d4edda;
    color: #155724;
}

.difficulty.medium {
    background: #fff3cd;
    color: #856404;
}

.difficulty.hard {
    background: #f8d7da;
    color: #721c24;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.download-btn i {
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .printables-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: #667eea;
        border-bottom-color: transparent;
    }
    
    .printable-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* NEW Latest Games Circle Hover Effects */
.new-games-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.new-games-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(220, 38, 127, 0.4);
    background: linear-gradient(135deg, #dc267f 0%, #ff6b9d 100%);
}

.new-games-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.2);
    color: #fff;
}

.new-games-card:hover h3,
.new-games-card:hover p {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.new-games-card:active {
    transform: translateY(-4px) scale(1.02);
    transition: all 0.1s ease;
}

/* Pulse animation for NEW badge */
.new-games-card::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.8);
        opacity: 1;
    }
}

.new-games-card:hover::before {
    animation: none;
    opacity: 0;
}


/* Latest Games Section Styles */
.latest-games-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.latest-games-intro .intro-text {
    font-size: 18px;
    color: #fff;
    margin: 0;
    font-weight: 600;
    line-height: 1.6;
}

.latest-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.game-card.new-game {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    overflow: hidden;
}

.game-card.new-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card.new-game:hover::before {
    opacity: 0.1;
}

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

.game-card.new-game:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.new-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    animation: newBadgePulse 2s infinite;
    z-index: 2;
}

@keyframes newBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
    }
}

.game-card.new-game .game-icon {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.game-card.new-game:hover .game-icon {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.game-card.new-game .game-title {
    color: #333;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Fredoka One', cursive;
}

.game-card.new-game .game-description {
    color: #666;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.game-card.new-game .game-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.game-card.new-game .game-features li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-card.new-game .game-features i {
    color: #ffd700;
    font-size: 12px;
}

.game-card.new-game .play-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.game-card.new-game .play-btn:hover {
    background: linear-gradient(135deg, #feca57 0%, #ff6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.latest-games-footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid rgba(240, 147, 251, 0.2);
}

.latest-games-footer .footer-text {
    font-size: 18px;
    color: #fff;
    margin: 0;
    font-weight: 600;
    font-family: 'Fredoka One', cursive;
}

.submit-btn {
	 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Nunito', sans-serif;
    margin: 8px;
    min-width: 140px;
    position: relative;
    overflow: hidden;

}

/* Responsive Design for Latest Games */
@media (max-width: 768px) {
    .latest-games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card.new-game {
        padding: 20px;
    }
    
    .latest-games-intro .intro-text,
    .latest-games-footer .footer-text {
        font-size: 16px;
    }
}

