/* Events Page Styles */

.events-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.events-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.events-hero .hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.events-filter-section {
    padding: 30px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.filter-controls {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

.filter-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.events-listing-section {
    padding: 60px 0;
    min-height: 500px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

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

.event-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.event-card-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.event-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card-meta-item svg {
    width: 16px;
    height: 16px;
    fill: #667eea;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.event-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
}

.event-card-price .currency {
    font-size: 0.9rem;
    margin-right: 3px;
}

.event-card-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}

.event-card-btn {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.event-card-btn:hover {
    background: #5568d3;
}

.loading-state,
.error-state,
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.error-state p {
    color: #e74c3c;
    margin-bottom: 20px;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Event Detail Page Styles */
.event-detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.event-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.event-detail-hero .container {
    position: relative;
    z-index: 2;
}

.event-detail-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 40px;
}

.event-detail-main {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.event-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.event-detail-description {
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.event-detail-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
}

.ticket-purchase-panel {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.ticket-purchase-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.ticket-option {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.ticket-option:hover {
    border-color: #667eea;
}

.ticket-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.ticket-option-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.ticket-option-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.ticket-option-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

.ticket-option-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.ticket-option-availability {
    font-size: 0.85rem;
    color: #666;
}

.ticket-option-availability.sold-out {
    color: #e74c3c;
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.quantity-selector label {
    font-weight: 500;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #ddd;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.total-price-label {
    font-weight: 600;
    color: #333;
}

.total-price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.purchase-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn-purchase {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.btn-purchase:hover {
    background: #5568d3;
}

.btn-purchase:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 968px) {
    .event-detail-content {
        grid-template-columns: 1fr;
    }

    .ticket-purchase-panel {
        position: static;
    }

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

