/* Custom CSS İyileştirmeleri - İskender Usta */

/* Active Thumbnail Stilleri */
.thumb {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumb:hover {
    transform: scale(1.05);
    border-color: #dc3545;
}

.active-thumb {
    border: 3px solid #dc3545 !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

/* Form Validation Feedback */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Card Hover Effects */
.product-card,
.service-item {
    transition: all 0.3s ease;
}

.product-card:hover,
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Image Loading State */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 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-width: 0;
}

/* Focus States for Keyboard Navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #dc3545;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Responsive Image Containers */
.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Badge Improvements */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Alert Improvements */
.alert {
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #28a745;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #17a2b8;
}

/* Button Loading State */
button:disabled,
button[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Schema.org Microdata Hidden Elements */
[itemprop="priceCurrency"],
[itemprop="availability"] {
    display: none;
}

/* Print Styles */
@media print {
    .btn,
    .navbar,
    .footer,
    form {
        display: none !important;
    }
    
    img {
        max-width: 100% !important;
    }
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .thumb {
        width: 60px !important;
        height: 45px !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-muted {
        color: #000 !important;
    }
    
    .btn-outline-danger {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Dark mode stilleri buraya eklenebilir */
}

