/**
 * Events in Britain - Main Styles
 * Premium Dark Theme
 * @package EventsInBritain
 */

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

/* Base styles */
html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2a3847;
}

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

.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;
}

/* Prose styling for event descriptions - Dark Theme */
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
}

.prose ul,
.prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: #b52922;
    text-decoration: underline;
}

.prose a:hover {
    color: #d63a32;
}

.prose blockquote {
    border-left: 4px solid #b52922;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

.prose img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Event card hover effects */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Filter group styling - Dark Theme */
.filter-group + .filter-group {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

/* Custom checkbox/radio styles - Dark Theme */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: #151e27;
    cursor: pointer;
    transition: all 0.15s ease;
}

input[type="checkbox"] {
    border-radius: 0.25rem;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: #b52922;
    border-color: #b52922;
}

input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
}

input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(181, 41, 34, 0.25);
}

/* Loading animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Skeleton loading - Dark Theme */
.skeleton {
    background: linear-gradient(90deg, #202b38 25%, #2a3847 50%, #202b38 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* Aspect ratio utilities */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    #sticky-cta,
    .share-section,
    .related-events,
    .filters-sidebar,
    button {
        display: none !important;
    }

    .prose {
        max-width: none;
    }

    a {
        text-decoration: none;
        color: inherit;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .event-card {
        border: 2px solid currentColor;
    }
}

/* Widget styles in footer - Dark Theme */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: white;
}

/* Navigation menu styles - Dark Theme */
.site-header .menu li a {
    display: block;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.site-header .menu li a:hover {
    color: #ffffff;
}

#mobile-menu .menu li a {
    display: block;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

#mobile-menu .menu li a:hover {
    color: #ffffff;
}

.menu li a {
    display: block;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.menu li a:hover {
    color: #b52922;
}

/* Search suggestions - Dark Theme */
#search-suggestions .suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.15s ease;
}

#search-suggestions .suggestion-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

/* Sticky header shadow on scroll - Dark Theme */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form focus styles - Dark Theme */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(181, 41, 34, 0.25);
    border-color: #b52922;
}

/* Button styles - Dark Theme */
.btn-primary {
    background-color: #b52922;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #9a231d;
}

.btn-secondary {
    background-color: #202b38;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #2a3847;
    color: #ffffff;
}
