/* ===== Events Page Styles ===== */
.events-hero {
    background: linear-gradient(135deg, #45B7D1 0%, #2C3E50 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.events-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.events-hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Filter Bar */
.events-filter-bar {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.events-filter-bar input[type="text"],
.events-filter-bar select {
    flex: 1;
    min-width: 200px;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.events-filter-bar input[type="text"]:focus,
.events-filter-bar select:focus {
    border-color: #45B7D1;
    outline: none;
}

.events-filter-bar .btn-filter {
    padding: 12px 30px;
    background: #45B7D1;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.events-filter-bar .btn-filter:hover {
    background: #3a9db8;
    transform: translateY(-2px);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.event-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    position: relative;
}

.event-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF9500;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.event-card-date {
    position: absolute;
    bottom: -25px;
    left: 20px;
    background: white;
    width: 60px;
    height: 70px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.event-card-date .day {
    font-size: 28px;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1;
}

.event-card-date .month {
    font-size: 13px;
    color: #45B7D1;
    font-weight: 600;
    text-transform: uppercase;
}

.event-card-content {
    padding: 35px 20px 20px;
}

.event-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.event-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.event-card-title a:hover {
    color: #45B7D1;
}

.event-card-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.event-meta-item i {
    color: #45B7D1;
    font-size: 16px;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.event-price {
    font-size: 24px;
    font-weight: 700;
    color: #2C3E50;
}

.event-price-currency {
    font-size: 16px;
    color: #666;
}

.event-btn {
    padding: 10px 25px;
    background: #45B7D1;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.event-btn:hover {
    background: #3a9db8;
    transform: translateY(-2px);
}

.event-btn-full {
    background: #95a5a6;
    cursor: not-allowed;
}

.event-btn-full:hover {
    transform: none;
}

/* Event Status Labels */
.event-status-cancelled {
    opacity: 0.6;
    position: relative;
}

.event-status-cancelled::after {
    content: 'ملغي';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 10px 40px;
    font-size: 24px;
    font-weight: 700;
    border-radius: 10px;
    z-index: 100;
}

/* Empty State */
.events-empty {
    text-align: center;
    padding: 80px 20px;
}

.events-empty i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.events-empty h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.events-empty p {
    color: #999;
    font-size: 16px;
}

/* Pagination */
.events-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.events-pagination a,
.events-pagination span {
    padding: 10px 18px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #2C3E50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.events-pagination a:hover {
    background: #45B7D1;
    color: white;
    border-color: #45B7D1;
}

.events-pagination .active {
    background: #45B7D1;
    color: white;
    border-color: #45B7D1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-hero h1 {
        font-size: 32px;
    }
    
    .events-hero p {
        font-size: 16px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .events-filter-bar {
        flex-direction: column;
    }
    
    .events-filter-bar input[type="text"],
    .events-filter-bar select,
    .events-filter-bar .btn-filter {
        width: 100%;
    }
    
    .event-card-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .events-hero {
        padding: 50px 15px;
    }
    
    .events-container {
        padding: 20px 10px;
    }
    
    .event-card-content {
        padding: 30px 15px 15px;
    }
}
