/* Events Page Specific Styles */

/* Hero Section */
.events-hero {
    background: url('events_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    color: white;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: white;
}

/* Enhanced Search Bar */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    border-radius: 12px;
    background: transparent;
    color: var(--text-dark);
}

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

.search-btn {
    background: var(--primary-blue);
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

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

.search-icon {
    font-size: 1.2rem;
}

/* Enhanced Filters Section */
.filters-section {
    background: var(--background-light);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filters-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.filters-toggle {
    display: none;
    background: white;
    border: 2px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}

.filters-toggle:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.filters-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.filters-content {
    transition: all 0.3s ease;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    position: relative;
}

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

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="m0 1 2 2 2-2z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.filter-select:hover {
    border-color: var(--primary-blue);
}

/* Advanced Filters */
.advanced-filters {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: none;
}

.advanced-filters.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.advanced-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.advanced-filters-title {
    font-weight: 600;
    color: var(--text-dark);
}

.toggle-advanced {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.toggle-advanced:hover {
    background: var(--button-hover);
}

.price-range-container {
    margin: 1rem 0;
}

.price-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    appearance: none;
}

.price-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.results-count {
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.clear-filters:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* Sort Options */
.sort-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-label {
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Events Section */
.events-section {
    padding: 60px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Enhanced Event Cards */
.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

.event-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
    backdrop-filter: blur(10px);
}

.event-emoji {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.event-price-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success-green);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.event-price-tag.free {
    background: var(--primary-red);
}

.favorite-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.favorite-btn.active .heart {
    color: var(--primary-red);
}

.heart {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.event-content {
    padding: 24px;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

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

.event-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.event-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.event-venue {
    font-weight: 500;
    color: var(--text-dark);
}

.event-capacity {
    color: var(--text-light);
}

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

.event-actions .btn {
    flex: 1;
}

.event-actions .btn-primary {
    flex: 2;
}

/* Enhanced Share Modal */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.share-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.share-modal {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.share-modal-overlay.show .share-modal {
    transform: translateY(0) scale(1);
}

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

.share-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.share-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-close-btn:hover {
    background: var(--background-light);
    color: var(--text-dark);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.share-option:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-option-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.share-option-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.share-link-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.share-link-header {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.share-link-container {
    display: flex;
    gap: 8px;
}

.share-link-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9rem;
    background: var(--background-light);
    color: var(--text-dark);
}

.copy-link-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-link-btn:hover {
    background: var(--button-hover);
}

.copy-link-btn.copied {
    background: var(--success-green);
}

/* QR Code Section */
.qr-code-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.qr-code-header {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    margin-bottom: 16px;
}

.load-more-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Events CTA */
.events-cta {
    background: var(--background-light);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.benefit-icon {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-hero {
        background-attachment: scroll;
        padding: 100px 0 60px;
    }
    
    .events-hero::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .sort-section {
        order: 2;
    }
    
    .filters-toggle {
        display: flex;
        order: 1;
    }
    
    .filters-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }
    
    .filters-content.active {
        max-height: 800px;
        opacity: 1;
        margin-top: 1rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-action-buttons {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .share-modal {
        padding: 24px;
        margin: 20px;
    }
    
    .share-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .events-hero {
        padding: 80px 0 50px;
    }
    
    .events-hero::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
    }
    
    .hero-title {
        font-size: 2rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    }
    
    .hero-title .gradient-text {
        filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.9));
    }
    
    .hero-subtitle {
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .search-input {
        padding: 12px 16px;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .sort-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .event-card {
        border: 2px solid var(--text-dark);
    }
    
    .filter-select {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .event-card:hover {
        transform: none;
    }
    
    .share-option:hover {
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 