/* Custom CSS Styles */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
}

/* Custom Animations */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Custom Shadows */
.custom-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Custom Colors */
.bg-primary-gradient {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

/* Custom Buttons */
.btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded transition duration-300;
}

.btn-secondary {
    @apply bg-gray-200 hover:bg-gray-300 text-gray-800 font-bold py-2 px-4 rounded transition duration-300;
}

.btn-outline {
    @apply bg-transparent hover:bg-blue-700 text-blue-600 hover:text-white font-bold py-2 px-4 rounded border border-blue-600 hover:border-transparent transition duration-300;
}

/* Custom Card Styles */
.product-card {
    @apply bg-white rounded-lg shadow-md overflow-hidden transition-transform duration-300;
}

.product-card:hover {
    @apply shadow-lg transform -translate-y-1;
}

/* Custom Form Styles */
.form-input {
    @apply appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight;
}

.form-input:focus {
    @apply outline-none border-blue-500 shadow;
}

.form-label {
    @apply block text-gray-700 text-sm font-bold mb-2;
}

/* Custom Header Styles */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(-10px);
    opacity: 0;
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 40;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    display: block;
}

/* Quote Cart Badge */
.cart-badge {
    @apply absolute -top-1 -right-1 bg-red-500 text-white text-xs font-bold rounded-full h-5 w-5 flex items-center justify-center;
}

/* Product Detail Tabs */
.tab-button {
    @apply py-2 px-4 font-medium border-b-2 border-transparent;
}

.tab-button.active {
    @apply text-blue-600 border-blue-600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Custom Accordion */
.accordion-button {
    @apply flex items-center justify-between w-full p-4 font-medium text-left bg-white border border-gray-200 rounded-t-lg;
}

.accordion-button:not(.collapsed) {
    @apply bg-blue-50 text-blue-600;
}

.accordion-content {
    @apply hidden p-4 bg-white border border-t-0 border-gray-200;
}

.accordion-content.show {
    @apply block;
}

/* Timeline Styles */
.timeline {
    @apply relative border-l border-gray-300 ml-3;
}

.timeline-item {
    @apply mb-10 ml-6;
}

.timeline-dot {
    @apply absolute w-4 h-4 bg-blue-600 rounded-full mt-1.5 -left-2 border border-white;
}

.timeline-date {
    @apply mb-1 text-sm font-normal leading-none text-gray-500;
}

.timeline-content {
    @apply p-4 bg-white rounded-lg border border-gray-200 shadow-sm;
}

/* Custom Alert Styles */
.alert {
    @apply p-4 mb-4 rounded-lg;
}

.alert-success {
    @apply bg-green-100 text-green-800;
}

.alert-error {
    @apply bg-red-100 text-red-800;
}

.alert-warning {
    @apply bg-yellow-100 text-yellow-800;
}

.alert-info {
    @apply bg-blue-100 text-blue-800;
}

/* Custom Badge Styles */
.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-blue {
    @apply bg-blue-100 text-blue-800;
}

.badge-green {
    @apply bg-green-100 text-green-800;
}

.badge-red {
    @apply bg-red-100 text-red-800;
}

.badge-yellow {
    @apply bg-yellow-100 text-yellow-800;
}

/* Custom Tooltip */
.tooltip {
    @apply relative inline-block;
}

.tooltip .tooltip-text {
    @apply invisible absolute z-10 py-2 px-3 text-sm text-white bg-gray-900 rounded-lg opacity-0 transition-opacity duration-300;
    width: 120px;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    margin-bottom: 5px;
}

.tooltip:hover .tooltip-text {
    @apply visible opacity-100;
}

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

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

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print Styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        font-size: 12pt;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}

/* JavaScript Functionality Support */
.js-required {
    display: none;
}

.js-enabled .js-required {
    display: block;
}

/* Fix for mobile menu on small screens */
@media (max-width: 768px) {
    #mobile-menu {
        width: 100%;
        padding: 1rem;
    }
    
    #mobile-menu a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    #mobile-menu a:last-child {
        border-bottom: none;
    }
}

/* Mobile Menu Button Positioning */
#mobile-menu-button {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section Background Slider */
.slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    animation: slideShow 15s infinite;
}

@keyframes slideShow {
    0%, 18% {
        opacity: 0;
    }
    20%, 98% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
    }
}