/**
 * Yel Değirmenleri Yarışması - Ortak Stiller
 * Header, footer, body BG - index ve sayfa için
 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; overflow-x: hidden; }
body.yd-page {
    font-family: 'Roboto', sans-serif;
    background: url('../images/bg.jpg') center center no-repeat fixed;
    background-size: cover;
    background-position: center 88%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
@media (max-width: 991.98px) {
    body.yd-page {
        background-image: url('../images/bg-mobil.jpg');
        background-position: 55% 82%;
    }
}

/* Header */
.yd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.yd-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
}
.yd-logo { height: 110px; width: auto; object-fit: contain; }
.yd-brand-text {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}
.yd-brand-text span { display: block; }
.yd-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}
.yd-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}
.yd-nav a:hover { opacity: 0.9; }
.yd-nav .dropdown { position: relative; }
.yd-nav .dropdown-toggle { display: flex; align-items: center; gap: 0.25rem; }
.yd-nav .dropdown-toggle::after { content: '▾'; font-size: 0.7rem; }
.yd-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 0.5rem 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.yd-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}
.yd-nav .dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    white-space: nowrap;
}
.yd-nav .dropdown-menu a:hover { background: rgba(255,255,255,0.15); }
.yd-menu-btn {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
}
@media (max-width: 991.98px) {
    .yd-header { padding: 1rem; }
    .yd-logo { height: 80px; }
    .yd-menu-btn { display: block; }
    .yd-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(0,0,0,0.7);
        padding: 1rem;
        border-radius: 8px;
    }
    .yd-nav.open { display: flex; }
    .yd-nav a { text-align: left; }
    .yd-nav .dropdown-toggle { justify-content: flex-start; }
    .yd-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        padding-left: 1.25rem;
        margin-top: 0.25rem;
    }
    .yd-nav .dropdown-menu a { padding-left: 0; }
}

/* Footer - sayfa sonunda (fixed değil) */
.yd-footer {
    position: relative;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 100;
}
.yd-footer-logo { height: 36px; width: auto; object-fit: contain; }
.yd-footer-title {
    flex: 1;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}
@media (max-width: 991.98px) {
    .yd-footer {
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    .yd-footer-title { order: 1; width: 100%; font-size: 0.75rem; flex: none; }
    .yd-footer-logo { height: 28px; }
}

/* İçerik bölümü - alt sayfalar için */
.yd-content-wrap {
    padding: 12rem 2rem 3rem;
    flex: 1;
}
.yd-content-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.yd-content-card h1 {
    font-size: 1.75rem;
    color: #0d6efd;
    margin-bottom: 0.5rem;
    font-family: 'Roboto', sans-serif;
}
.yd-content-card .yd-badge {
    display: inline-block;
    background: #e9ecef;
    color: #333;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}
.yd-content-card .yd-content-text {
    line-height: 1.7;
    color: #333;
    margin-top: 1rem;
}
.yd-content-card .yd-content-text p { margin-bottom: 1rem; }
.yd-content-card .yd-juri-baslik {
    font-size: 1.1rem;
    color: #0d6efd;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(13, 110, 253, 0.3);
}
.yd-content-card .yd-juri-baslik:first-child { margin-top: 0; }
.yd-content-card .yd-juri-listesi {
    list-style: none;
    margin-bottom: 0.5rem;
}
.yd-content-card .yd-juri-listesi li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.yd-content-card .yd-juri-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9ecef;
    border: 2px solid rgba(13, 110, 253, 0.25);
}
.yd-content-card .yd-juri-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.yd-content-card .yd-juri-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    border: 2px solid rgba(13, 110, 253, 0.2);
}
.yd-content-card .yd-juri-avatar-placeholder .bi {
    font-size: 2rem;
    color: #adb5bd;
    line-height: 1;
}
.yd-content-card .yd-juri-listesi .yd-juri-isim {
    flex: 0 0 200px;
    min-width: 0;
}
.yd-content-card .yd-juri-listesi .yd-juri-unvan {
    flex: 1;
    min-width: 0;
}
@media (max-width: 575px) {
    .yd-content-card .yd-juri-listesi li {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 0.75rem;
        row-gap: 0.25rem;
        align-items: start;
    }
    .yd-content-card .yd-juri-avatar { grid-row: 1 / span 2; align-self: center; }
    .yd-content-card .yd-juri-listesi .yd-juri-isim { flex: none; grid-column: 2; }
    .yd-content-card .yd-juri-listesi .yd-juri-unvan { flex: none; grid-column: 2; }
}

/* Ödüller sayfası */
.yd-content-card .yd-odul-listesi {
    list-style: none;
    margin-bottom: 1.5rem;
}
.yd-content-card .yd-odul-listesi li {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: rgba(13, 110, 253, 0.06);
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 1rem;
}
.yd-content-card .yd-odul-etkinlik { font-weight: 600; color: #333; }
.yd-content-card .yd-odul-sag { text-align: left; }
.yd-content-card .yd-odul-tutar {
    color: #0d6efd;
    font-weight: 600;
    font-size: 1.1rem;
}
.yd-content-card .yd-odul-adet {
    color: #6c757d;
    font-size: 0.9rem;
}
.yd-content-card .yd-odul-not {
    font-size: 0.9rem;
    color: #495057;
    font-style: italic;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}
@media (max-width: 575px) {
    .yd-content-card .yd-odul-listesi li { grid-template-columns: 1fr; }
}

/* Yarışma Takvimi sayfası */
.yd-content-card .yd-takvim-listesi {
    list-style: none;
    margin-bottom: 1.5rem;
}
.yd-content-card .yd-takvim-listesi li {
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.5rem;
    background: rgba(13, 110, 253, 0.06);
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 1rem;
}
.yd-content-card .yd-takvim-etkinlik { font-weight: 500; color: #333; }
.yd-content-card .yd-takvim-tarih { color: #0d6efd; font-weight: 600; white-space: nowrap; text-align: left; }
@media (max-width: 575px) {
    .yd-content-card .yd-takvim-listesi li { grid-template-columns: 1fr; }
}
.yd-content-card .yd-takvim-not {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Yarışma Şartnamesi sayfası */
.yd-content-card .yd-sartname-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 8px;
    color: #0d6efd;
    font-weight: 600;
    transition: background 0.2s;
}
.yd-content-card .yd-sartname-link:hover { background: rgba(13, 110, 253, 0.2); }
.yd-content-card .yd-sartname-link i { font-size: 1.4rem; }

/* Soru ve Cevaplar sayfası */
.yd-content-card .yd-soru-tarih {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
    font-size: 1rem;
}
.yd-gallery {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.yd-gallery a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
.yd-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
@media (max-width: 991.98px) {
    .yd-content-wrap { padding: 12rem 1rem 6rem; }
    .yd-content-card { padding: 1.5rem; }
}
