/* =====================================================================
   MOZWP — Kurumsal Sayfalar (Künye / RSS / Sözleşme) ortak stilleri.
   Renkler CSS değişkenlerinden gelir; ileride panelden override edilebilir.
   ===================================================================== */

.hx-legal-section,
.hx-kunye-section {
    --corp-accent: #e11d48;
    --corp-text: #09090b;
    --corp-text-soft: #3f3f46;
    --corp-text-mute: #52525b;
    --corp-text-muted: #71717a;
    --corp-border: #e4e4e7;
    --corp-border-hover: #d4d4d8;
    --corp-bg: #ffffff;
    --corp-bg-soft: #fafafa;
    --corp-bg-muted: #f4f4f5;
    --corp-bg-accent-soft: #fff1f2;
    --corp-rss-icon-bg: #fff7ed;
    --corp-rss-icon-border: #ffedd5;
    --corp-rss-icon-color: #f97316;
    --corp-success: #10b981;

    width: 100%;
    padding: 10px 0 100px 0;
    background-color: var(--corp-bg);
    color: var(--corp-text);
    font-family: inherit;
}

.hx-legal-section *,
.hx-kunye-section * { box-sizing: border-box; }

/* ----- Konteyner ----- */
.hx-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Künye için container yan menüsüz versiyonu — flex'i devre dışı */
.hx-kunye-section .hx-container {
    display: block;
    gap: 0;
}

/* ----- Sidebar ----- */
.hx-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 40px;
}

.hx-nav-group { margin-bottom: 32px; }

.hx-nav-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--corp-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 12px;
}

.hx-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hx-nav-link {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--corp-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hx-nav-link:hover {
    background-color: var(--corp-bg-muted);
    color: var(--corp-text);
}

.hx-nav-link.active {
    background-color: var(--corp-bg-accent-soft);
    color: var(--corp-accent);
    font-weight: 600;
}

/* ----- Doc wrapper (Sözleşme/RSS sağ taraf) ----- */
.hx-doc-wrapper {
    flex: 1;
    min-width: 0;
    max-width: 800px;
}

.hx-doc-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--corp-border);
    padding-bottom: 32px;
}

.hx-doc-badge {
    display: inline-flex;
    align-items: center;
    background: var(--corp-bg-muted);
    border: 1px solid var(--corp-border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--corp-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hx-doc-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--corp-text);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.hx-doc-meta {
    font-size: 14px;
    color: var(--corp-text-muted);
    margin: 0;
    line-height: 1.6;
}
.hx-doc-meta strong { color: var(--corp-text); }

/* ----- Doc content typography ----- */
.hx-doc-content h1,
.hx-doc-content h2,
.hx-doc-content h3 { font-weight: 700; color: var(--corp-text); }

.hx-doc-content h2 {
    font-size: 24px;
    margin: 48px 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--corp-border);
}

.hx-doc-content h3 { font-size: 18px; margin: 32px 0 12px 0; }

