/* Etkinlikler Sayfası CSS */

/* Hero Section */
.hero-section, .bg-gradient-primary {
    /* Güzel bir gradyan geçişli arka plan rengi */
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    position: relative;
    /* Arka plan resmi - eğer yüklenmezse yukarıdaki gradyan görünecek */
    background-image: url('../img/campus-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: soft-light; /* Gradient ve resim daha iyi karışacak */
    padding: 60px 0 100px;
    overflow: hidden;
    /* Hafif gölge eklendi */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Metin stillerini iyileştirme */
.text-white-80 {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-section h1, .bg-gradient-primary h1 {
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Animasyonlu hero görseli */
.hero-image {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
    max-height: 400px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Tab'lı Arama Formu - İyileştirilmiş */
.search-form-tabs {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    z-index: 100;
    max-width: 100%;
}

.search-form-tabs .nav-tabs {
    border-bottom: none;
    background: linear-gradient(to right, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
    padding: 0;
}

.search-form-tabs .nav-link {
    color: #495057;
    font-weight: 600;
    border: none;
    padding: 15px;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    position: relative;
}

.search-form-tabs .nav-link.active {
    color: #2575fc;
    background-color: #fff;
    box-shadow: 0 -3px 0 #2575fc inset;
}

.search-form-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.search-form-tabs .nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.3);
    color: #2575fc;
}

.search-form-tabs .tab-content {
    background-color: #fff;
    padding: 25px;
}

.search-form-tabs .form-control,
.search-form-tabs .form-select {
    border: 1px solid #dce0e5;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    height: auto;
}

.search-form-tabs .form-control:focus,
.search-form-tabs .form-select:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 0.2rem rgba(37, 117, 252, 0.25);
}

.search-form-tabs .input-group-text {
    background-color: #f8f9fa;
    border-color: #dce0e5;
    padding: 12px 15px;
}

.search-form-tabs .btn-primary {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-form-tabs .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5a0cb2 0%, #1a65e7 100%);
}

/* Dalga efekti */
.wave-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.wave-container svg {
    /* Dalga gölgesi */
    filter: drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1));
}

/* Category Navbar */
.category-navbar {
    z-index: 999;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: #fff;
}

.category-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.category-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    text-decoration: none;
    color: #6c757d;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.category-item.active {
    background-color: #f0f5ff;
    color: #007bff;
    font-weight: 500;
}

.category-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Kategori filtreleri (Tümü, Konferans, Seminer, Toplantı) */
.event-categories {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.event-categories .category-btn {
    padding: 8px 16px;
    border-radius: 50px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.event-categories .category-btn:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

.event-categories .category-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.event-categories .category-btn i {
    margin-right: 8px;
    font-size: 14px;
}

/* Featured Events */
.featured-section {
    padding: 40px 0;
    background-color: #fff;
}

.featured-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #fff;
    height: 400px;
}

.featured-image {
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.featured-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.featured-description {
    color: #6c757d;
    flex-grow: 1;
}

.featured-stats {
    color: #6c757d;
    font-size: 0.875rem;
}

.featured-details i {
    color: #007bff;
}

.featured-carousel .carousel-control-prev,
.featured-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.featured-carousel .carousel-control-prev-icon,
.featured-carousel .carousel-control-next-icon {
    filter: invert(1) grayscale(100%);
}

.featured-carousel .carousel-control-prev {
    left: 15px;
}

.featured-carousel .carousel-control-next {
    right: 15px;
}

.featured-carousel .carousel-indicators {
    bottom: -20px;
}

.featured-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dee2e6;
    opacity: 0.5;
}

.featured-carousel .carousel-indicators button.active {
    background-color: #007bff;
    opacity: 1;
}

/* Event Cards */
.event-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.event-card-image {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Kategori badge - Resmin üstünde */
.event-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    padding: 8px 16px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.event-card:hover .event-category-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 5;
}

/* Tarih kutusu düzeltmesi */
.event-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: auto;
    height: auto;
    z-index: 10;
    display: inline-block;
}

.event-date-badge.list-view {
    top: 10px;
    right: 10px;
}

.event-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #343a40;
}

.event-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 500;
}

.event-title {
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #212529;
}

.event-card-content {
    display: flex;
    flex-direction: column;
    height: calc(50% - 180px);
}

.event-details i {
    color: #007bff;
}

.event-capacity {
    margin-top: auto;
    margin-bottom: 15px;
}

/* Recommendations Section */
.recommendations-section {
    background-color: #f8f9fa;
    padding: 40px 0;
}

/* Horizontal Event Cards */
.event-card-horizontal {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background-color: #fff;
}

.event-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.event-card-horizontal .event-card-image {
    height: 100%;
    position: relative;
}

.event-card-horizontal .event-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* List View */
.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

.view-options {
    margin-left: 15px;
}

.view-options .btn-group .btn {
    padding: 0.375rem 0.75rem;
}

.event-list-item .card {
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.event-list-item .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.event-list-item .card-body {
    padding: 20px;
}

.event-list-item .card-title {
    font-weight: 600;
    color: #212529;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0069d9;
    color: white;
    transform: translateY(-3px);
}

/* Ek CSS Renk Sınıfları (Etkinlik türleri için) */
.bg-primary {
    background-color: #007bff;
}

.bg-success {
    background-color: #28a745;
}

.bg-danger {
    background-color: #dc3545;
}

.bg-warning {
    background-color: #ffc107;
}

.bg-info {
    background-color: #17a2b8;
}

.bg-dark {
    background-color: #343a40;
}

.bg-secondary {
    background-color: #6c757d;
}

.bg-indigo {
    background-color: #6610f2;
}

.bg-purple {
    background-color: #6f42c1;
}

.bg-pink {
    background-color: #e83e8c;
}

.bg-orange {
    background-color: #fd7e14;
}

.bg-teal {
    background-color: #20c997;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section, .bg-gradient-primary {
        text-align: center;
        padding: 40px 0 80px;
    }
    
    .hero-section h1, .bg-gradient-primary h1 {
        font-size: 2.2rem;
    }
    
    .search-form-tabs {
        margin-top: 20px;
    }
    
    .search-form-tabs .nav-link {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    .search-form-tabs .tab-content {
        padding: 15px;
    }
    
    .featured-item {
        height: auto;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .event-card-image {
        height: 240px;
    }
    
    .event-category-badge {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .event-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .event-categories .category-btn {
        flex-shrink: 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1, .bg-gradient-primary h1 {
        font-size: 2.5rem;
    }
    
    .search-form-tabs {
        max-width: 90%;
    }
}

@media (max-width: 575.98px) {
    .featured-item {
        height: auto;
    }
    
    .featured-image {
        height: 180px;
    }
    
    .featured-content {
        padding: 15px !important;
    }
    
    .featured-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .featured-description {
        display: none;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .event-card-image {
        height: 220px;
    }
}

/* Geri Sayım Bileşeni */
.countdown-container {
    margin-bottom: 0.75rem;
}

.countdown-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-badge.active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.countdown-badge i {
    color: #0ea5e9;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.countdown-badge.active i {
    color: #f59e0b;
}

.countdown-text {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.countdown-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 35px;
}

.countdown-item strong {
    color: #1e40af;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 700;
}

.countdown-badge.active .countdown-item strong {
    color: #92400e;
}

.countdown-item small {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: lowercase;
    margin-top: 2px;
}

.countdown-separator {
    color: #cbd5e1;
    font-weight: 600;
    margin: 0 2px;
}

.countdown-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}