/*
 * Zirve alt sayfalarının kart stilleri.
 *
 * Bu kurallar Blade'de her sayfanın kendi @section('styles') bloğunda
 * duruyordu; ancak summit layout'unda @yield('styles') hiç yok, dolayısıyla
 * canlıda hiçbir zaman basılmıyorlar — konuşmacı ve sunum kartları stilsiz
 * render oluyor. Kaynaktaki asıl tasarım burada toplanıp gerçekten yükleniyor.
 */

@keyframes summitCardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Konuşmacı listesi ---------- */

.speaker-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
    aspect-ratio: 300 / 400;
    cursor: default;
    border: 2px solid transparent;
    opacity: 0;
    animation: summitCardEntrance 0.6s ease forwards;
}

.speaker-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.speaker-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
}

.speaker-hover-overlay {
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(var(--primary-color-rgb), 0.2);
    transition: all 0.3s ease;
    bottom: 0;
    left: 0;
}

.speaker-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.speaker-card:hover .speaker-hover-overlay {
    width: 100%;
    height: 100%;
    bottom: auto;
    left: auto;
    top: 0;
    right: 0;
}

.speaker-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.speaker-title {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Kart tıklanabilir olduğunda bağlantı metnini taşımasın */
a.speaker-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ---------- Konuşmacı detayı ---------- */

.speaker-detail-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    opacity: 0;
    animation: summitCardEntrance 0.6s ease forwards;
}

.speaker-image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.speaker-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-right: 3px solid var(--primary-color);
}

.speaker-info {
    padding: 30px;
    position: relative;
}

.speaker-detail-card .speaker-name {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.speaker-detail-card .speaker-title {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
    position: relative;
    padding-left: 30px;
    opacity: 1;
}

.speaker-detail-card .speaker-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
}

.speaker-bio {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    color: #444;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 15px;
}

@media (max-width: 768px) {
    .speaker-image-wrapper {
        height: 300px;
    }

    .speaker-main-image {
        border-right: none;
        border-bottom: 3px solid var(--primary-color);
    }

    .speaker-detail-card .speaker-name {
        font-size: 1.8rem;
    }

    .speaker-detail-card .speaker-title {
        font-size: 1rem;
    }
}

/* ---------- Sunumlar ---------- */

.presentation-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: white;
    opacity: 0;
    animation: summitCardEntrance 0.6s ease forwards;
}

.presentation-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.presenter-name {
    font-size: 1.4rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.document-container {
    position: relative;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.download-button {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.presentation-card:hover .download-button {
    opacity: 1;
    bottom: -15px;
    right: -15px;
}

.download-icon {
    color: white;
    font-size: 1.5rem;
}

/* Hareket azaltma tercihi: girişler anında tamamlansın */
@media (prefers-reduced-motion: reduce) {
    .speaker-card,
    .speaker-detail-card,
    .presentation-card {
        animation: none;
        opacity: 1;
    }
}
