/* IZ Delivery - Custom Styles */

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

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

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top-color: #FF6B35;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover effects */
.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #F7931E 0%, #FFD23F 100%);
}

/* Card animations */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mobile-padding {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .mobile-text-sm {
        font-size: 14px;
    }
    
    .mobile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Mobile Menu Styles */
#mobile-menu {
    backdrop-filter: blur(4px);
}

#mobile-menu .bg-white {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.menu-open .bg-white {
    transform: translateX(0);
}

/* Touch-friendly buttons */
@media (max-width: 768px) {
    button, .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .touch-target {
        padding: 12px;
        margin: 4px;
    }
}

/* Admin panel specific styles */
.admin-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-nav-item {
    transition: all 0.2s ease;
}

.admin-nav-item:hover {
    background-color: #fef3f0;
    color: #FF6B35;
    padding-left: 28px;
}

.admin-nav-item.active {
    background-color: #fef3f0;
    color: #FF6B35;
    border-right: 4px solid #FF6B35;
}

/* Form styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

/* Status badges */
.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

/* Modal animations */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

.modal-exit {
    animation: modalExit 0.3s ease-in;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalExit {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

/* Rating stars */
.rating-stars {
    color: #fbbf24;
}

/* Featured badge */
.featured-badge {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Delivery info */
.delivery-free {
    color: #059669;
    font-weight: 600;
}

.delivery-paid {
    color: #6b7280;
}

/* Search input */
.search-input {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    outline: none;
}

/* Category cards */
.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.category-card:hover .category-icon {
    background-color: #FF6B35;
    color: white;
}

/* Company cards */
.company-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.company-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: #FF6B35;
}

/* Banner cards */
.banner-card {
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-card:hover::before {
    opacity: 1;
}

/* Responsive utilities */
@media (max-width: 640px) {
    .responsive-text-lg {
        font-size: 1.125rem;
    }
    
    .responsive-text-xl {
        font-size: 1.25rem;
    }
    
    .responsive-text-2xl {
        font-size: 1.5rem;
    }
    
    .responsive-text-3xl {
        font-size: 1.875rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-after: always;
    }
}
