/*
Theme Name: Aal-e-Imran Welfare Block Theme
Description: A modern WordPress block theme for the Aal-e-Imran Welfare Organization, featuring full site editing capabilities, block editor compatibility, and responsive design. Perfect for charity and nonprofit organizations.
Version: 3.0.0
Author: Aal-e-Imran Welfare Team
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aal-e-imran-welfare-block
Tags: block-theme, full-site-editing, charity, welfare, nonprofit, responsive, accessibility-ready, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, seo-optimized, performance-optimized
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --wp--preset--color--primary: #2c5530;
    --wp--preset--color--secondary: #4a7c59;
    --wp--preset--color--accent: #7fb069;
    --wp--preset--color--light-green: #e8f5e8;
    --wp--preset--color--dark-text: #333333;
    --wp--preset--color--light-text: #666666;
    --wp--preset--color--white: #ffffff;
    --wp--preset--color--light-gray: #f8f9fa;
    --wp--preset--color--border: #e0e0e0;
    
    --wp--preset--font-family--inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wp--preset--font-family--heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --wp--preset--font-size--small: 0.875rem;
    --wp--preset--font-size--medium: 1rem;
    --wp--preset--font-size--large: 1.125rem;
    --wp--preset--font-size--x-large: 1.25rem;
    --wp--preset--font-size--xx-large: 1.5rem;
    --wp--preset--font-size--xxx-large: 2rem;
    --wp--preset--font-size--huge: 2.5rem;
    --wp--preset--font-size--gigantic: 3.5rem;
    
    --wp--preset--spacing--10: 0.5rem;
    --wp--preset--spacing--20: 1rem;
    --wp--preset--spacing--30: 1.5rem;
    --wp--preset--spacing--40: 2rem;
    --wp--preset--spacing--50: 2.5rem;
    --wp--preset--spacing--60: 3rem;
    --wp--preset--spacing--70: 4rem;
    --wp--preset--spacing--80: 5rem;
}

body {
    font-family: var(--wp--preset--font-family--inter);
    line-height: 1.6;
    color: var(--wp--preset--color--dark-text);
    background-color: var(--wp--preset--color--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--wp--preset--color--primary);
}

h1 { font-size: var(--wp--preset--font-size--gigantic); }
h2 { font-size: var(--wp--preset--font-size--huge); }
h3 { font-size: var(--wp--preset--font-size--xxx-large); }
h4 { font-size: var(--wp--preset--font-size--xx-large); }
h5 { font-size: var(--wp--preset--font-size--x-large); }
h6 { font-size: var(--wp--preset--font-size--large); }

p {
    margin-bottom: var(--wp--preset--spacing--20);
    color: var(--wp--preset--color--light-text);
}

/* Links */
a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--wp--preset--color--secondary);
}

/* Buttons */
.wp-block-button__link {
    background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--secondary));
    color: var(--wp--preset--color--white);
    padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
    color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--wp--preset--color--primary);
    border: 2px solid var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

/* Container and Layout */
.wp-site-blocks {
    padding: 0;
}

.wp-block-group {
    margin: 0;
}

/* Header Styles */
.wp-block-site-title a {
    font-size: var(--wp--preset--font-size--xxx-large);
    font-weight: 700;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

.wp-block-navigation {
    font-weight: 500;
}

.wp-block-navigation .wp-block-navigation-item a {
    color: var(--wp--preset--color--dark-text);
    transition: color 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.9), rgba(74, 124, 89, 0.9));
    color: var(--wp--preset--color--white);
    padding: var(--wp--preset--spacing--80) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-section h1 {
    color: var(--wp--preset--color--white);
    margin-bottom: var(--wp--preset--spacing--20);
    animation: fadeInUp 1s ease-out;
}

.hero-section p {
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--large);
    margin-bottom: var(--wp--preset--spacing--40);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Stats Section */
.stats-section {
    background: var(--wp--preset--color--light-gray);
    padding: var(--wp--preset--spacing--70) 0;
}

.stat-item {
    background: var(--wp--preset--color--white);
    padding: var(--wp--preset--spacing--40);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: var(--wp--preset--font-size--gigantic);
    font-weight: 700;
    color: var(--wp--preset--color--primary);
    display: block;
    margin-bottom: var(--wp--preset--spacing--10);
}

.stat-label {
    font-size: var(--wp--preset--font-size--large);
    color: var(--wp--preset--color--light-text);
}

/* Cards */
.wp-block-media-text {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: var(--wp--preset--spacing--40);
}

.wp-block-media-text:hover {
    transform: translateY(-5px);
}

/* Image Blocks */
.wp-block-image {
    margin-bottom: var(--wp--preset--spacing--30);
}

.wp-block-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Gallery */
.wp-block-gallery {
    gap: var(--wp--preset--spacing--20);
}

.wp-block-gallery .wp-block-image {
    margin: 0;
}

.wp-block-gallery .wp-block-image img {
    transition: transform 0.3s ease;
}

.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.05);
}

/* Columns */
.wp-block-columns {
    gap: var(--wp--preset--spacing--40);
}

.wp-block-column {
    padding: var(--wp--preset--spacing--30);
}

/* Cover Block */
.wp-block-cover {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: var(--wp--preset--spacing--40);
}

.wp-block-cover .wp-block-cover__inner-container {
    padding: var(--wp--preset--spacing--60);
}

/* Footer */
.site-footer {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    padding: var(--wp--preset--spacing--60) 0 var(--wp--preset--spacing--20);
}

.site-footer h1, .site-footer h2, .site-footer h3, 
.site-footer h4, .site-footer h5, .site-footer h6 {
    color: var(--wp--preset--color--white);
}

.site-footer p {
    color: #ccc;
}

.site-footer a {
    color: #ccc;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--wp--preset--color--white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --wp--preset--font-size--gigantic: 2.5rem;
        --wp--preset--font-size--huge: 2rem;
        --wp--preset--font-size--xxx-large: 1.5rem;
    }
    
    .hero-section {
        padding: var(--wp--preset--spacing--60) 0;
    }
    
    .wp-block-columns {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: var(--wp--preset--spacing--30);
    }
}

/* Block Editor Specific Styles */
.editor-styles-wrapper {
    font-family: var(--wp--preset--font-family--inter);
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
    font-family: var(--wp--preset--font-family--heading);
    color: var(--wp--preset--color--primary);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.has-primary-color { color: var(--wp--preset--color--primary) !important; }
.has-secondary-color { color: var(--wp--preset--color--secondary) !important; }
.has-white-color { color: var(--wp--preset--color--white) !important; }
.has-light-text-color { color: var(--wp--preset--color--light-text) !important; }

.has-primary-background-color { background-color: var(--wp--preset--color--primary) !important; }
.has-secondary-background-color { background-color: var(--wp--preset--color--secondary) !important; }
.has-light-gray-background-color { background-color: var(--wp--preset--color--light-gray) !important; }
.has-white-background-color { background-color: var(--wp--preset--color--white) !important; }

