/* Etkinlik Detay Sayfası Stilleri - Final Versiyon */

/* Hero Bölümü */
.event-hero {
    position: relative;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 50px;
    padding: 80px 0 140px; /* Üst ve alt padding */
}

.event-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 5;
    text-align: center;
}

/* Etiket (badge) için yeni stil */
.event-short-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 12px 15px;
    border-radius: 8px;
    margin: 25px auto 0;
    max-width: 700px;
    position: relative;
    z-index: 5;
}

.event-short-info .badge {
    padding: 6px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.event-short-info .info-item {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 0.95rem;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

.event-short-info span i {
    margin-right: 8px;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.countdown-timer {
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f9fa;
}


/* Durum etiketleri */
.event-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 10px;
}


.event-badge i {
    margin-right: 0.5rem;
}

.event-ended {
    background-color: #6c757d;
    color: white;
}

.event-ongoing {
    background-color: #0d6efd;
    color: white;
}

.event-upcoming {
    background-color: #198754;
    color: white;
}

/* Katılım kartı */
.event-action-card {
    position: relative;
    z-index: 50;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    color: #333;
    text-shadow: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.event-action-card button,
.event-action-card a {
    position: relative;
    z-index: 51;
    cursor: pointer;
    pointer-events: auto;
}

/* Giriş Butonu */
.entry-button {
    margin-top: 15px;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.entry-button a.btn-success {
    position: relative;
    z-index: 52; /* Daha yüksek z-index */
    transition: all 0.3s ease;
}

.entry-button a.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Dalga efekti */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

/* Event Details */
.event-details {
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    margin-bottom: 1.5rem;
    background-color: #fff;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem 1.5rem;
}

.card-header h4 {
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.card-body {
    padding: 1.5rem;
}

.event-description {
    line-height: 1.7;
}

/* Timeline Styles */
.timeline {
    position: relative;
    margin: 0;
    padding: 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item-marker {
    position: absolute;
    top: 3px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #007bff;
    box-shadow: 0 0 0 2px #e9ecef;
    z-index: 1;
}

.timeline-item-time {
    display: inline-block;
    padding: 2px 10px;
    background: #f8f9fa;
    border-radius: 3px;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.timeline-item-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-item-description {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Register Card */
.event-register-card {
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

/* Social Share */
.social-share {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Similar Events */
.similar-events {
    position: relative;
    padding: 60px 0;
    margin-top: 30px;
    background-color: #f8f9fa;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

.section-title i {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Certificate Info */
.certificate-info {
    border-left: 4px solid #ffc107;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .event-title {
        font-size: 2rem;
    }
    
    .event-short-info {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .event-action-card {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .event-hero {
        padding: 60px 0 100px;
    }
    
    .event-title {
        font-size: 1.75rem;
    }
    
    .event-details {
        margin-top: -40px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Doluluk göstergesi renkleri */
.progress-bar.bg-success {
    background-color: #28a745 !important;
}

.progress-bar.bg-info {
    background-color: #17a2b8 !important;
}

.progress-bar.bg-warning {
    background-color: #ffc107 !important;
}

.progress-bar.bg-danger {
    background-color: #dc3545 !important;
}

/* Venue Info */
.venue-features .col-md-6 {
    margin-bottom: 8px;
}

/* Etkinlik Görselleri için CSS */
.event-images .card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-images .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.event-images .card-body {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-images img {
    max-height: 200px;
    object-fit: contain;
}

/* Özel Tam Ekran Görüntüleyici */
.fullscreen-viewer {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
}

.fullscreen-content {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.close-viewer {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

#fullscreen-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}

.viewer-controls {
    margin-top: 15px;
}

@media (max-width: 767px) {
    .event-images .card-body {
        height: 180px;
    }
    
    .event-images img {
        max-height: 160px;
    }
}

/* Geliştirilmiş Görsel Görüntüleyici Stilleri */
.fullscreen-viewer {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 20px;
}

.fullscreen-content {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.viewer-frame {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.viewer-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viewer-header h4 {
    margin: 0;
    color: #212529;
    font-weight: 500;
}

.close-viewer {
    color: #6c757d;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-viewer:hover {
    color: #dc3545;
}

.viewer-body {
    padding: 20px;
    background-color: #000;
    text-align: center;
    overflow: auto;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70vh;
}

#fullscreen-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.viewer-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Mobil uyumluluk */
@media (max-width: 767px) {
    .viewer-frame {
        width: 95%;
    }
    
    .viewer-header {
        padding: 10px 15px;
    }
    
    .viewer-body {
        padding: 10px;
    }
    
    .viewer-footer {
        padding: 10px 15px;
    }
}