/*
Theme Name: TERINEX
Theme URI: https://terinex.ir/
Author: Salar Ghaderi
Author URI: https://terinex.ir/
Description: قالب پایه، سبک و توسعه‌پذیر TERINEX؛ سازگار با Elementor، WooCommerce و Dokan.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: terinex
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: elementor, woocommerce, dokan, rtl-language-support, custom-logo, featured-images
*/

:root {
    --terinex-bg: #090b12;
    --terinex-surface: #111522;
    --terinex-text: #f7f8fb;
    --terinex-muted: #a8adbb;
    --terinex-border: rgba(255,255,255,.09);
    --terinex-blue: #258cff;
    --terinex-purple: #6d3cff;
    --terinex-radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--terinex-bg);
    color: var(--terinex-text);
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--terinex-border); background: rgba(9,11,18,.92); }
.header-inner { min-height: 76px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-brand { font-weight:800; letter-spacing:2px; font-size:24px; }
.site-brand .x { color:var(--terinex-blue); }
.main-navigation ul { list-style:none; margin:0; padding:0; display:flex; gap:22px; flex-wrap:wrap; }
.main-navigation a { color:var(--terinex-muted); transition:.2s; }
.main-navigation a:hover { color:#fff; }
.site-main { min-height: 60vh; padding: 48px 0; }
.site-footer { margin-top:48px; border-top:1px solid var(--terinex-border); padding:28px 0; color:var(--terinex-muted); }
.entry { background:var(--terinex-surface); border:1px solid var(--terinex-border); border-radius:var(--terinex-radius); padding:28px; margin-bottom:24px; }
.entry-title { margin-top:0; line-height:1.3; }
.entry-content a { color:#4ca0ff; text-decoration:underline; }
.wp-post-image { border-radius:12px; display:block; margin-bottom:20px; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Elementor: leave layout ownership to Elementor on builder/front-end templates. */
.elementor-page .site-header, .elementor-page .site-footer { }
.elementor-page .site-main { padding:0; }
.elementor-template-canvas .site-header, .elementor-template-canvas .site-footer { display:none; }

/* WooCommerce / Dokan friendly base. */
.woocommerce .site-main, .dokan-dashboard .site-main, .dokan-store .site-main { padding-top:32px; }
.woocommerce ul.products, .woocommerce-page ul.products { margin-inline:0; }
.woocommerce .button, .dokan-btn, .dokan-dashboard .dokan-btn {
    border-radius:10px !important;
}

@media (max-width: 720px) {
    .header-inner { flex-direction:column; align-items:flex-start; padding:16px 0; }
    .main-navigation ul { gap:12px 16px; }
    .container { width:min(100% - 24px, 1180px); }
}
