/*
Theme Name: Tahfez Quran
Theme URI: https://tahfezquran.com
Author: Tahfez Quran Development Team
Author URI: https://tahfezquran.com
Description: A premium WordPress theme for online Quran education platforms. Features Modern Islamic Minimalism design, full RTL support, bilingual (AR/EN), Elementor compatible, WooCommerce ready, WPML compatible. Built with WordPress Coding Standards, optimized for performance and SEO with Schema.org markup.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tahfez-quran
Domain Path: /languages
Tags: education, religion, multilingual, rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready, e-commerce, blog
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# CSS Reset & Base
# CSS Variables (Design Tokens)
# Typography
# Layout & Containers
# WordPress Core Classes
# Accessibility
----------------------------------------------------------------*/

/* The main styles are in assets/css/main.css */
/* This file contains the WordPress required header and base WP classes */

/*--------------------------------------------------------------
# CSS Variables (Brand Identity)
--------------------------------------------------------------*/
:root {
    --tahfez-primary: #046A38;
    --tahfez-secondary: #0B1A30;
    --tahfez-cta: #D4AF37;
    --tahfez-bg: #FAFAFA;
    --tahfez-white: #FFFFFF;
    --tahfez-text: #1A1A1A;
    --tahfez-text-muted: #6B7280;
    --tahfez-border: #E5E7EB;
    --tahfez-success: #10B981;
    --tahfez-danger: #EF4444;

    --tahfez-font-ar-heading: 'Tajawal', 'Cairo', system-ui, sans-serif;
    --tahfez-font-ar-body: 'Tajawal', system-ui, sans-serif;
    --tahfez-font-en-heading: 'Playfair Display', Georgia, serif;
    --tahfez-font-en-body: 'Inter', system-ui, sans-serif;

    --tahfez-radius-sm: 0.375rem;
    --tahfez-radius-md: 0.75rem;
    --tahfez-radius-lg: 1.25rem;
    --tahfez-radius-xl: 2rem;

    --tahfez-shadow-sm: 0 1px 2px rgba(11, 26, 48, 0.05);
    --tahfez-shadow-md: 0 4px 12px rgba(11, 26, 48, 0.08);
    --tahfez-shadow-lg: 0 12px 32px rgba(11, 26, 48, 0.12);
    --tahfez-shadow-xl: 0 24px 60px rgba(11, 26, 48, 0.18);

    --tahfez-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tahfez-container-max: 1280px;
}

/*--------------------------------------------------------------
# WordPress Core Classes (Required)
--------------------------------------------------------------*/
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: 1100px;
}

.alignfull {
    max-width: 100%;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* RTL Adjustments */
.rtl .alignleft {
    float: right;
    margin-right: 0;
    margin-left: 1.5rem;
}

.rtl .alignright {
    float: left;
    margin-left: 0;
    margin-right: 1.5rem;
}

/* WordPress Block Editor Defaults */
.wp-caption {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8em 0;
    font-size: 0.875rem;
    color: var(--tahfez-text-muted);
    text-align: center;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip to content */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--tahfez-primary);
    color: #fff;
    padding: 1rem 1.5rem;
    z-index: 999999;
    text-decoration: none;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Sticky Posts */
.sticky {
    display: block;
}

/* Comments */
.bypostauthor {
    display: block;
}

/* Gallery */
.gallery {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border: 1px solid #cfcfcf;
    max-width: 100%;
    height: auto;
}

.gallery-caption {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* The actual styles are loaded from assets/css/main.css via wp_enqueue_style */
