/* ==========================================================
 * Varilsan Grup (Tenant 7 / t-7) - Custom Styles
 * Extracted from layouts/app.blade.php inline <style>
 * ========================================================== */

[x-cloak] { display: none !important; }

/* ===== DESIGN TOKENS ===== */
:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #e0f2fe;
    --accent: #fac312;
    --accent-hover: #d4a410;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark/Light mode geçişlerinde flash önleme */
*, *::before, *::after {
    transition-property: background-color, border-color, color, fill, stroke, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}
.swiper-slide, .swiper-wrapper, [class*="animate-"], .orbit-ring {
    transition-property: none;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Hero büyük başlıklar */
.hero-title { line-height: 1.35; }
.gradient-text-hero {
    line-height: 1.35;
    padding-bottom: 0.08em;
}
p { line-height: 1.75; }
html { scroll-behavior: smooth; }

/* Hero ürün float animasyonu */
@keyframes heroProductFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.hero-product-float {
    animation: heroProductFloat 6s ease-in-out infinite;
    will-change: transform;
}

/* Reduced motion — tüm büyük animasyonları kapat (a11y) */
@media (prefers-reduced-motion: reduce) {
    .hero-product-float,
    .organic-float,
    .organic-float-reverse,
    .float-animation,
    .pulse-ring::before,
    .orbit-ring,
    .gradient-text,
    .gradient-text-hero,
    .cta-gradient-text,
    .kinetic-text,
    .gradient-shift,
    .cta-animated-bg,
    .cta-animated-bg::before,
    .animated-mesh::before,
    .particle,
    .particle-1, .particle-2, .particle-3, .particle-4, .particle-5 {
        animation: none !important;
        transition: none !important;
    }
    *, *::before, *::after {
        transition-duration: 0s !important;
        animation-duration: 0s !important;
    }
}

.hero-bg-mobile { object-position: right center; }
.dark .hero-bg-mobile { object-position: left center; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #0284c7, #0ea5e9); border-radius: 10px; }

/* Gradient Shift Button */
.gradient-shift {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #0284c7 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gradient-shift:hover { background-position: 100% 50%; }

/* Card Border Hover */
.card-shadow {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}
.card-shadow:hover {
    border-color: #0ea5e9;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.2);
}

/* Link Hover */
.link-hover { position: relative; transition: all 0.3s ease; }
.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8, #06b6d4);
    transition: width 0.3s ease;
}
.link-hover:hover::after { width: 100%; }
.link-hover:hover { color: #0ea5e9; }

/* Icon Border Hover */
.icon-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}
.icon-hover:hover {
    border-color: #0ea5e9;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}

/* Button Hover */
.btn-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn-hover::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}
.btn-hover:hover::before { left: 100%; }

/* Mega Menu Cards */
.mega-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}
.mega-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

/* Animated Mesh */
.animated-mesh { position: absolute; inset: 0; overflow: hidden; }
.animated-mesh::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(2, 132, 199, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(250, 195, 18, 0.1) 0%, transparent 40%);
    animation: meshMove 20s ease-in-out infinite;
}
@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5%, 5%) rotate(2deg); }
    50% { transform: translate(5%, -5%) rotate(-2deg); }
    75% { transform: translate(-3%, -3%) rotate(1deg); }
}

/* Gradient Text */
@keyframes gradientWave {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.gradient-text,
.gradient-text-hero,
.cta-gradient-text {
    background: linear-gradient(90deg,
        #0369a1 0%, #06b6d4 20%, #0f766e 40%,
        #10b981 60%, #047857 80%, #0369a1 100%);
    background-size: 200% 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientWave 5s linear infinite;
    display: inline-block;
    padding-bottom: 0.1em;
    line-height: 1.2;
}
.dark .gradient-text,
.dark .gradient-text-hero,
.dark .cta-gradient-text {
    background: linear-gradient(90deg,
        #7dd3fc 0%, #22d3ee 20%, #5eead4 40%,
        #34d399 60%, #a7f3d0 80%, #7dd3fc 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientWave 5s linear infinite;
}

/* CTA Animated Background */
.cta-animated-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(14, 165, 233, 0.05) 50%, transparent 100%);
    background-size: 400% 400%;
    animation: ctaGradientMove 8s ease infinite;
}
.cta-animated-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: ctaFloat 6s ease-in-out infinite;
}
@keyframes ctaGradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes ctaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(20px, -20px) scale(1.1); opacity: 1; }
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
.float-animation { animation: float 6s ease-in-out infinite; }

