/* ==================== MATH PAGE SPECIFIC STYLES ==================== */

.math-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #d1fae5 0%, #dbeafe 50%, #e9d5ff 100%);
}

.header-icon-math {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
    animation: rotate 4s linear infinite;
}

/* ==================== TAB BUTTONS ==================== */
.tab-btn-green.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tab-btn-blue.active {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

.tab-btn-purple.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

/* ==================== NUMBERS GRID ==================== */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.number-card {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 4px solid white;
    border-radius: 2rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.number-card:hover {
    transform: translateY(-8px) scale(1.05) rotate(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.number-gujarati {
    font-size: 5rem;
    font-weight: 900;
    color: #059669;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.number-card:hover .number-gujarati {
    transform: scale(1.2) rotate(360deg);
}

.number-english {
    font-size: 3rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.number-word {
    font-size: 1.5rem;
    font-weight: 900;
    color: #7c3aed;
    margin-bottom: 0.25rem;
}

.number-pronunciation {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
}

/* ==================== GAMES SECTION ==================== */
.games-section {
    background: white;
    border: 4px solid #d1fae5;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.games-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-card {
    border: 3px solid;
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.game-card-yellow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.game-card-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.game-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-card h4 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.game-card p {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 1rem;
}

.btn-game {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-game:hover {
    transform: scale(1.05);
}

/* ==================== SHAPES GRID ==================== */
.section-subtitle {
    font-size: 2rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shapes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.shape-card {
    border: 4px solid white;
    border-radius: 2rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.shape-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.shape-card-red {
    background: linear-gradient(135deg, #fecaca 0%, #f87171 100%);
}

.shape-card-blue {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
}

.shape-card-green {
    background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
}

.shape-card-yellow {
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
}

.shape-emoji {
    font-size: 6rem;
    margin-bottom: 1.5rem;
}

.shape-name {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
}

.shape-gujarati {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== SPATIAL WORDS ==================== */
.spatial-section {
    background: white;
    border: 4px solid #dbeafe;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.spatial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.spatial-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 3px solid #3b82f6;
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.spatial-card:hover {
    transform: scale(1.1) rotate(5deg);
}

.spatial-emoji {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
}

.spatial-english {
    font-size: 1.125rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.spatial-gujarati {
    font-size: 1.5rem;
    font-weight: 900;
    color: #7c3aed;
}

/* ==================== OPERATIONS ==================== */
.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.operation-card {
    border: 4px solid;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.operation-card-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.operation-card-orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-color: #f97316;
}

.operation-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.operation-example {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(0, 0, 0, 0.1);
}

.example-equation {
    font-size: 4rem;
    font-weight: 900;
    color: #059669;
    text-align: center;
    margin-bottom: 1rem;
}

.example-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4b5563;
    text-align: center;
    margin-bottom: 1.5rem;
}

.example-visual {
    font-size: 3rem;
    text-align: center;
}

.btn-operation {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 9999px;
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-operation:hover {
    transform: scale(1.05);
}

/* ==================== CHALLENGE SECTION ==================== */
.challenge-section {
    background: white;
    border: 4px solid #e9d5ff;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.challenge-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.challenge-card {
    border: 3px solid;
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
}

.challenge-card-purple {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
    border-color: #8b5cf6;
}

.challenge-card-indigo {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #6366f1;
}

.challenge-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.challenge-card h4 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.challenge-card p {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 1rem;
}

.btn-challenge {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-challenge:hover {
    transform: scale(1.05);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .operations-grid {
        grid-template-columns: 1fr;
    }
    
    .example-equation {
        font-size: 3rem;
    }
}
