/* 
 * Etkinlik Takvimi Kartları - Afiş Stili
 * Bu dosya, etkinlik takvimindeki kartların afiş görünümünde olmasını sağlar
 * Tarih: <?php echo date('Y-m-d'); ?>
 */

/*********************************
 * MASAÜSTÜ GÖRÜNÜM AYARLARI
 *********************************/

/* Başlık ve link için düzenlemeler */
.etkinlik-takvimi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    position: relative;
    border-bottom: 2px solid rgba(25, 118, 210, 0.1);
    padding-bottom: 12px;
}

.etkinlik-takvimi-baslik {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    color: #090c0f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 12px;
    border-left: 4px solid #1976d2;
}

/* Tüm etkinlikleri görüntüle linki */
.event-more-link {
    font-size: 1rem;
    color: #1976d2;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 12px;
    position: relative;
    z-index: 5;
    border-radius: 20px;
    border: 1px solid transparent;
}

.event-more-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.event-more-link:hover {
    color: #1565C0;
    background-color: rgba(25, 118, 210, 0.05);
    border-color: rgba(25, 118, 210, 0.2);
}

.event-more-link:hover i {
    transform: translateX(5px);
}

/* Etkinlik Sliderı */
.event-slider {
    position: relative;
    padding: 10px 0 30px;
    width: 100%;
    margin: 0 auto;
}

.slider-container {
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    padding: 10px 40px;
    position: relative;
}

/* Kartlar Grid Düzeni */
.performance-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    transition: transform 0.5s ease;
}

/* Ana Kart Stili */
.performance-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background: #fff;
    transform: translateY(0);
    margin: 0;
    border: 1px solid rgba(30, 136, 229, 0.05);
    height: 100%;
}

.performance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(30, 136, 229, 0.12);
    border-color: rgba(30, 136, 229, 0.2);
}

/* Kart İçi Resim ve İçerik Stilleri */
.card-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.performance-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.performance-card:hover .performance-image {
    transform: scale(1.07);
}

.card-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0) 70%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    transition: all 0.4s ease;
    opacity: 0;
}

.performance-card:hover .card-overlay {
    bottom: 0;
    opacity: 1;
}

.card-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    width: 100%;
}

