/* Akıncı Bilgisayar - Custom Styles */

:root {
    --primary-color: #e52320;
    --secondary-color: #c41e1b;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navbar sonrası 65px boşluk */
.navbar + * {
    margin-top: 65px !important;
}

/* Hero section için özel ayar - Dinamik CSS tarafından override edilecek */
/* REMARK: Hero section margin-top - Veritabanından gelen dinamik CSS ile çakışabilir
.hero-section {
    margin-top: 65x !important;
}
*/

/* REMARK: Hero section text-shadow - Veritabanından gelen dinamik CSS ile çakışabilir
.hero-section .text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}
*/

/* Grid System Fixes */
.row {
    margin-right: -15px !important;
    margin-left: -15px !important;
}

.col-md-4 {
    flex: 0 0 31.3333% !important;
    max-width: 31.3333% !important;
    width: 31.3333% !important;
}

/* Footer için tüm grid sınıfları exception - Bootstrap varsayılan değerlerini kullan */
footer .col-md-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
}

footer .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
}

footer .col-md-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
}

footer .col-md-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
    width: 66.666667% !important;
}

footer .col-md-9 {
    flex: 0 0 75% !important;
    max-width: 75% !important;
    width: 75% !important;
}

footer .col-md-2 {
    flex: 0 0 16.666667% !important;
    max-width: 16.666667% !important;
    width: 16.666667% !important;
}

.col-md-6 {
    flex: 0 0 47% !important;
    max-width: 47% !important;
    width: 47% !important;
}

.col-md-3 {
    flex: 0 0 23.5% !important;
    max-width: 23.5% !important;
    width: 23.5% !important;
}

.col-md-8 {
    flex: 0 0 62.666667% !important;
    max-width: 62.666667% !important;
    width: 62.666667% !important;
}

.col-md-9 {
    flex: 0 0 70.5% !important;
    max-width: 70.5% !important;
    width: 70.5% !important;
}

.col-md-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Card Grid Fixes */
.card-columns .col-md-4 {
    display: inline-block !important;
    vertical-align: top !important;
}

/* Force 3 columns for col-md-4 */
.row .col-md-4 {
    float: left !important;
    width: 31.3333% !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    box-sizing: border-box !important;
}

/* Clear floats */
.row::after {
    content: "";
    display: table;
    clear: both;
}

/* Force 2 columns for col-md-6 */
.row .col-md-6 {
    float: left !important;
    width: 50% !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    box-sizing: border-box !important;
}

/* Ensure proper card spacing */
.py-3.px-2 {
    padding: 0.5rem 0.25rem !important;
}

.col-md-4.py-3.px-2 {
    padding: 0.5rem 0.25rem !important;
    margin-bottom: 0.5rem !important;
}

.col-md-6.py-3.px-2 {
    padding: 0.5rem 0.25rem !important;
    margin-bottom: 0.5rem !important;
}

/* Reduce card margins for better fit */
.card {
    margin-bottom: 0.5rem !important;
}

/* Ensure 3 cards fit in one row */
.row .col-md-4 {
    padding-right: 8px !important;
    padding-left: 8px !important;
}

.row .col-md-6 {
    padding-right: 8px !important;
    padding-left: 8px !important;
}

/* Responsive Grid Fixes */
@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 31.3333% !important;
        max-width: 31.3333% !important;
        width: 31.3333% !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }
    
    /* Footer için tüm grid sınıfları exception - Bootstrap varsayılan değerlerini kullan */
    footer .col-md-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
    
    footer .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
    
    footer .col-md-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
    
    footer .col-md-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
        width: 66.666667% !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
    
    footer .col-md-9 {
        flex: 0 0 75% !important;
        max-width: 75% !important;
        width: 75% !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
    
    footer .col-md-2 {
        flex: 0 0 16.666667% !important;
        max-width: 16.666667% !important;
        width: 16.666667% !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
    
    .col-md-6 {
        flex: 0 0 47% !important;
        max-width: 47% !important;
        width: 47% !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }
    
    .col-md-3 {
        flex: 0 0 23.5% !important;
        max-width: 23.5% !important;
        width: 23.5% !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }
    
    .col-md-8 {
        flex: 0 0 62.666667% !important;
        max-width: 62.666667% !important;
        width: 62.666667% !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }
    
    .col-md-9 {
        flex: 0 0 70.5% !important;
        max-width: 70.5% !important;
        width: 70.5% !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }
    
    .col-md-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }
}

/* Small screens - single column */
@media (max-width: 767px) {
    .col-md-4,
    .col-md-6,
    .col-md-3,
    .col-md-8,
    .col-md-9 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Large screens - maintain grid */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 31.3333% !important;
        max-width: 31.3333% !important;
        width: 31.3333% !important;
    }
    
    .col-lg-6 {
        flex: 0 0 47% !important;
        max-width: 47% !important;
        width: 47% !important;
    }
    
    .col-lg-3 {
        flex: 0 0 23.5% !important;
        max-width: 23.5% !important;
        width: 23.5% !important;
    }
    
    /* Footer için col-lg exception */
    footer .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
    
    footer .col-lg-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    
    footer .col-lg-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }
    
    footer .col-lg-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    
    footer .col-lg-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
        width: 66.666667% !important;
    }
}

.bg-primary {
    background-color: var(--primary-color) !important;
    background-color: #e52320 !important;
}

