/* Custom Styles for Consolation Foundation */

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Slider Styles */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slide {
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1 !important;
}

.slider-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot.active {
    opacity: 1 !important;
    transform: scale(1.2);
}

.slider-dot:hover {
    opacity: 0.8 !important;
    transform: scale(1.1);
}

/* Slider navigation buttons */
.slider-container button {
    transition: all 0.3s ease;
}

.slider-container button:hover {
    background-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

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

/* Gallery Filter Buttons */
.gallery-filter {
    transition: all 0.3s ease;
}

.gallery-filter.active {
    background-color: #059669 !important;
    color: white !important;
}

/* Gallery Items */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Button Hover Effects */
.btn-hover-scale {
    transition: transform 0.2s ease;
}

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

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

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

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Modal Backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .text-responsive {
        font-size: 0.875rem;
    }
    
    /* Mobile slider adjustments */
    .slide h1 {
        font-size: 2.5rem !important;
    }
    
    .slide p {
        font-size: 1.125rem !important;
    }
    
    .slider-container button {
        padding: 0.5rem !important;
    }
    
    .slider-container button i {
        font-size: 1rem !important;
    }
}

@media (max-width: 640px) {
    .slide h1 {
        font-size: 2rem !important;
    }
    
    .slide p {
        font-size: 1rem !important;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .whatsapp-float {
        display: none !important;
    }
    
    .slider-container {
        display: none !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #ffffff;
    }
    
    .text-gray-600 {
        color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slide {
        transition: none !important;
    }
    
    .slider-dot {
        transition: none !important;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Lazy loading placeholder */
.lazy-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Currency button styles */
.currency-btn {
    transition: all 0.3s ease;
}

.currency-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Success message styles */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    animation: fade-in 0.5s ease-out;
}

/* Error message styles */
.error-message {
    background-color: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    animation: fade-in 0.5s ease-out;
}

/* Admin dashboard specific styles */
.admin-section {
    min-height: 500px;
}

.nav-btn.active {
    background-color: #374151;
    border-bottom: 3px solid #1e40af;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    max-height: 300px;
    opacity: 1;
}

#mobile-menu.hide {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Slider text animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.slide.active h1 {
    animation: slideInFromLeft 1s ease-out 0.3s both;
}

.slide.active p {
    animation: slideInFromRight 1s ease-out 0.6s both;
}

.slide.active .flex {
    animation: slideInFromBottom 1s ease-out 0.9s both;
}

/* Slider overlay gradient */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(30, 64, 175, 0.3) 0%,
        rgba(5, 150, 105, 0.3) 50%,
        rgba(234, 88, 12, 0.3) 100%
    );
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active::before {
    opacity: 1;
}

/* Enhanced button styles for slider */
.slide button,
.slide a {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide button:hover,
.slide a:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}