/* 
   DESI PREMIUM DESIGN SYSTEM 2026
   Master Style Sheet for All Categories
   --------------------------------------
   STRUCTURE:
   1. CORE (Variables & Global resets)
   2. SHARED COMPONENTS (Sections, Cards, Glows)
   3. CATEGORY SPECIFICS (Smart Locks, Alarms, Accessories)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Unbounded:wght@400;700;900&display=swap');

:root {
    /* --- BRAND BASE COLORS --- */
    --desi-teal: #169179;
    --desi-teal-rgb: 22, 145, 121;
    
    /* --- CATEGORY COLOR DASHBOARD (Change these to update everything) --- */
    --cat-accessories-gold: #FFB800;   /* Accessories (Vibrant Desi Yellow) */
    --cat-locks-cyan:       #00f0ff;   /* Smart Locks */
    --cat-alarms-red:       #E63946;   /* Alarm Systems */
    
    /* Legacy Aliases (to prevent breaking) */
    --desi-yellow: var(--cat-accessories-gold);
    --desi-red:    var(--cat-alarms-red);
    
    /* Neutral Palette */
    --dark-bg: #000000;
    --dark-surface: #0a0f12;
    --light-bg: #ffffff;
    --muted-bg: #f8f8f8;
    
    /* Text */
    --text-on-dark: #ffffff;
    --text-on-light: #111111;
    --text-dim: rgba(255,255,255,0.6);
}

/* =========================================
   1. CORE STRUCTURE
   ========================================= */
/* =========================================
   1. CORE STRUCTURE
   ========================================= */
.desi-smart-content, .desi-smart-content * {
    box-sizing: border-box !important;
}

