/*
Theme Name: Sakina - الملاذ الرقمي
Theme URI: https://sakina.digital
Author: Sakina Digital Sanctuary
Author URI: https://sakina.digital
Description: ثيم ووردبريس مخصص لموقع سكينة - الملاذ الرقمي. تصميم عربي RTL يجمع بين الحكمة القديمة وعلوم الأعصاب الحديثة.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sakina
Tags: rtl-language-support, custom-menu, translation-ready, blog, education

سكينة - ملاذ رقمي للتحول الداخلي
*/

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Editorial Shadow */
.editorial-shadow {
    box-shadow: 0px 20px 40px rgba(17, 24, 39, 0.06);
}

/* Glass Nav */
.glass-nav {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Glass Panel */
.glass-panel {
    backdrop-filter: blur(24px);
    background-color: rgba(248, 249, 250, 0.7);
}

/* Tonal Shift */
.tonal-shift {
    background: linear-gradient(to bottom, transparent, rgba(237, 238, 239, 0.5));
}

/* Base Body */
body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
}

/* Headline fonts */
h1, h2, h3 {
    font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}

/* Selection */
::selection {
    background-color: #ffe08d;
    color: #241a00;
}

/* Scrollbar hide utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================
   WORDPRESS SPECIFIC OVERRIDES
   ======================================== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* Align WordPress admin bar with fixed nav */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Screen Reader Text (WordPress accessibility) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    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;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-overlay a {
    color: #e2e8f0;
    font-size: 1.5rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: color 0.2s;
}

.mobile-menu-overlay a:hover {
    color: #f59e0b;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Admin bar nav offset */
.admin-bar nav.fixed { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar nav.fixed { top: 46px; }
}

/* Dropdown hover fix */
.group:hover .group-hover\:opacity-100 { opacity: 1; visibility: visible; }
.group:hover .group-hover\:visible { visibility: visible; }
.group:hover .group-hover\:rotate-180 { transform: rotate(180deg); }

/* ===== Hero WPForms Subscription Bar ===== */
/* Wrapper class added in front-page.php around the shortcode */
.sakina-hero-form .wpforms-form {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0;
    max-width: 560px;
    margin: 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 9999px;
    padding: 4px 4px 4px 8px;
    backdrop-filter: blur(8px);
}
.sakina-hero-form .wpforms-field-container {
    flex: 1;
    margin: 0 !important;
}
.sakina-hero-form .wpforms-field {
    margin: 0 !important;
    padding: 0 !important;
}
.sakina-hero-form .wpforms-field-label {
    display: none !important;
}
.sakina-hero-form .wpforms-field-medium input[type="email"],
.sakina-hero-form input[type="email"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #f1f5f9 !important;
    font-family: Cairo, sans-serif !important;
    font-size: 0.95rem !important;
    padding: 10px 16px !important;
    width: 100% !important;
    outline: none !important;
    direction: rtl;
    text-align: right;
}
.sakina-hero-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.45) !important;
}
.sakina-hero-form .wpforms-submit-container {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
}
.sakina-hero-form button[type="submit"],
.sakina-hero-form input[type="submit"] {
    background: #d97706 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 10px 24px !important;
    font-family: Cairo, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    white-space: nowrap !important;
}
.sakina-hero-form button[type="submit"]:hover {
    background: #b45309 !important;
}
.sakina-hero-form .wpforms-confirmation-container-full {
    color: #fcd34d;
    font-family: Cairo, sans-serif;
    font-size: 0.95rem;
    text-align: center;
    padding: 12px 0;
}
/* ===== End Hero WPForms ===== */
