/* Ortak header ve footer stilleri - index.php ile birebir aynı */
:root {
    --coe-blue: #003366;
    --coe-blue-light: #004494;
    --coe-gold: #c4a747;
    --header-height: 90px;
    --footer-height: 44px;
}

.site-header {
    background: var(--coe-blue);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    align-self: stretch;
    flex-shrink: 0;
}
.site-header .header-left { display: flex; align-items: center; gap: 20px; }
.site-header .header-right { display: flex; align-items: center; gap: 12px; }
.site-header .coe-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}
.site-header .coe-logo:hover { color: white; opacity: 0.95; }
.site-header .coe-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--coe-gold);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--coe-blue);
}
.site-header .coe-logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.site-header .coe-logo img:not(.piktes-logo) { height: 60px; max-width: 420px; object-fit: contain; }
.site-header .coe-logo img.piktes-logo {
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    flex-shrink: 0;
}
.site-header .coe-logo img.project-logo {
    height: 60px;
    max-width: 420px;
    width: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    flex-shrink: 1;
}
.site-header .lang-toggle { display: flex; gap: 4px; }
.site-header .lang-btn {
    padding: 6px 12px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
}
.site-header .lang-btn:hover, .site-header .lang-btn.active {
    background: rgba(255,255,255,0.25);
}
.site-header .header-btn {
    padding: 10px 24px;
    background: var(--coe-gold);
    color: var(--coe-blue);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}
.site-header .header-btn:hover {
    background: #d4b84d;
    transform: translateY(-1px);
}
.site-header .header-back {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
}
.site-header .header-back:hover { text-decoration: underline; }

.site-footer {
    background: var(--coe-blue);
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: 12px 24px;
    font-size: 13px;
    width: 100%;
    align-self: stretch;
    flex-shrink: 0;
    margin-top: auto;
}

/* Sayfa düzeni: header + içerik + footer */
body.page-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header ve footer sabit - sayfa kayarken sabit kalır, sadece içerik kayar */
body.has-header-footer .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
}

body.has-header-footer .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: var(--footer-height);
    z-index: 100;
}

/* İçerik header/footer altında kalmaması için boşluk */
body.has-header-footer {
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}

body.has-header-footer .content {
    flex: 1;
}

/* Sidebar sayfalarında header varsa sidebar'ı header altına al */
body.has-header-footer .sidebar {
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
}

/* Görev açıklaması (admin / hakem): tablo ve paragraflar — global table td padding ile çakışmayı önler */
.gorev-aciklama-empty {
    color: #9ca3af;
    font-size: 14px;
}
.gorev-aciklama-plain {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}
.gorev-aciklama-plain strong,
.gorev-aciklama-rich strong,
.gorev-aciklama-rich b {
    font-weight: 600;
    color: #1f2937;
}
.gorev-align-center {
    text-align: center !important;
    display: block;
    margin: 0.5em 0;
    width: 100%;
    box-sizing: border-box;
}
.gorev-aciklama-rich {
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}
.gorev-aciklama-rich table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 0.35em 0;
}
.gorev-aciklama-rich td,
.gorev-aciklama-rich th {
    padding: 4px 8px !important;
    line-height: 1.35 !important;
    vertical-align: top;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.gorev-aciklama-rich p {
    margin: 0.35em 0;
}
.gorev-aciklama-rich p:first-child {
    margin-top: 0;
}
.gorev-aciklama-rich ul,
.gorev-aciklama-rich ol {
    margin: 0.35em 0 0.35em 1.1em;
    padding-left: 1em;
}
