/* NaijaSearch 2.0 Custom Styles */

/* Custom color utilities */
.text-military-green {
    color: #4B5320;
}

.text-military-green-light {
    color: #6B7240;
}

.text-military-green-dark {
    color: #3B4220;
}

.bg-military-green {
    background-color: #4B5320;
}

.bg-military-green-light {
    background-color: #6B7240;
}

.bg-military-green-dark {
    background-color: #3B4220;
}

.border-military-green {
    border-color: #4B5320;
}

/* Additional gradient colors */
.from-military-green {
    --tw-gradient-from: #4B5320;
    --tw-gradient-to: rgba(75, 83, 32, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-military-green {
    --tw-gradient-to: #4B5320;
}

.to-military-green-dark {
    --tw-gradient-to: #3B4220;
}

.from-military-green-dark {
    --tw-gradient-from: #3B4220;
    --tw-gradient-to: rgba(59, 66, 32, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/* New military green variations for the fresh design */
.bg-military-green-light {
    background-color: #6B7240;
}

.text-military-green-light {
    color: #8B9560;
}

/* Enhanced animations and effects for the new design */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(75, 83, 32, 0.2); }
    50% { box-shadow: 0 0 30px rgba(75, 83, 32, 0.4); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Backdrop blur for modern effects */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

.from-green-500 {
    --tw-gradient-from: #22c55e;
    --tw-gradient-to: rgba(34, 197, 94, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-green-600 {
    --tw-gradient-to: #16a34a;
}

.from-blue-500 {
    --tw-gradient-from: #4B5320;
    --tw-gradient-to: rgba(75, 83, 32, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-blue-600 {
    --tw-gradient-to: #3B4220;
}

/* Hover states */
.hover\:bg-military-green:hover {
    background-color: #4B5320;
}

.hover\:bg-military-green-dark:hover {
    background-color: #3B4220;
}

.hover\:from-military-green-dark:hover {
    --tw-gradient-from: #3B4220;
    --tw-gradient-to: rgba(59, 66, 32, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.hover\:to-military-green-dark:hover {
    --tw-gradient-to: #3B4220;
}

.hover\:text-military-green:hover {
    color: #4B5320;
}

.hover\:text-military-green-dark:hover {
    color: #3B4220;
}

.hover\:border-military-green:hover {
    border-color: #4B5320;
}

/* Focus states */
.focus\:ring-military-green:focus {
    --tw-ring-color: #4B5320;
}

.focus\:border-military-green:focus {
    border-color: #4B5320;
}

/* Line clamp utilities */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

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

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

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-in-out;
}

/* Loading states */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid #4B5320;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Product card hover effects */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive utilities */
@media (max-width: 640px) {
    .mobile-hidden {
        display: none;
    }
}

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

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #4B5320;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #3B4220;
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease-in-out;
}

.alert.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Form enhancements */
.form-floating {
    position: relative;
}

.form-floating > .form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

/* Badge styles */
.badge-success {
    background-color: #10b981;
    color: white;
}

.badge-warning {
    background-color: #f59e0b;
    color: white;
}

.badge-danger {
    background-color: #ef4444;
    color: white;
}

.badge-info {
    background-color: #4B5320;
    color: white;
}

/* Utility classes */
.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.select-none {
    user-select: none;
}

.pointer-events-none {
    pointer-events: none;
}

/* Enhanced Stats Cards */
.stats-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(75, 83, 32, 0.05);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4B5320, #22c55e, #3B4220);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Gradient text support */
.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Enhanced gradients */
.from-military-green\/10 {
    --tw-gradient-from: rgba(75, 83, 32, 0.1);
    --tw-gradient-to: rgba(75, 83, 32, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-military-green\/5 {
    --tw-gradient-to: rgba(75, 83, 32, 0.05);
}

.from-green-500\/10 {
    --tw-gradient-from: rgba(34, 197, 94, 0.1);
    --tw-gradient-to: rgba(34, 197, 94, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-green-400\/5 {
    --tw-gradient-to: rgba(74, 222, 128, 0.05);
}

.from-blue-500\/10 {
    --tw-gradient-from: rgba(75, 83, 32, 0.1);
    --tw-gradient-to: rgba(75, 83, 32, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-blue-400\/5 {
    --tw-gradient-to: rgba(75, 83, 32, 0.05);
}

.from-military-green\/5 {
    --tw-gradient-from: rgba(75, 83, 32, 0.05);
    --tw-gradient-to: rgba(75, 83, 32, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-green-500\/5 {
    --tw-gradient-from: rgba(34, 197, 94, 0.05);
    --tw-gradient-to: rgba(34, 197, 94, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-blue-500\/5 {
    --tw-gradient-from: rgba(75, 83, 32, 0.05);
    --tw-gradient-to: rgba(75, 83, 32, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/* Responsive grid utilities */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Enhanced mobile responsiveness for stats */
@media (max-width: 640px) {
    .stats-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stats-card:last-child {
        margin-bottom: 0;
    }
}

/* Dark mode utilities (if needed) */
@media (prefers-color-scheme: dark) {
    .dark-mode-auto {
        background-color: #1f2937;
        color: #f9fafb;
    }
}