/**
 * POWERLINK ELEKTRİK — UNIFIED DESIGN SYSTEM CSS
 * Industrial Heavy Steel & Red Power Aesthetics
 * Standard: design.md
 */

:root {
    /* Metallic Grey Base Surfaces */
    --bg-metallic-base: #C5C9CE;
    --bg-metallic-plate: #D8DCE0;
    --bg-metallic-plate-light: #E2E6EA;
    --border-steel-edge: #8E959E;
    --border-dark-groove: #636972;

    /* Power Accents & Electric Blue (#296dff) */
    --primary: #296dff;
    --primary-container: #1b52cc;
    --red-laser-hover: #4d86ff;
    --red-deep-accent: #1748b5;
    --red-glow-effect: 0 0 16px rgba(41, 109, 255, 0.55);

    /* Text Hierarchy */
    --text-body-charcoal: #121417;
    --text-technical-muted: #3A3F47;
    --inverse-surface: #1b1e22;
    --on-surface: #121417;
    --on-primary: #ffffff;
    --secondary-fixed-dim: #c3c7cc;
}

/* Zero Radius Reset - Brutal Engineering Precision */
*, *::before, *::after {
    box-sizing: border-box;
    border-radius: 0px !important;
}

body {
    background-color: var(--bg-metallic-base);
    color: var(--text-body-charcoal);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Header Screenshot Brushed Metal Texture */
.header-brushed-bg {
    background-image: url('../images/header-screenshot.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero Background Slideshow with Full Visual Presence */
.hero-bg-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 5s ease-out;
    pointer-events: none;
}

.hero-bg-slide.active {
    opacity: 0.90;
    transform: scale(1);
}

.hero-bg-indicator {
    width: 32px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.45);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-bg-indicator.active {
    background-color: var(--primary);
    box-shadow: 0 0 12px rgba(41, 109, 255, 1);
    width: 52px;
}

/* Glassmorphism Transparent Panel */
.hero-glass-panel {
    background: rgba(18, 20, 23, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), -6px 6px 0px 0px rgba(41, 109, 255, 0.9);
}

/* Industrial 45° Chamfer Cuts */
.clip-chamfer {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.clip-chamfer-lg {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.chamfer-br {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

/* Electric Blue Glow & Hover States */
.laser-glow {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.laser-glow:hover {
    box-shadow: 0 0 20px rgba(41, 109, 255, 0.65);
    background-color: var(--red-laser-hover) !important;
}

.text-glow-red {
    text-shadow: 0 0 14px rgba(41, 109, 255, 0.6);
}

/* Metallic Surfaces & Textures */
.bg-brushed-metal {
    background-image: 
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 4px),
        linear-gradient(180deg, #D8DCE0 0%, #C3C7CC 100%);
}

.bg-tech-grid {
    background-image: 
        linear-gradient(to right, rgba(99, 105, 114, 0.16) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 105, 114, 0.16) 1px, transparent 1px);
    background-size: 32px 32px;
}

.machined-surface {
    background: linear-gradient(135deg, #E2E6EA 0%, #B8BCC2 50%, #CAD0D6 100%);
}

/* Navigation State */
.nav-link {
    position: relative;
    transition: all 0.2s ease;
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(41, 109, 255, 0.8);
}

/* Vitrin Gallery Auto-Flow Styles */
.gallery-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.gallery-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.gallery-slide-item {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 0.6rem;
}

@media (min-width: 768px) {
    .gallery-slide-item {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

@media (min-width: 1200px) {
    .gallery-slide-item {
        flex: 0 0 33.333333%;
        min-width: 33.333333%;
    }
}

/* Indicator Bullets */
.slide-dot {
    width: 24px;
    height: 4px;
    background-color: var(--border-steel-edge);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slide-dot.active {
    background-color: var(--primary);
    box-shadow: 0 0 8px rgba(41, 109, 255, 0.8);
    width: 44px;
}

/* Modal Transitions */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Page Views Router Transition */
.page-view {
    display: none;
    animation: industrialFadeIn 0.3s ease-out;
}

.page-view.active-view {
    display: block;
}

@keyframes industrialFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   KVKK Cookie Consent Banner — Powerlink Industrial Design System
   Strict Text Color Palette: #121417 (Charcoal) on #D8DCE0 (Machined Steel)
   ========================================================================== */
#cookie-banner.cookie-banner-plate {
    background: linear-gradient(135deg, #E2E6EA 0%, #B8BCC2 50%, #CAD0D6 100%) !important;
    border: 2px solid var(--primary) !important;
    color: var(--text-body-charcoal) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 20px rgba(41, 109, 255, 0.35) !important;
}

#cookie-banner.cookie-banner-plate .cookie-title {
    color: var(--text-body-charcoal) !important;
    font-family: 'Archivo Black', sans-serif !important;
    font-size: 0.8125rem !important;
    letter-spacing: 0.05em !important;
}

#cookie-banner.cookie-banner-plate .cookie-desc {
    color: var(--text-body-charcoal) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
}

#cookie-banner.cookie-banner-plate .cookie-link {
    color: var(--primary) !important;
    font-family: 'Archivo Black', sans-serif !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.05em !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    transition: color 0.2s ease !important;
}

#cookie-banner.cookie-banner-plate .cookie-link:hover {
    color: var(--red-laser-hover) !important;
}

#cookie-banner.cookie-banner-plate .cookie-btn {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-family: 'Archivo Black', sans-serif !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 0 12px rgba(41, 109, 255, 0.4) !important;
}

#cookie-banner.cookie-banner-plate .cookie-btn:hover {
    background-color: var(--red-laser-hover) !important;
    box-shadow: 0 0 18px rgba(41, 109, 255, 0.7) !important;
}

#cookie-banner.cookie-banner-plate .cookie-divider {
    border-color: var(--border-steel-edge) !important;
}