/* Pulse Ring */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
.pulse-ring { position: relative; }
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #0ea5e9;
    animation: pulse-ring 2s ease-out infinite;
}

/* Glow Effects */
.glow-sky    { box-shadow: 0 0 40px rgba(14, 165, 233, 0.4); }
.glow-cyan   { box-shadow: 0 0 40px rgba(6, 182, 212, 0.4); }
.glow-emerald{ box-shadow: 0 0 40px rgba(16, 185, 129, 0.4); }

/* Kinetic Maximalist */
@keyframes organicFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(2deg); }
    50% { transform: translate(-5px, 10px) rotate(-1deg); }
    75% { transform: translate(15px, 5px) rotate(1deg); }
}
.organic-float { animation: organicFloat 12s ease-in-out infinite; }

@keyframes organicFloatReverse {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-15px, 10px) rotate(-2deg); }
    50% { transform: translate(10px, -5px) rotate(1deg); }
    75% { transform: translate(-5px, -15px) rotate(-1deg); }
}
.organic-float-reverse { animation: organicFloatReverse 15s ease-in-out infinite; }

/* Particles */
.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: rgba(14, 165, 233, 0.6);
    border-radius: 50%;
    filter: blur(1px);
}
@keyframes particleFloat1 {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; } 90% { opacity: 1; }
    100% { transform: translate(100px, -200px); opacity: 0; }
}
@keyframes particleFloat2 {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; } 90% { opacity: 1; }
    100% { transform: translate(-150px, -180px); opacity: 0; }
}
@keyframes particleFloat3 {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; } 90% { opacity: 1; }
    100% { transform: translate(80px, 150px); opacity: 0; }
}
.particle-1 { top: 70%; left: 20%; animation: particleFloat1 8s ease-in-out infinite; }
.particle-2 { top: 80%; left: 60%; animation: particleFloat2 10s ease-in-out infinite; animation-delay: -2s; background: rgba(6, 182, 212, 0.6); }
.particle-3 { top: 30%; left: 80%; animation: particleFloat3 12s ease-in-out infinite; animation-delay: -4s; background: rgba(16, 185, 129, 0.6); }
.particle-4 { top: 50%; left: 10%; animation: particleFloat1 9s ease-in-out infinite; animation-delay: -3s; background: rgba(20, 184, 166, 0.6); }
.particle-5 { top: 20%; left: 40%; animation: particleFloat2 11s ease-in-out infinite; animation-delay: -5s; }

/* Orbit */
@keyframes orbitPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}
.orbit-ring { animation: orbitPulse 3s ease-in-out infinite, spin 30s linear infinite; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.orbit-container { transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1); }
.orbit-icon { transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1); }

/* Kinetic Text */
@keyframes kineticShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.kinetic-text {
    background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 25%, #06b6d4 50%, #0ea5e9 75%, #38bdf8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: kineticShimmer 4s linear infinite;
}

/* Active Card Border Colors */
.border-sky-500\/50    { border-color: rgba(14, 165, 233, 0.5); }
.border-cyan-500\/50   { border-color: rgba(6, 182, 212, 0.5); }
.border-emerald-500\/50{ border-color: rgba(16, 185, 129, 0.5); }
.border-teal-500\/50   { border-color: rgba(20, 184, 166, 0.5); }

/* Blog Card */
.blog-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}
.blog-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.2);
}
.blog-image img { transition: all 0.4s ease; }

/* Container - Unimad/t-6 Referans */
.container {
    max-width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}
@media (min-width: 768px) {
    .container { padding-left: 2rem !important; padding-right: 2rem !important; }
}
@media (min-width: 1024px) {
    .container { padding-left: 3rem !important; padding-right: 3rem !important; }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px !important; padding-left: 2rem !important; padding-right: 2rem !important; }
}
@media (min-width: 1536px) {
    .container { max-width: 1536px !important; }
}

