/*
Theme Name: كنديشن - Bricks Child
Theme URI: https://kndsh.com
Description: قالب كنديشن المخصص - محسّن للسرعة والأداء
Author: كنديشن
Author URI: https://kndsh.com
Template: bricks
Version: 1.0.0
Text Domain: kndsh
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================
   GLOBAL STYLES
   ============================================ */

:root {
    --kndsh-primary: #000000;
    --kndsh-secondary: #ffffff;
    --kndsh-accent: #4CAF50;
    --kndsh-text: #333333;
    --kndsh-border: #e0e0e0;
    --kndsh-radius: 8px;
    --kndsh-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    direction: rtl;
    text-align: right;
}

/* ============================================
   RTL OPTIMIZATION
   ============================================ */

.rtl {
    direction: rtl;
    text-align: right;
}

/* ============================================
   PERFORMANCE - REDUCE REPAINTS
   ============================================ */

img {
    will-change: auto;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ============================================
   MOBILE OPTIMIZATION
   ============================================ */

@media (max-width: 768px) {
    body {
        font-size: 16px; /* منع zoom في Safari على iOS */
    }
    
    input, select, textarea {
        font-size: 16px; /* منع zoom عند التركيز */
    }
}

/* ============================================
   CUSTOM HELPERS
   ============================================ */

.kndsh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.kndsh-hide-mobile {
    display: block;
}

.kndsh-hide-desktop {
    display: none;
}

@media (max-width: 768px) {
    .kndsh-hide-mobile {
        display: none;
    }
    
    .kndsh-hide-desktop {
        display: block;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* يمكن إضافة المزيد من الأنماط المخصصة هنا *//*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/