/* MegaTicket Events Plugin Styles */
.megaticket-events-container {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Grid Layout Columns */
.megaticket-cols-1 { grid-template-columns: 1fr; }
.megaticket-cols-2 { grid-template-columns: repeat(2, 1fr); }
.megaticket-cols-3 { grid-template-columns: repeat(3, 1fr); }
.megaticket-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive Grid */
@media (max-width: 1024px) {
    .megaticket-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .megaticket-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .megaticket-cols-4,
    .megaticket-cols-3,
    .megaticket-cols-2 { grid-template-columns: 1fr; }
}

/* Event Card Styles */
.megaticket-event-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
}

.megaticket-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Event Image Container */
.megaticket-event-image {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.megaticket-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.megaticket-event-card:hover .megaticket-event-image img {
    transform: scale(1.05);
}

/* Category Chip */
.megaticket-category-chip {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #7CFC00;
    color: #000000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

/* Status Chip */
.megaticket-status-chip {
    position: absolute;
    top: 50px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
}

.megaticket-status-chip.postponed {
    background: #dc2626;
    color: white;
}

/* Event Content */
.megaticket-event-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 40%;
}

/* Event Header */
.megaticket-event-header {
    margin-bottom: 1rem;
}

.megaticket-event-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 8px;
}

.megaticket-event-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Event Footer */
.megaticket-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.megaticket-event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.megaticket-date-info,
.megaticket-location-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.megaticket-icon {
    font-size: 14px;
}

/* Button Styles */
.megaticket-button {
    background: #ff5a00;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.megaticket-button:hover {
    background: #e64a00;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* List Layout */
.megaticket-layout-list .megaticket-event-card {
    aspect-ratio: auto;
    flex-direction: row;
    height: 200px;
}

.megaticket-layout-list .megaticket-event-image {
    flex: 0 0 300px;
}

.megaticket-layout-list .megaticket-event-content {
    position: static;
    background: white;
    color: #333;
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
}

.megaticket-layout-list .megaticket-event-title {
    color: #333;
}

.megaticket-layout-list .megaticket-date-info,
.megaticket-layout-list .megaticket-location-info {
    color: #666;
}

.megaticket-layout-list .megaticket-event-date {
    color: #666;
}

/* Error and No Events Messages */
.megaticket-error,
.megaticket-no-events {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

.megaticket-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .megaticket-event-card {
        background: #1f2937;
    }
    
    .megaticket-layout-list .megaticket-event-content {
        background: #1f2937;
        color: #e5e7eb;
    }
    
    .megaticket-layout-list .megaticket-event-title {
        color: #e5e7eb;
    }
    
    .megaticket-layout-list .megaticket-date-info,
    .megaticket-layout-list .megaticket-location-info {
        color: #9ca3af;
    }
    
    .megaticket-layout-list .megaticket-event-date {
        color: #9ca3af;
    }
}

/* Loading Animation */
.megaticket-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.megaticket-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff5a00;
    border-radius: 50%;
    animation: megaticket-spin 1s linear infinite;
}

@keyframes megaticket-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Single Event Page Styles */
.megaticket-single-event {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.megaticket-event-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.megaticket-single-hero-image,
.megaticket-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.megaticket-event-carousel {
    position: relative;
    height: 100%;
}

.megaticket-carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.megaticket-carousel-image.active {
    opacity: 1;
}

.megaticket-event-details {
    padding: 2rem;
}

.megaticket-event-header {
    margin-bottom: 2rem;
    text-align: center;
}

.megaticket-single-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-family: inherit;
}

.megaticket-organizer-name {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-family: inherit;
}

.megaticket-info-cards {
    margin-bottom: 2rem;
}

.megaticket-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.megaticket-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.megaticket-info-item .megaticket-icon {
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.megaticket-info-item div {
    flex: 1;
}

.megaticket-info-item strong {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-family: inherit;
}

.megaticket-info-item p {
    margin: 0;
    color: #666;
    line-height: 1.4;
}

.megaticket-event-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.megaticket-event-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff5a00;
    padding-bottom: 0.5rem;
    font-family: inherit;
}

.megaticket-event-content {
    color: #666;
    line-height: 1.6;
}

.megaticket-event-content p {
    margin-bottom: 1rem;
}

.megaticket-organizer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.megaticket-organizer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff5a00;
}

.megaticket-organizer-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
    font-family: inherit;
}

.megaticket-organizer-info p {
    margin: 0;
    color: #666;
}

.megaticket-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.megaticket-artist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.megaticket-artist-item:hover {
    transform: translateY(-2px);
}

.megaticket-artist-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff5a00;
}

.megaticket-artist-item span {
    font-weight: 500;
    color: #333;
    font-family: inherit;
}

.megaticket-event-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.megaticket-button-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 200px;
    font-family: inherit;
}



.megaticket-single-page-wrapper {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design for Single Event */
@media (max-width: 768px) {
    .megaticket-event-hero {
        height: 250px;
    }
    
    .megaticket-single-title {
        font-size: 2rem;
    }
    
    .megaticket-event-details {
        padding: 1rem;
    }
    
    .megaticket-info-card {
        padding: 1rem;
    }
    
    .megaticket-event-section {
        padding: 1rem;
    }
    
    .megaticket-artists-grid {
        grid-template-columns: 1fr;
    }
    
    .megaticket-organizer-info {
        flex-direction: column;
        text-align: center;
    }
    
    .megaticket-single-page-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .megaticket-button-large {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .megaticket-button-secondary {
        width: 100%;
        margin-left: 0;
    }
}

/* Dark Mode Support for Single Event */
@media (prefers-color-scheme: dark) {
    .megaticket-single-event {
        background: #1f2937;
    }
    
    .megaticket-single-title {
        color: #e5e7eb;
    }
    
    .megaticket-organizer-name {
        color: #9ca3af;
    }
    
    .megaticket-info-card {
        background: #374151;
    }
    
    .megaticket-info-item strong {
        color: #e5e7eb;
    }
    
    .megaticket-info-item p {
        color: #9ca3af;
    }
    
    .megaticket-event-section {
        background: #374151;
    }
    
    .megaticket-event-section h2 {
        color: #e5e7eb;
    }
    
    .megaticket-event-content {
        color: #9ca3af;
    }
    
    .megaticket-organizer-info h3 {
        color: #e5e7eb;
    }
    
    .megaticket-organizer-info p {
        color: #9ca3af;
    }
    
    .megaticket-artist-item {
        background: #1f2937;
    }
    
    .megaticket-artist-item span {
        color: #e5e7eb;
    }
}
