/**
 * Modern Daily Offer Styles
 * Bootstrap 5 uyumlu modern günlük teklif stilleri
 */

/* ============================================
   MODERN DAILY OFFER LAYOUT
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   FILTER PANEL STYLES
   ============================================ */

.filter-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-chip {
    background: var(--bs-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    background: var(--bs-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.filter-chip .remove-chip {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.filter-chip .remove-chip:hover {
    opacity: 1;
}

/* ============================================
   TABLE STYLES
   ============================================ */

.modern-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.modern-table thead th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.modern-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.modern-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border: none;
}

/* ============================================
   CARD STYLES
   ============================================ */

.modern-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.modern-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
}

.modern-card .card-body {
    padding: 1.5rem;
}

/* ============================================
   PRODUCT ITEM STYLES
   ============================================ */

.product-item {
    border: 2px solid #f1f3f4;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.product-item:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.product-item .card-body {
    padding: 1.25rem;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-modern {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   FORM STYLES
   ============================================ */

.modern-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
}

.modern-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.15);
    background: white;
}

.modern-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* ============================================
   BADGE STYLES
   ============================================ */

.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .modern-table {
        font-size: 0.875rem;
    }
    
    .modern-table thead th {
        padding: 0.75rem 0.5rem;
    }
    
    .modern-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .btn-modern {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .product-item .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .modern-card .card-header {
        padding: 1rem;
    }
    
    .modern-card .card-body {
        padding: 1rem;
    }
    
    .filter-panel {
        padding: 1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hover-lift {
    transition: transform 0.3s ease;
}

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

.shadow-soft {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.shadow-medium {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.border-soft {
    border: 1px solid #f1f3f4;
}

.border-medium {
    border: 2px solid #e9ecef;
}

.rounded-modern {
    border-radius: 12px;
}

.rounded-modern-lg {
    border-radius: 16px;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

[data-bs-theme="dark"] .modern-card {
    background: var(--bs-dark);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .modern-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .product-item {
    background: var(--bs-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .modern-form .form-control {
    background: var(--bs-dark);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .modern-form .form-control:focus {
    background: var(--bs-dark);
    border-color: var(--bs-primary);
    color: var(--bs-light);
}