/* Typography - Prose */
.prose {
    color: #374151;
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.75;
}
.prose p { margin-top: 1.25em; margin-bottom: 1.25em; }
.prose h1 { color: #111827; font-weight: 800; font-size: 2.25em; margin-top: 0; margin-bottom: 0.8888889em; line-height: 1.1111111; }
.prose h2 { color: #111827; font-weight: 700; font-size: 1.5em; margin-top: 2em; margin-bottom: 1em; line-height: 1.3333333; }
.prose h3 { color: #111827; font-weight: 600; font-size: 1.25em; margin-top: 1.6em; margin-bottom: 0.6em; line-height: 1.6; }
.prose h4 { color: #111827; font-weight: 600; margin-top: 1.5em; margin-bottom: 0.5em; line-height: 1.5; }
.prose a { color: #2563eb; text-decoration: underline; font-weight: 500; }
.prose a:hover { color: #1d4ed8; }
.prose strong { color: #111827; font-weight: 600; }
.prose ul { list-style-type: disc; margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; }
.prose ol { list-style-type: decimal; margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; }
.prose li { margin-top: 0.5em; margin-bottom: 0.5em; }
.prose blockquote { font-weight: 500; font-style: italic; color: #111827; border-left-width: 0.25rem; border-left-color: #e5e7eb; margin-top: 1.6em; margin-bottom: 1.6em; padding-left: 1em; }
.prose code { color: #111827; font-weight: 600; font-size: 0.875em; }
.prose pre { color: #e5e7eb; background-color: #1f2937; overflow-x: auto; font-weight: 400; font-size: 0.875em; line-height: 1.7142857; margin-top: 1.7142857em; margin-bottom: 1.7142857em; border-radius: 0.375rem; padding: 0.8571429em 1.1428571em; }
.prose table { width: 100%; table-layout: auto; text-align: left; margin-top: 2em; margin-bottom: 2em; font-size: 0.875em; line-height: 1.7142857; }
.prose thead { border-bottom-width: 1px; border-bottom-color: #d1d5db; }
.prose thead th { color: #111827; font-weight: 600; vertical-align: bottom; padding: 0.5714286em; }
.prose tbody tr { border-bottom-width: 1px; border-bottom-color: #e5e7eb; }
.prose tbody td { vertical-align: baseline; padding: 0.5714286em; }
.prose img { margin-top: 2em; margin-bottom: 2em; border-radius: 0.5rem; }
.prose hr { border-color: #e5e7eb; margin-top: 3em; margin-bottom: 3em; }
.prose-lg { font-size: 1.125rem; line-height: 1.7777778; }
.prose-lg p { margin-top: 1.3333333em; margin-bottom: 1.3333333em; }
.prose-lg h2 { font-size: 1.6666667em; margin-top: 1.8666667em; margin-bottom: 1.0666667em; line-height: 1.3333333; }
.prose-lg h3 { font-size: 1.3333333em; margin-top: 1.6666667em; margin-bottom: 0.6666667em; line-height: 1.5; }
.max-w-none { max-width: none !important; }

.dark .prose, .dark .prose p, .dark .prose li { color: #d1d5db; }
.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4, .dark .prose strong { color: #f9fafb; }
.dark .prose a { color: #60a5fa; }
.dark .prose a:hover { color: #93c5fd; }
.dark .prose blockquote { color: #e5e7eb; border-left-color: #4b5563; }
.dark .prose code { color: #f9fafb; }
.dark .prose pre { background-color: #111827; }
.dark .prose thead { border-bottom-color: #4b5563; }
.dark .prose thead th { color: #f9fafb; }
.dark .prose tbody tr { border-bottom-color: #374151; }
.dark .prose hr { border-color: #374151; }

.prose-headings\:font-bold h1,
.prose-headings\:font-bold h2,
.prose-headings\:font-bold h3,
.prose-headings\:font-bold h4 { font-weight: 700; }

.prose-headings\:scroll-mt-24 h1,
.prose-headings\:scroll-mt-24 h2,
.prose-headings\:scroll-mt-24 h3,
.prose-headings\:scroll-mt-24 h4 { scroll-margin-top: 6rem; }
