/* Meka Endüstriyel — Site CSS */

/* ===== GLASSMORPHISM ===== */
.glass {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    background: #f8fafc;
    border-color: rgba(50, 54, 151, 0.3);
    box-shadow: 0 4px 20px rgba(50, 54, 151, 0.1);
}

/* Accent glow */
.accent-glow {
    box-shadow: 0 0 20px rgba(50, 54, 151, 0.15);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: rgba(50, 54, 151, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(50, 54, 151, 0.5);
}

/* Grid pattern overlay */
.grid-pattern {
    background-image:
        linear-gradient(rgba(50, 54, 151, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 54, 151, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Hero animated gradient */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.12; }
}

.hero-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Category card hover lift */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(50, 54, 151, 0.12);
}

/* Active nav underline */
.nav-active {
    color: #323697;
    position: relative;
}
.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #323697;
    border-radius: 1px;
}

/* Smooth fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Technical spec table */
.spec-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}
.spec-table td {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== LIGHT THEME TEXT OVERRIDES ===== */
/* Default: text is dark on white background */
.light-text .text-white  { color: #111827 !important; }
.light-text .text-gray-300 { color: #374151 !important; }
.light-text .text-gray-400 { color: #4b5563 !important; }
.light-text .text-gray-500 { color: #6b7280 !important; }
.light-text .text-gray-600 { color: #9ca3af !important; }

/* Hover states on light background */
.light-text .hover\:text-white:hover   { color: #111827 !important; }
.light-text .hover\:text-gray-300:hover { color: #374151 !important; }
.light-text .hover\:text-gray-900:hover { color: #111827 !important; }

/* Dark-background sections: restore white text */
.dark-bg .text-white    { color: #ffffff !important; }
.dark-bg .text-gray-300 { color: rgba(255,255,255,0.85) !important; }
.dark-bg .text-gray-400 { color: rgba(255,255,255,0.70) !important; }
.dark-bg .text-gray-500 { color: rgba(255,255,255,0.55) !important; }
.dark-bg .text-gray-600 { color: rgba(255,255,255,0.40) !important; }
