/**
 * Betonika CMS - Custom CSS
 * Tailwind'e ek özel stiller
 */

/* Swiper Navigation Button Styles */
.swiper-button-next,
.swiper-button-prev {
    color: #F97316 !important;
    background-color: rgba(255, 255, 255, 0.8);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #F97316 !important;
    opacity: 1;
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #F97316;
    border-radius: 5px;
}

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

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Accessibility */
.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 Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #F97316;
    outline-offset: 2px;
}

/* Admin Panel Custom Styles */
.sidebar-active {
    position: relative;
}

.sidebar-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #F97316;
}

/* jQuery UI Sortable Styles */
.ui-sortable-helper {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: grabbing !important;
}

.ui-sortable-placeholder {
    visibility: visible !important;
    background-color: rgba(249, 115, 22, 0.1);
    border: 2px dashed #F97316;
}

/* Image Upload Preview */
.image-preview {
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
    
    table {
        font-size: 14px;
    }
}

/* Color Picker Enhancement */
input[type="color"] {
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}