.desi-smart-content {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.desi-smart-content h1, 
.desi-smart-content h2, 
.desi-smart-content h3, 
.desi-smart-content .uk-h1, 
.desi-smart-content .uk-h2, 
.desi-smart-content .uk-h3,
.desi-smart-content .uk-heading-small,
.desi-smart-content .uk-heading-medium {
    font-family: 'Unbounded', cursive !important;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* Base Utility Classes */
.desi-smart-content { --cat-color: var(--desi-teal); } /* Default */

.desi-smart-content .uk-text-primary,
.desi-smart-content .text-primary { color: var(--cat-color) !important; }
.desi-smart-content .text-accent { color: var(--cat-color) !important; } /* Use Category Color for accents */
.desi-smart-content .text-shadow { text-shadow: 0 4px 15px rgba(0,0,0,0.5); }

/* Utility Modifiers */
.desi-smart-content .ls-wide { letter-spacing: 3px; }
.desi-smart-content .ls-v-wide { letter-spacing: 5px; }
.desi-smart-content .lh-tight { line-height: 0.9; }
.desi-smart-content .max-w-hero { max-width: 550px; }
.desi-smart-content .max-w-content { max-width: 700px; }

/* =========================================
   2. SHARED COMPONENTS
   ========================================= */

/* Section Themes (Standard UIkit Classes) */
.desi-smart-content .uk-section-default { background: #ffffff !important; color: #111111; }
.desi-smart-content .uk-section-muted { background: var(--muted-bg) !important; color: #333333; }
.desi-smart-content .uk-section-secondary { background: var(--dark-bg) !important; color: #ffffff; }

/* Grid Gaps Removal (Master Class) */
.desi-smart-content .grid-no-gap { padding: 0 !important; }

/* Standardized UIkit Cards */
.desi-smart-content .uk-card-default {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.desi-smart-content .uk-card-default:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.desi-smart-content .uk-card-default .uk-card-body {
    padding: 40px;
}

/* Modifier: Premium Radius */
.desi-smart-content .desi-radius-premium {
    border-radius: 32px !important;
}

/* Icon Standardization */
.desi-smart-content .card-icon-wrap {
    height: 80px; /* Eşit yükseklik */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Sola yaslı kalsın ama merkezlensin */
    margin-bottom: 30px;
}

.desi-smart-content .card-icon-wrap img {
    height: 60px; /* Standart ikon boyutu */
    width: auto;
    object-fit: contain;
    /* Degrade yerine keskin renk filtresi (opsiyonel kullanım için) */
    transition: transform 0.3s ease;
}

/* Clean Monotone Icon System (Inline SVGs) */
.desi-smart-content .card-icon-wrap {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.desi-smart-content .mono-svg {
    height: 50px;
    width: auto;
    color: var(--cat-color); /* Kategori rengi doğrudan uygulanır */
    transition: transform 0.3s ease, color 0.3s ease;
}

.desi-smart-content .uk-card-default:hover .mono-svg {
    transform: scale(1.1) translateY(-5px);
}

/* Hero Section Layouts */
.desi-smart-content .hero-container {
    position: relative;
    min-height: 600px;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    width: 100%;
}
.desi-smart-content .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1;
    opacity: 0.95;
    pointer-events: none;
}
/* Force uk-cover behavior even without UIkit JS */
.desi-smart-content .uk-cover-container {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}
.desi-smart-content [data-uk-cover], 
.desi-smart-content .uk-cover {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
}
.desi-smart-content canvas {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    visibility: hidden; /* Hide the aspect-ratio canvas but keep it for height */
}
.desi-smart-content .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Brightened gradient to show more detail */
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
    pointer-events: none;
}
.desi-smart-content .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Text readability insurance */
}

/* Tech Visuals & Glows */
.desi-smart-content .glow-point {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cat-color);
    box-shadow: 0 0 15px var(--cat-color);
    display: inline-block;
    margin-right: 12px;
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
.desi-smart-content .glow-ring {
    width: 12px; height: 12px; 
    border-radius: 50%;
}
.desi-smart-content .glow-teal { background: var(--desi-teal); box-shadow: 0 0 10px var(--desi-teal); }
.desi-smart-content .glow-yellow { background: var(--cat-accessories-gold); box-shadow: 0 0 10px var(--cat-accessories-gold); }
.desi-smart-content .glow-red { background: var(--cat-alarms-red); box-shadow: 0 0 10px var(--cat-alarms-red); }

/* Icon Color Filters (Solid Colors) */
/* Teal: #169179 */
.desi-smart-content .icon-teal { filter: invert(41%) sepia(90%) saturate(354%) hue-rotate(120deg) brightness(91%) contrast(91%); }
/* Gold/Yellow: #FFB800 */
.desi-smart-content .icon-yellow { filter: invert(72%) sepia(95%) saturate(1500%) hue-rotate(5deg) brightness(105%) contrast(105%); }
/* Cyan: #00f0ff */
.desi-smart-content .icon-cyan { filter: invert(65%) sepia(97%) saturate(1814%) hue-rotate(145deg) brightness(108%) contrast(108%); }
/* Red: #E63946 */
.desi-smart-content .icon-red { filter: brightness(0) saturate(100%) invert(31%) sepia(94%) saturate(2035%) hue-rotate(339deg) brightness(91%) contrast(96%); }

/* Innovation/Macro Section */
.desi-smart-content .innovation-wrap {
    position: relative;
    overflow: hidden;
    background: var(--dark-surface);
    color: #ffffff; /* Fix: Force light text on dark bg */
}
.desi-smart-content .innovation-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}
.desi-smart-content .innovation-content {
    position: relative;
    z-index: 3;
    padding: 100px 0;
}

/* =========================================
   3. CATEGORY SPECIFICS
   ========================================= */

/* --- Category Specifics --- */
.cat-smart-locks { --cat-color: var(--cat-locks-cyan); }
.cat-smart-locks .uk-card-default:hover { border-color: var(--cat-locks-cyan); }

.cat-alarms { --cat-color: var(--cat-alarms-red); }
.cat-alarms .uk-card-default:hover { border-color: var(--cat-alarms-red); }

.cat-accessories { --cat-color: var(--cat-accessories-gold); }
.cat-accessories .uk-card-default:hover { border-color: var(--cat-accessories-gold); }

/* Specific Overrides for Image-Text Sections */
.desi-smart-content .text-column-padding {
    padding: 60px;
}
@media (max-width: 959px) {
    .desi-smart-content .text-column-padding {
        padding: 40px 20px;
    }
}

/* UIkit Leader Premium Styling */
/* Let the parent text color flow into the dots naturally */

/* Force dark labels on light backgrounds */
.desi-smart-content .spec-item [data-uk-leader] {
    color: #000 !important; /* Pitch black for maximum contrast */
    font-weight: 600 !important;
}

/* Force light labels on dark backgrounds (Hey Siri section etc) */
.desi-smart-content [style*="background: #0d1117"] .spec-item [data-uk-leader],
.desi-smart-content .uk-section-secondary .spec-item [data-uk-leader] {
    color: #fff !important;
}

.desi-smart-content .spec-item {
    font-size: 14px;
    letter-spacing: 0.5px;
}
