/* TorosDoor - Static Version Styles */

/* EMERGENCY BUTTON FIXES - GLOBAL OVERRIDES */
button, input[type="submit"], input[type="button"] {
    position: relative !important;
    z-index: auto !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Clean buttons - no debug overlay */

/* TorosDoor - Production Ready Styles */

/* PREVENT OVERLAYS FROM BLOCKING BUTTONS */
*, *:before, *:after {
    box-sizing: border-box;
}

/* TAILWIND OVERRIDE PROTECTION */
.product-contact-btn,
.form-button,
#catalog-btn {
    /* Force override any conflicting Tailwind classes */
    position: relative !important;
    display: block !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    border-style: solid !important;
    box-sizing: border-box !important;
}

/* NAVBAR Z-INDEX FIX - Override Tailwind z-50 */
nav[role="navigation"] {
    z-index: 40 !important; /* NAVBAR = 40, BUTONLAR = 9999+ */
    position: fixed !important;
    
    /* Navbar container */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important; /* Sadece içeriği kadar */
    height: auto !important; /* Sadece içeriği kadar */
    padding: 0 !important; /* Sıfır padding */
    margin: 0 !important; /* Sıfır margin */
    
    /* Clean navbar container - no debug outline */
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom CSS Variables */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --muted: 210 40% 96%;
    --accent: 210 40% 96%;
    --border: 214.3 31.8% 91.4%;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Navbar Styles - FIXED HITBOX BLOCKING */
.navbar {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(214, 214, 214, 0.3);
    
    /* Minimize navbar footprint */
    display: inline-flex !important;
    padding: 4px 8px !important; /* Çok minimal padding */
    border-radius: 50px !important; /* Pill shape */
    max-height: 60px !important; /* Sabit maksimum yükseklik */
    width: auto !important; /* Sadece içeriği kadar genişlik */
    min-width: auto !important;
    box-sizing: border-box !important;
    
    /* Pointer events - only visible area clickable */
    pointer-events: auto !important;
    overflow: visible !important;
    
    /* Clean navbar - no debug outline */
}

.navbar-item {
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    
    /* Navbar item sizing */
    padding: 8px 16px !important; /* Daha compact */
    margin: 0 2px !important; /* Minimal spacing */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important; /* Sabit yükseklik */
    box-sizing: border-box !important;
    
    /* Clean navbar items - no debug outline */
}

.navbar-item.active {
    background: rgba(240, 240, 240, 0.8);
    color: #1a1a1a;
}

.navbar-item:hover {
    color: #1a1a1a;
    text-decoration: none;
}

/* Accordion Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 200px;
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.chevron-icon.rotated {
    transform: rotate(180deg);
}

/* Hover Effects - Z-INDEX CONTROLLED */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative !important;
    z-index: 1 !important; /* DÜŞÜK Z-INDEX */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2 !important; /* HOVER'DA BİRAZ YÜKSEK AMA BUTONLARDAN DÜŞÜK */
}

.product-image {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Button Hover Effects */
.btn-primary {
    background: #1a1a1a;
    color: white;
    transition: background 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #333;
    text-decoration: none;
}

.btn-secondary {
    border: 1px solid #d1d5db;
    color: #1a1a1a;
    transition: background 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #f9fafb;
    text-decoration: none;
}

/* Star ratings */
.star-filled {
    color: #fbbf24;
    fill: currentColor;
}

/* Form Styles - Z-INDEX FIXED */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    background-image: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    z-index: 1 !important;
    position: relative !important;
}

.form-input:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

/* Button Styles - FORM BUTTON FIXED */
.form-button {
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 1rem 1.5rem !important;
    margin: 0 auto !important;
    background-color: #1a1a1a !important;
    color: white !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    user-select: none !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10000 !important; /* EN YÜKSEK Z-INDEX */
    pointer-events: auto !important;
    overflow: visible !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: button !important;
    appearance: button !important;
}

.form-button * {
    pointer-events: none !important;
    user-select: none !important;
}

/* Product Contact Button Styles - FIXED */
.product-contact-btn {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 0.75rem 1rem !important;
    margin: 0 auto !important;
    background-color: #1a1a1a !important;
    color: white !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    user-select: none !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 9999 !important; /* ÇOK YÜKSEK Z-INDEX */
    pointer-events: auto !important;
    overflow: visible !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: button !important;
    appearance: button !important;
}

