/* Genel Ayarlar */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #333;
    font-weight: 600;
}

a {
    color: #d9534f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section {
    padding: 60px 0;
    text-align: center;
}

/* --- Hero Section (Açılış Videosu) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.intro-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    background-size: cover;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.4); /* Hafif karartma */
    padding: 30px 50px;
    border-radius: 10px;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: white;
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.mute-toggle {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mute-toggle:hover {
    background-color: #c9302c;
}

/* --- Zaman Çizelgesi --- */
.timeline-section {
    background-color: #fff;
    padding: 80px 20px;
    position: relative;
}

.timeline-section h2 {
    font-size: 2.5em;
    margin-bottom: 60px;
    color: #444;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #ddd;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-bottom: 40px;
    width: 100%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-date {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #d9534f;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    z-index: 1;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.timeline-item:nth-child(even) .timeline-date {
    transform: translate(-50%, -50%); /* Ortada kalmasını sağlar */
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 45%;
    text-align: left;
    position: relative;
    border-left: 5px solid #d9534f;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 5px solid #d9534f;
}

.timeline-content h3 {
    margin-top: 0;
    color: #d9534f;
    font-size: 1.6em;
}

.timeline-content p {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

.timeline-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.detail-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.detail-button:hover {
    background-color: #0056b3;
}

/* --- Kahramanlar Köşesi --- */
.heroes-section {
    background-color: #f0f0f0;
    padding: 80px 20px;
}

.heroes-section h2 {
    font-size: 2.5em;
    margin-bottom: 60px;
    color: #444;
}

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #d9534f;
}

.hero-card h3 {
    color: #d9534f;
    font-size: 1.8em;
    margin-bottom: 5px;
}

.hero-card p {
    color: #666;
    font-size: 1em;
    margin-bottom: 20px;
}

.hero-detail-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.hero-detail-button:hover {
    background-color: #218838;
}

/* --- Modallar --- */
.modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed; /* Ekranı kaplar */
    z-index: 1000; /* Diğer her şeyin üzerinde */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* İçerik taşarsa kaydırma çubuğu */
    background-color: rgba(0, 0, 0, 0.7); /* Yarı şeffaf siyah arka plan */
    justify-content: center; /* İçeriği dikey ve yatayda ortala */
    align-items: center;
    padding: 20px; /* İçerik kenarlara yapışmasın */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s ease-out; /* Giriş animasyonu */
    text-align: left;
    max-height: 90vh; /* Modal içeriğinin ekranı aşmasını engelle */
    overflow-y: auto; /* Gerekirse modal içinde kaydırma çubuğu */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    color: #d9534f;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2em;
}

.modal-content p {
    font-size: 1.1em;
    color: #444;
    line-height: 1.8;
    text-align: justify;
}


/* --- İnteraktif Harita --- */
.map-section {
    padding: 80px 20px;
    background-color: #f0f0f0;
    text-align: center;
}

.map-section h2 {
    font-size: 2.5em;
    margin-bottom: 60px;
    color: #444;
}

/* iframe için yeni kapsayıcı */
.canakkale-map-iframe-container {
    width: 100%;
    height: 600px; /* Haritanın yüksekliğini buradan ayarlayabilirsin */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0px auto 0; /* Üstteki 40px'i 0'a düşürdüm çakışmasın diye */
    max-width: 1200px;
    overflow: hidden; /* iframe kenarlarının yuvarlak görünmesi için */
}

.canakkale-map-iframe-container iframe {
    border: none; /* iframe varsayılan çerçevesini kaldırır */
}


/* --- Responsive Düzenlemeler --- */
@media (max-width: 992px) {
    .timeline-container::before {
        left: 20px;
        transform: translateX(0);
    }
    .timeline-item {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
    }
    .timeline-date {
        position: relative;
        left: 0;
        transform: none;
        margin-bottom: 10px;
        top: auto;
        left: 20px; /* Çizgi ile hizala */
        transform: translateX(-50%);
    }
    .timeline-content {
        width: calc(100% - 60px); /* Tarih bloğu genişliğine göre ayarla */
        margin-left: 60px; /* Tarih bloğuna boşluk bırak */
        border-left: 5px solid #d9534f;
        border-right: none;
    }
    .timeline-item:nth-child(even) .timeline-content {
        border-left: 5px solid #d9534f;
        border-right: none;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.2em;
    }

    section {
        padding: 40px 15px;
    }

    .timeline-section h2,
    .heroes-section h2,
    .map-section h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .timeline-date {
        width: 80px;
        height: 80px;
        font-size: 0.9em;
    }

    .timeline-content {
        padding: 20px;
        font-size: 0.95em;
    }

    .heroes-grid {
        grid-template-columns: 1fr; /* Tek sütun */
    }

    .hero-card {
        padding: 20px;
    }

    .hero-card h3 {
        font-size: 1.5em;
    }

    .hero-card img {
        width: 120px;
        height: 120px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 1.8em;
    }

    .modal-content p {
        font-size: 1em;
    }

    .canakkale-map-iframe-container {
        height: 400px; /* Küçük ekranlarda harita yüksekliği */
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .hero-overlay {
        padding: 20px;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
    }
    .timeline-date {
        left: 15px; /* Daha küçük ekranlarda çizgiye yakınlaştır */
    }
}