/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9; /* Sayfa genel arka planı */
    margin: 0;
    padding: 20px;
}

/* Modal'ı Tetikleyen Buton Tasarımı */
.open-modal-btn {
    background-color: #dc3545; /* YouTube kırmızısı */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.open-modal-btn:hover {
    background-color: #c82333;
}

/* --- MODAL YAPISI (POPUP) --- */

/* Modal Arka Planı (Overlay) */
.modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Arka plan karartma */
    align-items: center;
    justify-content: center;
}

/* Modal İçeriği (Kutu) */
.modal-content {
    background-color: #2c2c3e;
    margin: auto;
    padding: 20px;
    border: 1px solid #444;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    /* Flexbox ile dikey ortalama için modal'a display:flex verdiğimizde burası ayarlanır */
}

/* Kapatma Butonu (X) */
.close-btn {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 15px;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover,
.close-btn:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

/* Video Başlığı */
.video-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #fff;
    padding-right: 20px; /* X butonu ile çakışmaması için */
}

/* Responsive Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Oranı */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}