/*
Theme Name: Leklook
Theme URI: https://leklook.com
Author: Leklook Team
Author URI: https://leklook.com
Description: ثيم ووردبريس عصري لمتاجر الدروب شوبينج - يستهدف السوق الخليجي مع دعم كامل للعربية و RTL و WooCommerce
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leklook
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, e-commerce
*/

/* === Base === */
html { direction: rtl; }
* { box-sizing: border-box; }

a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: .15em;
}

:where(.wp-site-blocks *:focus) {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6, p { text-wrap: pretty; }

/* === Logo === */
.leklook-logo,
.leklook-logo a {
    font-family: var(--wp--preset--font-family--cairo) !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-decoration: none !important;
}

/* === Slider === */
.leklook-slider {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #0F0F1A;
}

.leklook-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: #1a1033;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.leklook-slide.active { opacity: 1; z-index: 1; }

.leklook-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.7), rgba(236,73,153,0.4));
}

.leklook-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 640px;
    padding: 2rem;
}

.leklook-slide-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.leklook-slide-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.leklook-slide-btn {
    display: inline-block;
    background: #fff;
    color: #7C3AED;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.leklook-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Slider arrows */
.leklook-slider-prev,
.leklook-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s;
}

.leklook-slider-prev:hover,
.leklook-slider-next:hover { background: rgba(255,255,255,0.3); }
.leklook-slider-prev { right: 1rem; }
.leklook-slider-next { left: 1rem; }

/* Slider dots */
.leklook-slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.leklook-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.leklook-slider-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* === Buttons === */
.wp-block-button__link,
.wp-element-button {
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* === Cards === */
.is-style-card {
    background: var(--wp--preset--color--base);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.15s;
}

.is-style-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* === Badges === */
.is-style-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
}

/* === Gradient text === */
.is-style-gradient-text {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === RTL Price fix === */
.wc-block-components-product-price,
.wc-block-grid__product-price,
.price,
.woocommerce-Price-amount {
    direction: ltr;
    unicode-bidi: embed;
}

/* === WhatsApp === */
.leklook-whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    text-decoration: none;
}

.leklook-whatsapp-float:hover { transform: scale(1.1); }
.leklook-whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* === Announcement bar === */
.leklook-announcement-bar {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
}