.text-primary {
    color: var(--primary-color) !important;
    color: #e52320 !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    background-color: #e52320 !important;
    border-color: var(--primary-color) !important;
    border-color: #e52320 !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    background-color: #c41e1b !important;
    border-color: var(--secondary-color) !important;
    border-color: #c41e1b !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    color: #e52320 !important;
    border-color: var(--primary-color) !important;
    border-color: #e52320 !important;
}

/* Bootstrap default primary color override */
:root {
    --bs-primary: #e52320 !important;
    --bs-primary-rgb: 229, 35, 32 !important;
}

/* Force override Bootstrap primary colors */
.text-primary {
    color: #e52320 !important;
}

.bg-primary {
    background-color: #e52320 !important;
}

.btn-primary {
    background-color: #e52320 !important;
    border-color: #e52320 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #c41e1b !important;
    border-color: #c41e1b !important;
}

.btn-outline-primary {
    color: #e52320 !important;
    border-color: #e52320 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #e52320 !important;
    border-color: #e52320 !important;
    color: white !important;
}

/* btn-sm için özel kurallar */
.btn-outline-primary.btn-sm {
    color: #e52320 !important;
    border-color: #e52320 !important;
    background-color: transparent !important;
}

.btn-outline-primary.btn-sm:hover,
.btn-outline-primary.btn-sm:focus,
.btn-outline-primary.btn-sm:active {
    background-color: #e52320 !important;
    border-color: #e52320 !important;
    color: white !important;
}

/* Link colors */
a {
    color: #e52320;
}

a:hover {
    color: #c41e1b;
}

/* Navbar brand */
.navbar-brand {
    color: #e52320 !important;
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

/* Card headers */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e52320;
}

/* Pagination */
.page-link {
    color: #e52320;
    border-color: #dee2e6;
}

.page-link:hover {
    color: #c41e1b;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: #e52320;
    border-color: #e52320;
}

/* Additional overrides for product pages */
.product-card .card-title {
    color: #e52320 !important;
}

.product-card .btn-primary {
    background-color: #e52320 !important;
    border-color: #e52320 !important;
}

.product-card .btn-primary:hover {
    background-color: #c41e1b !important;
    border-color: #c41e1b !important;
}

/* Price colors */
.price-section .text-primary {
    color: #e52320 !important;
}

/* Form controls */
.form-control:focus {
    border-color: #e52320 !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 35, 32, 0.25) !important;
}

.form-select:focus {
    border-color: #e52320 !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 35, 32, 0.25) !important;
}

/* Alert colors */
.alert-primary {
    background-color: rgba(229, 35, 32, 0.1) !important;
    border-color: rgba(229, 35, 32, 0.2) !important;
    color: #721c24 !important;
}

/* Badge colors */
.badge.bg-primary {
    background-color: #e52320 !important;
}

/* List group */
.list-group-item.active {
    background-color: #e52320 !important;
    border-color: #e52320 !important;
}

/* Progress bars */
.progress-bar {
    background-color: #e52320 !important;
}

/* Tooltips */
.tooltip .tooltip-inner {
    background-color: #e52320 !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #e52320 !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #e52320 !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #e52320 !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #e52320 !important;
}

/* Navigation */
.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    /* background: linear-gradient(135deg, #e52320 0%, #c41e1b 100%) !important; */ /* REMARK: Veritabanından gelen dinamik CSS ile çakışıyor */
    /* color: white; */ /* REMARK: Veritabanından gelen dinamik CSS ile çakışıyor */
    /* padding: 100px 0 80px; */ /* REMARK: Veritabanından gelen dinamik CSS ile çakışıyor */
    position: relative;
    overflow: hidden;
}

/* REMARK: Hero section ::before pseudo-element - Veritabanından gelen dinamik overlay ile çakışabilir
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}
*/

.hero-content {
    position: relative;
    z-index: 2;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-radius: 10px 10px 0 0;
    height: 200px;
    object-fit: cover;
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color) !important;
    color: #e52320 !important;
}

.product-old-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Services */
.service-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color) !important;
    background: #e52320 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color) !important;
    border-color: #e52320 !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 35, 32, 0.25) !important;
}

.form-select:focus {
    border-color: var(--primary-color) !important;
    border-color: #e52320 !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 35, 32, 0.25) !important;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Loading Spinner */
.spinner-border-primary {
    color: var(--primary-color);
}

/* Cart */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    color: #e52320 !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color) !important;
    background: #e52320 !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    /* REMARK: Hero section responsive tanımları - Veritabanından gelen dinamik CSS ile çakışabilir
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    */
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    background: linear-gradient(135deg, #e52320 0%, #c41e1b 100%) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
    border-color: #e52320 !important;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color) !important;
    color: #e52320 !important;
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    color: var(--secondary-color) !important;
    color: #c41e1b !important;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color) !important;
    background-color: #e52320 !important;
    border-color: var(--primary-color) !important;
    border-color: #e52320 !important;
}


/* Alert Customization */
.alert {
    border: none;
    border-radius: 10px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #0c5460;
}

/* Modal */
.modal-header {
    background: var(--primary-color) !important;
    background: #e52320 !important;
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Table */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: var(--primary-color) !important;
    background: #e52320 !important;
    color: white;
    border: none;
    font-weight: 500;
}

/* Badge */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 10px;
}

.progress-bar {
    background: var(--primary-color) !important;
    background: #e52320 !important;
    border-radius: 10px;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color) !important;
    background: #e52320 !important;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color) !important;
    background: #c41e1b !important;
}

/* No Image Placeholder */
.no-image {
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.875rem;
    text-align: center;
    min-height: 200px;
}

.no-image::before {
    content: "Resim Yok";
}