.hx-doc-content p {
    font-size: 15px;
    color: var(--corp-text-soft);
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.hx-doc-content strong { font-weight: 600; color: var(--corp-text); }

.hx-doc-content a {
    color: var(--corp-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.hx-doc-content a:hover { text-decoration: underline; }

.hx-doc-content ul,
.hx-doc-content ol { margin: 0 0 24px 0; padding-left: 24px; }

.hx-doc-content li {
    font-size: 15px;
    color: var(--corp-text-soft);
    line-height: 1.7;
    margin-bottom: 8px;
    position: relative;
    list-style-type: none;
}

.hx-doc-content li::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 9px;
    width: 6px;
    height: 6px;
    background-color: var(--corp-border);
    border-radius: 50%;
    transition: background-color 0.2s;
}
.hx-doc-content li:hover::before { background-color: var(--corp-accent); }

/* ----- Note box (özet kutusu / yasal uyarı) ----- */
.hx-note-box {
    background-color: var(--corp-bg-muted);
    border: 1px solid var(--corp-border);
    border-left: 4px solid var(--corp-accent);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.hx-note-box--legal {
    border-left-color: var(--corp-text-muted);
    margin-bottom: 0;
}

.hx-note-icon {
    color: var(--corp-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.hx-note-box--legal .hx-note-icon { color: var(--corp-text-muted); }

.hx-note-content { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.hx-note-title { font-size: 16px; font-weight: 700; color: var(--corp-text); margin: 0; }

.hx-note-text {
    font-size: 14px;
    color: var(--corp-text-mute);
    line-height: 1.6;
    margin: 0;
}

.hx-note-text a {
    color: var(--corp-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.hx-note-text a:hover { text-decoration: underline; }

/* =====================================================================
   KÜNYE Sayfası — tablo + personel kartları
   ===================================================================== */
.hx-section-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--corp-border);
    display: flex;
}

.hx-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--corp-text);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--corp-accent);
    margin-bottom: -1px;
}

.hx-block-spacer { height: 48px; }

.hx-kunye-table {
    width: 100%;
    border: 1px solid var(--corp-border);
    border-radius: 0;
    overflow: hidden;
    background: var(--corp-bg);
}

.hx-kunye-row {
    display: flex;
    border-bottom: 1px solid var(--corp-border);
    transition: background-color 0.2s ease;
}
.hx-kunye-row:last-child { border-bottom: none; }
.hx-kunye-row:hover { background-color: var(--corp-bg-soft); }

.hx-kunye-label {
    width: 30%;
    background-color: var(--corp-bg-soft);
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--corp-text-soft);
    border-right: 1px solid var(--corp-border);
    display: flex;
    align-items: center;
}

.hx-kunye-value {
    width: 70%;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--corp-text);
    line-height: 1.5;
    display: flex;
    align-items: center;
    white-space: pre-line;
}

.hx-kunye-value a { color: var(--corp-text); text-decoration: none; transition: color 0.2s; }
.hx-kunye-value a:hover { color: var(--corp-accent); text-decoration: underline; }

.hx-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hx-staff-card {
    background-color: var(--corp-bg-soft);
    border-left: 3px solid var(--corp-accent);
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hx-staff-card:hover { background-color: var(--corp-bg-muted); }

.hx-staff-name { font-size: 15px; font-weight: 700; color: var(--corp-text); }
.hx-staff-name a { color: inherit; text-decoration: none; transition: color 0.2s; }
.hx-staff-name a:hover { color: var(--corp-accent); }
.hx-staff-role { font-size: 13px; font-weight: 500; color: var(--corp-text-muted); }

/* =====================================================================
   RSS Sayfası — feed kartları + kopyala butonu
   ===================================================================== */
.hx-rss-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.hx-rss-card {
    background: var(--corp-bg);
    border: 1px solid var(--corp-border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    min-width: 0;
}
.hx-rss-card:hover {
    border-color: var(--corp-border-hover);
    box-shadow: 0 6px 16px -4px rgba(0,0,0,0.05);
    background: var(--corp-bg-soft);
}

.hx-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.hx-rss-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--corp-rss-icon-bg);
    color: var(--corp-rss-icon-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid var(--corp-rss-icon-border);
}
.hx-rss-icon svg { width: 14px; height: 14px; stroke-width: 2.5; }

.hx-card-title { font-size: 16px; font-weight: 700; color: var(--corp-text); letter-spacing: -0.2px; }
.hx-card-desc { font-size: 13px; color: var(--corp-text-muted); line-height: 1.5; margin-bottom: 20px; flex-grow: 1; }

.hx-endpoint-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--corp-bg-muted);
    border: 1px solid var(--corp-border);
    border-radius: 6px;
    padding: 6px 6px 6px 10px;
    transition: border-color 0.2s;
    margin-top: auto;
    min-width: 0;
}
.hx-rss-card:hover .hx-endpoint-box { background: var(--corp-bg); border-color: var(--corp-border-hover); }

.hx-endpoint-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    color: var(--corp-text-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
    flex: 1;
    min-width: 0;
}

.hx-copy-btn {
    background: var(--corp-bg);
    border: 1px solid var(--corp-border);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--corp-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.hx-copy-btn:hover { background: var(--corp-accent); color: #ffffff; border-color: var(--corp-accent); }
.hx-copy-btn svg { width: 12px; height: 12px; stroke-width: 2; }

/* Toast ----- */
.hx-toast {
    position: fixed;
    bottom: 30px;
    right: -400px;
    background: var(--corp-text);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100000;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid var(--corp-success);
}
.hx-toast.show { right: 30px; }
.hx-toast svg { width: 16px; height: 16px; color: var(--corp-success); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 950px) {
    .hx-container { gap: 32px; }
    .hx-sidebar { width: 220px; }
    .hx-rss-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .hx-staff-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hx-legal-section { padding: 30px 0; }

    .hx-container {
        flex-direction: column;
        padding: 0 5px;
        gap: 24px;
    }

    .hx-kunye-section .hx-container { padding: 0 5px; }

    /* Sidebar → yatay kaydırılabilir pill menü */
    .hx-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        padding: 0 5px 10px 5px;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
    }
    .hx-sidebar::-webkit-scrollbar { display: none; }

    .hx-nav-group {
        margin-bottom: 0;
        display: flex;
        flex-shrink: 0;
        gap: 8px;
    }

    .hx-nav-title { display: none; }

    .hx-nav-list { flex-direction: row; gap: 8px; }

    .hx-nav-link {
        padding: 8px 16px;
        background-color: var(--corp-bg-muted);
        border: 1px solid var(--corp-border);
        white-space: nowrap;
        flex-shrink: 0;
    }
    .hx-nav-link.active { border-color: var(--corp-accent); }

    .hx-doc-wrapper { padding: 0 10px; width: 100%; }
    .hx-doc-header { padding-bottom: 24px; margin-bottom: 24px; }
    .hx-doc-title { font-size: 28px; }

    .hx-note-box { flex-direction: column; gap: 12px; padding: 16px; }

    .hx-doc-content h2 { font-size: 20px; margin-top: 32px; }

    .hx-kunye-row { flex-direction: column; }
    .hx-kunye-label {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--corp-bg-muted);
        padding: 12px 20px;
        background-color: var(--corp-bg-muted);
    }
    .hx-kunye-value { width: 100%; padding: 14px 20px; }
}

@media (max-width: 480px) {
    .hx-staff-grid { grid-template-columns: 1fr; }
}
