/* Custom styles beyond Tailwind */

/* Transitions for Swup.js */
.transition-fade {
    transition: opacity 0.2s;
    opacity: 1;
}

html.is-animating .transition-fade {
    opacity: 0;
}

body.is-changing {
    cursor: wait;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c4b5fd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

/* Glass effect cards */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease forwards;
}

/* Improvements for images */
.image-hover {
    transition: transform 0.3s ease;
}

.image-hover:hover {
    transform: scale(1.05);
}

/* Typography improvements */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #8b5cf6, #ec4899);
}

.text-shadow {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  }

/* Custom focus styles for accessibility */
.focus-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5);
}

/* Responsive image grid for galleries */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* Enhanced card hover effects */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Custom badge styling */
.badge-premium {
    background: linear-gradient(135deg, #f9a8d4, #c084fc);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Pagination enhancements */
.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pagination-item:hover {
    background-color: #f3f4f6;
}

.pagination-item.active {
    background-color: #8b5cf6;
    color: white;
}

/* Helper for centering absolutely positioned elements */
.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Authentication form enhancements */
.auth-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Form input enhancements */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Flash message styling */
.flash-message {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.ph-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Business card grid improvements */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile menu animation */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.show {
    transform: translateY(0);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Accessibility improvements */
.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;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hover-card:hover {
        border: 2px solid currentColor;
    }
}





/* Review-specific styles */
.star-button {
    transition: all 0.2s ease;
}

.star-button:hover {
    transform: scale(1.1);
}

.review-card {
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Rating distribution bars */
.rating-bar {
    transition: width 0.5s ease;
}

/* Helpful button animation */
.helpful-button {
    transition: all 0.2s ease;
}

.helpful-button:hover {
    transform: translateY(-1px);
}

/* Review form styles */
.review-form {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Star rating hover effect */
.star-rating {
    cursor: pointer;
}

.star-rating .star {
    transition: all 0.1s ease;
}

.star-rating:hover .star {
    transform: scale(1.05);
}

/* Review loading skeleton */
.review-skeleton {
    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;
    }
}