.product-contact-btn * {
    pointer-events: none !important;
    user-select: none !important;
    position: relative !important;
    z-index: 1 !important;
}

/* WhatsApp SVG Icon Styling */
.product-contact-btn svg,
.form-button svg {
    pointer-events: none !important;
    user-select: none !important;
    vertical-align: middle !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Mobile Logo Styling - Extra Big & Centered */
.mobile-logo {
    max-width: 280px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
    margin-top: -2rem;
}

.mobile-logo:hover {
    transform: scale(1.1);
}

/* Responsive Logo - Extra Big Sizing */
@media (max-width: 480px) {
    .mobile-logo {
        max-width: 200px;
        margin-bottom: 0.75rem;
        margin-top: -1.5rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .mobile-logo {
        max-width: 240px;
        margin-bottom: 0.85rem;
        margin-top: -1.75rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .mobile-logo {
        max-width: 300px;
        margin-bottom: 1rem;
        margin-top: -2rem;
    }
}

@media (min-width: 1024px) {
    .mobile-logo {
        max-width: 320px;
        margin-bottom: 1.25rem;
        margin-top: -2.5rem;
    }
}

/* Logo Title - Perfect Spacing */
.logo-title {
    margin-top: -0.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Responsive Logo Title Spacing - Balanced */
@media (max-width: 480px) {
    .logo-title {
        margin-top: -0.25rem !important;
        margin-bottom: 1.25rem !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .logo-title {
        margin-top: -0.5rem !important;
        margin-bottom: 1.35rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .logo-title {
        margin-top: -0.75rem !important;
        margin-bottom: 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    .logo-title {
        margin-top: -1rem !important;
        margin-bottom: 1.75rem !important;
    }
}

/* Hero Section Spacing - Centered Logo Layout */
#home {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Responsive Hero Spacing */
@media (max-width: 480px) {
    #home {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    #home {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

@media (min-width: 1024px) {
    #home {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

.form-button:hover {
    background-color: #333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.form-button:active {
    transform: translateY(0) !important;
    background-color: #111 !important;
}

.product-contact-btn:hover {
    background-color: #333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.product-contact-btn:active {
    transform: translateY(0) !important;
    background-color: #111 !important;
}

.form-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

/* Responsive navbar for mobile - FIXED POSITIONING */
@media (max-width: 767px) {
    /* MOBILE: Bottom navbar */
    nav[role="navigation"] {
        bottom: 1.5rem !important;
        top: auto !important;
        
        /* Mobile navbar positioning */
    }
    
    .navbar-item .nav-text {
        display: none !important;
    }
    
    .navbar-item .nav-icon {
        display: inline-block !important;
    }
    
    /* MOBILE: Daha kompakt butonlar */
    .navbar-item {
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 8px !important;
    }
}

@media (min-width: 768px) {
    /* DESKTOP: Top navbar */
    nav[role="navigation"] {
        top: 1.5rem !important;
        bottom: auto !important;
        
        /* Desktop navbar positioning */
    }
    
    .navbar-item .nav-text {
        display: inline-block !important;
    }
    
    .navbar-item .nav-icon {
        display: none !important;
    }
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Hover effects for testimonials */
.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

/* Footer link styles */
.footer-link {
    color: #9ca3af;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: white;
    text-decoration: none;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.focus-visible:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Catalog Button Styles - FIXED FOR HITBOX */
#catalog-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    margin: 0 auto !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
    color: #ffffff !important;
    border: 2px solid #1a1a1a !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10001 !important; /* EN YÜKSEK Z-INDEX */
    position: relative !important;
    user-select: none !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    pointer-events: auto !important;
    overflow: visible !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: button !important;
    appearance: button !important;
    min-height: 48px !important;
    white-space: nowrap !important;
}

#catalog-btn span {
    pointer-events: none !important;
    user-select: none !important;
}

#catalog-btn:hover {
    background: linear-gradient(135deg, #333333 0%, #404040 100%) !important;
    border-color: #333333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
    color: #ffffff !important;
}

#catalog-btn:active {
    transform: translateY(0) !important;
    background: linear-gradient(135deg, #111111 0%, #222222 100%) !important;
    border-color: #111111 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#catalog-btn:focus {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(26, 26, 26, 0.3) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print styles */
@media print {
    .navbar,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}