.performance-card:hover .card-content {
    transform: translateY(0);
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-overlay-details {
    color: white;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    opacity: 0.9;
    transition: all 0.3s ease;
    background: rgba(25, 118, 210, 0.2);
    border: none;
    padding: 8px 15px;
    margin-top: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

.btn-overlay-details i {
    margin-left: 5px;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-overlay-details:hover {
    opacity: 1;
    color: white;
    background-color: rgba(25, 118, 210, 0.6);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-overlay-details:hover i {
    transform: translateX(4px);
}

/* Slider Butonları */
.slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.nav-arrow {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(25, 118, 210, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border: none;
    font-size: 1.2rem;
    pointer-events: auto;
}

.nav-arrow:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.nav-arrow:disabled {
    background-color: rgba(204, 204, 204, 0.8);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-arrow.prev-btn {
    left: 10px;
}

.nav-arrow.next-btn {
    right: 10px;
}

/* Performans kartlarına ekstra görsel detaylar ekleyelim */
.performance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(25, 118, 210, 0.05) 0%, rgba(30, 136, 229, 0) 70%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.performance-card:hover::before {
    opacity: 1;
}

/* İlk kart için özel stil */
.performance-card:first-child {
    /* border-left'i kaldırdık */
}

/*********************************
 * RESPONSIVE TABLET AYARLARI
 *********************************/
@media (max-width: 1200px) {
    .performance-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .performance-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-image-container {
        height: 200px;
    }
    
    .etkinlik-takvimi-baslik {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .performance-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .slider-container {
        padding: 5px 30px;
    }
    
    .card-image-container {
        height: 180px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .nav-arrow.prev-btn {
        left: 0;
    }
    
    .nav-arrow.next-btn {
        right: 0;
    }
}

/*********************************
 * MOBİL GÖRÜNÜM AYARLARI
 *********************************/
@media (max-width: 576px) {
    /* Etkinlik slider alanı için özel genişlik */
    .event-slider {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 5px 0 20px;
        overflow: hidden;
    }
    
    .slider-container {
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
        overflow: visible;
        position: relative;
    }
    
    /* Yatay kaydırmalı kartlar için - tamamen yeni yaklaşım */
    .performance-cards {
        display: flex;
        grid-template-columns: unset;
        overflow-x: auto;
        gap: 8px;
        padding: 5px 0;
        margin: 0;
        width: 100%;
        position: relative;
        -webkit-overflow-scrolling: touch;
        
        /* Snap özelliklerini kaldırıyoruz */
        scroll-snap-type: none;
        scroll-behavior: auto;
    }
    
    /* Mobil kart görünümü */
    .performance-card {
        flex: 0 0 75%;
        min-width: 75%;
        max-width: 75%;
        height: 300px;
        margin-right: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        border: 1px solid rgba(25, 118, 210, 0.1);
        border-radius: 12px;
        background: #fff;
        
        /* Scroll snap özelliklerini kaldırıyoruz */
        scroll-snap-align: none;
    }
    
    /* İlk kart için özel stil - her zaman görünmesi için */
    .performance-card:first-child {
        margin-left: 15px;
    }
    
    /* Son kart için özel stil */
    .performance-card:last-child {
        margin-right: 15px;
    }
    
    /* Resim ve içerik stilleri */
    .card-image-container {
        height: 100%;
    }
    
    .performance-image {
        transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }
    
    .performance-card:hover .performance-image {
        transform: scale(1.1) translateY(-5px);
    }
    
    /* Hover overlay efekti */
    .card-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, 
            rgba(0, 0, 0, 0.85) 0%, 
            rgba(0, 0, 0, 0.65) 30%, 
            rgba(0, 0, 0, 0) 70%);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        transform: translateY(20px);
    }
    
    .performance-card:hover .card-overlay {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Kart içeriği */
    .card-content {
        transform: translateY(15px);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0.1s;
    }
    
    .performance-card:hover .card-content {
        transform: translateY(0);
        opacity: 1;
    }
    
    .card-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
        font-weight: 700;
    }
    
    .btn-overlay-details {
        font-size: 0.9rem;
        padding: 8px 18px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    /* Başlık ve link stilleri */
    .etkinlik-takvimi-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 25px;
        flex-wrap: nowrap;
        position: relative;
        z-index: 20;
        border-bottom: 1px solid rgba(25, 118, 210, 0.1);
        padding: 0 15px 10px;
    }
    
    .etkinlik-takvimi-baslik {
        font-size: 16px !important;
        font-weight: 700;
        margin: 0;
        flex: 1;
        position: relative;
        left: 0;
        top: 0;
        z-index: 2;
        background: none;
        padding-left: 10px;
        border-left: 3px solid #1976d2;
        border-radius: 0;
        color: #1d1d1d;
        text-shadow: none;
        box-shadow: none;
    }
    
    .event-more-link {
        font-size: 0.8rem !important;
        padding: 5px 10px;
        display: block;
        text-align: right;
        white-space: nowrap;
        position: relative;
        font-weight: 600;
        right: 0;
        top: 0;
        z-index: 20;
        background: none;
        border-radius: 15px;
        border: 1px solid rgba(25, 118, 210, 0.2);
        box-shadow: none;
        color: #1976d2 !important;
    }
    
    /* Mobilde ok butonları gizle */
    .slider-navigation {
        display: none !important;
    }
    
    /* İlk kartı her zaman göster */
    .performance-cards {
        padding-left: 15px;
        scroll-padding-left: 15px;
    }
    
    /* Butonların görünümünü iyileştir */
    .btn-overlay-details {
        padding: 6px 15px;
        border-radius: 20px;
        background: rgba(25, 118, 210, 0.3);
    }
    
    .btn-overlay-details:hover, 
    .btn-overlay-details:active {
        background: rgba(25, 118, 210, 0.7);
    }
}

/* Extra Small Cihazlar için ek düzenlemeler */
@media (max-width: 320px) {
    .etkinlik-takvimi-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .etkinlik-takvimi-baslik {
        margin-bottom: 5px;
    }
    
    .event-more-link {
        align-self: flex-end;
    }
} 