:root {
    --primary-color: #5B47ED;
    --primary-dark: #4839C7;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #E5E5E5;
    --background: #FFFFFF;
    --background-alt: #F8F9FA;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: var(--text-primary);
    background: var(--background-alt);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn, .menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.search-btn:hover, .menu-btn:hover {
    color: var(--text-primary);
}

.search-btn svg, .menu-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs-item a:hover {
    color: var(--primary-color);
}

.breadcrumbs-item.active {
    color: var(--text-primary);
}

.breadcrumbs-separator {
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    background: var(--background);
    padding: 48px 0;
    margin-bottom: 32px;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Filters */
.filters-section {
    background: var(--background);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background: var(--background);
    color: var(--text-primary);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.month-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.month-header {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Event Card */
.event-card {
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.event-date-badge svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.event-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-primary);
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.event-meta-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Event Detail Page */
.event-detail {
    max-width: 900px;
    margin: 0 auto;
}

.event-header {
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

.event-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-header-content {
    padding: 32px;
}

.event-category {
    display: inline-block;
    padding: 6px 12px;
    background: var(--background-alt);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.event-detail-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Event Details Grid */
.event-details-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
    margin-bottom: 48px;
}

.event-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Content Section */
.content-section {
    background: var(--background);
    padding: 32px;
    border-radius: 12px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Map Section */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.map-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.map-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.map-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Recurring Events */
.recurring-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--background-alt);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.recurring-badge svg {
    width: 16px;
    height: 16px;
}

.recurring-dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recurring-date-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--background-alt);
    border-radius: 8px;
    font-size: 14px;
}

.recurring-date-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--background);
    padding: 24px;
    border-radius: 12px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.widget-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.widget-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-list-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.widget-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-link:hover {
    color: var(--primary-color);
}

/* Calendar Widget */
.calendar-mini {
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-month {
    font-weight: 600;
    font-size: 16px;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.calendar-nav-btn:hover {
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
}

.calendar-day:hover {
    background: var(--background-alt);
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event {
    background: var(--background-alt);
    font-weight: 600;
    position: relative;
}

.calendar-day.has-event::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
}

.calendar-day.other-month {
    color: var(--text-light);
}

/* Related Events */
.related-events {
    margin-top: 48px;
}

.related-events-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
}

.related-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 12px;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15px;
    color: var(--text-primary);
}

.contact-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--background);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    border-radius: 6px;
}

.close-btn:hover {
    background: var(--background-alt);
}

.close-btn svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 24px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--background);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 71, 237, 0.1);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Verification Box */
.verification-box {
    background: #FFF3E0;
    border: 1px solid #FFE0B2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.verification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.verification-header svg {
    width: 24px;
    height: 24px;
    stroke: #F57C00;
}

.verification-title {
    font-weight: 600;
    color: #E65100;
    font-size: 16px;
}

.verification-description {
    font-size: 14px;
    color: #E65100;
    margin-bottom: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    background: var(--background);
    border-radius: 12px;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    stroke: var(--text-light);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state-description {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .event-details-grid {
        grid-template-columns: 1fr;
    }

    .event-sidebar {
        order: -1;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .related-events-grid {
        grid-template-columns: 1fr;
    }

    .event-detail-title {
        font-size: 28px;
    }

    .filters-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .event-hero-image {
        height: 250px;
    }

    .event-header-content {
        padding: 24px;
    }

    .content-section {
        padding: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 32px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .month-header {
        font-size: 20px;
    }

    .event-title {
        font-size: 18px;
    }

    .event-detail-title {
        font-size: 24px;
    }

    .modal-content {
        border-radius: 16px 16px 0 0;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
    display: none;
}