/*
Theme Name: Alostaz
Theme URI: https://creatorsservices.net/
Author: 3laaelshekh
Author URI: https://creatorsservices.net/
Description: قالب عربي سريع ومتجاوب للمقالات والأخبار، مصمم لتقديم المحتوى بصورة واضحة وسريعة على الجوال وسطح المكتب.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alostaz
Domain Path: /languages
Requires at least: 5.8
Requires PHP: 7.4
Tags: blog, news, arabic, rtl, responsive, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   1. Reset
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   2. Variables
========================================================= */

:root {
    /* Brand */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f97316;

    /* Text */
    --dark-color: #0f172a;
    --gray-color: #64748b;

    /* Backgrounds */
    --light-color: #f1f5f9;
    --surface: #ffffff;

    /* Borders */
    --border-color: rgba(15, 23, 42, 0.10);

    /* Shadows */
    --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.06);
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);

    /* Radius */
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 20px;

    /* Typography */
    --font: "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

    /* Layout */
    --container: 1200px;
}


/* =========================================================
   3. Base
========================================================= */

body {
    font-family: var(--font);
    color: var(--dark-color);
    background: var(--surface);
    line-height: 1.7;
}

a {
    color: inherit;
}

a:hover {
    color: var(--primary-color);
}

button,
input,
select,
textarea {
    font-family: var(--font);
}

main {
    display: block;
}


/* =========================================================
   4. Layout
========================================================= */

.container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
}


/* =========================================================
   5. Utilities
========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   6. Writer Alert
========================================================= */

.writer-alert-bar {
    width: 100%;
    overflow: hidden;
    background: #0b1730;
    color: #ffffff;
    border-radius: var(--radius);
    margin: 20px 0;
    padding: 12px 0;

    /*
     * اتجاه الحركة LTR،
     * بينما النص العربي نفسه يعود إلى RTL بالأسفل.
     */
    direction: ltr;
}

.writer-alert-marquee {
    display: flex;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: writerTickerMobile 30s linear infinite;
}

.writer-alert-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.writer-alert-group span {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;

    padding: 0 28px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;

    direction: rtl;
}

.writer-alert-group span::before {
    content: "▪";
    margin-left: 10px;

    color: #facc15;
    font-size: 14px;
}

@keyframes writerTickerMobile {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}


/* =========================================================
   7. Responsive
========================================================= */

@media (max-width: 768px) {

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .writer-alert-bar {
        margin: 15px 0;
        padding: 10px 0;
        border-radius: var(--radius-sm);
    }

    .writer-alert-group span {
        padding: 0 20px;
        font-size: 13px;
    }

    .writer-alert-marquee {
        animation-duration: 14s;
    }
}
