/* assets/css/style.css */

/* =========================
   ROOT & GLOBAL
========================= */
:root {
    --bg-light: #f1f5f9;
    --bg-dark: #0f172a;
    --card-light: #ffffff;
    --card-dark: #1e293b;
    --text-light: #e2e8f0;
    --text-dark-main: #0f172a;
    --primary: #2563eb;
    --primary-soft: #3b82f6;
    --success: #059669;
    --danger: #dc2626;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-card: 0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 10px -5px rgba(0,0,0,0.04);
    --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.12);
    --border-light: rgba(148,163,184,0.25);
    --border-dark: rgba(71,85,105,0.5);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    /* 🔥 DASHBOARD BOZULMASIN: body artık flex-center değil */
    display: block;
}

body.theme-light {
    background: linear-gradient(160deg, #f0f9ff 0%, #f1f5f9 50%, #e2e8f0 100%);
    color: var(--text-dark-main);
}

body.theme-dark {
    background: linear-gradient(160deg, #0f172a 0%, #020617 100%);
    color: var(--text-light);
}

/* Login sayfası ortalansın diye sadece login’de body’ye class veriyoruz */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Genel container */
.app-container {
    width: 100%;
    max-width: 1600px;
    padding: 24px;
    margin: 0 auto;
}

/* =========================
   LOGIN
========================= */
.login-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    background: var(--card-light);
    color: var(--text-dark-main);
    transition: box-shadow 0.25s ease;
}

body.theme-dark .login-card {
    background: var(--card-dark);
    color: var(--text-light);
    border-color: var(--border-dark);
}

.login-card:hover {
    box-shadow: var(--shadow-hover);
}

.login-card .logo-wrapper {
    margin-bottom: 20px;
}

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 4px 0;
    color: var(--primary);
}

.login-card h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.15rem;
    font-weight: 600;
    color: inherit;
}

.login-card label {
    font-weight: 500;
    color: inherit;
    margin-bottom: 8px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    color: var(--text-dark-main);
    padding: 10px 14px;
    border-radius: var(--radius);
}

body.theme-dark .login-card input[type="text"],
body.theme-dark .login-card input[type="password"] {
    background: #0f172a;
    border-color: var(--border-dark);
    color: var(--text-light);
}

.login-card .btn.primary {
    width: 100%;
    padding: 12px 18px;
    font-size: 15px;
    margin-top: 8px;
}

.login-card .error-msg {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: #fef2f2;
    color: var(--danger);
    font-size: 13px;
}

body.theme-dark .login-card .error-msg {
    background: rgba(220,38,38,0.15);
}

.login-card form.locked {
    opacity: 0.85;
    pointer-events: none;
}

.login-card .bottom-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: inherit;
    opacity: 0.9;
}

body.theme-dark .login-card .bottom-row {
    border-top-color: var(--border-dark);
}

.login-card .bottom-row a {
    color: var(--primary-soft);
    text-decoration: none;
}

.login-card .bottom-row a:hover {
    text-decoration: underline;
}

.logo-wrapper {
    text-align: center;
    margin-bottom: 16px;
}

.logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

.logo-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 8px;
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.8);
    color: #e5e7eb;
    outline: none;
    transition: border 0.2s ease-out, box-shadow 0.2s ease-out;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.6);
}

.btn {
    display: inline-block;
    border-radius: 999px;
    border: none;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.btn.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37,99,235,0.45);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(37,99,235,0.65);
}

.btn.small {
    padding: 4px 10px;
    font-size: 12px;
}

.btn.danger {
    background: var(--danger);
    color: #fff;
}

/* =========================
   TOPBAR & CONTENT
========================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.theme-light .topbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-dark-main);
}

body.theme-dark .topbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--text-light);
    border-color: var(--border-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    transition: opacity 0.2s ease;
}

.topbar-brand:hover {
    opacity: 0.9;
}

.topbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.topbar-title {
    color: inherit;
}

body.theme-light .topbar-title {
    color: #0f172a;
}

.topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.topbar-user {
    font-size: 14px;
    opacity: 0.95;
}

.topbar-user strong {
    font-weight: 600;
}

.topbar-role {
    font-size: 13px;
    opacity: 0.75;
    font-weight: 400;
}

.topbar-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-lang-label {
    font-size: 13px;
    opacity: 0.85;
    margin-inline-end: 4px;
}

.topbar-lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    opacity: 0.65;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.topbar-lang-link:hover {
    opacity: 1;
}

.topbar-lang-link.active {
    opacity: 1;
    background: var(--primary-soft);
    color: #fff;
    border-color: var(--primary-soft);
}

body.theme-dark .topbar-lang-link.active {
    background: rgba(59,130,246,0.35);
    color: #93c5fd;
    border-color: rgba(59,130,246,0.5);
}

.btn-theme {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: var(--card-light);
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-theme:hover {
    background: rgba(241,245,249,0.9);
    border-color: var(--primary-soft);
}

body.theme-dark .btn-theme {
    background: rgba(51,65,85,0.5);
    border-color: var(--border-dark);
}

body.theme-dark .btn-theme:hover {
    background: rgba(59,130,246,0.15);
    border-color: rgba(59,130,246,0.4);
}

.btn-danger-outline {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid var(--danger);
    background: transparent;
    color: var(--danger);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-danger-outline:hover {
    background: var(--danger);
    color: #fff;
}

body.theme-dark .btn-danger-outline {
    border-color: #f87171;
    color: #fca5a5;
}

body.theme-dark .btn-danger-outline:hover {
    background: #dc2626;
    color: #fff;
}

/* RTL: topbar */
[dir="rtl"] .topbar-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .topbar-brand {
    flex-direction: row-reverse;
}

/* Dashboard alt nav (Ana Sayfa, Kaleler, …) */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body.theme-dark .nav-links {
    background: rgba(30,41,59,0.5);
    border-color: var(--border-dark);
}

.nav-links a {
    margin-inline-start: 6px;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    opacity: 0.85;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: background 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a.active {
    font-weight: 600;
    opacity: 1;
    background: rgba(37,99,235,0.12);
    color: var(--primary-soft);
}

body.theme-dark .nav-links a.active {
    background: rgba(59,130,246,0.2);
    color: #93c5fd;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

.content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr);
    gap: 24px;
}

.card-fullwidth {
    grid-column: 1 / -1;
    min-width: 0; /* tablo taşmasın, yatay scroll wrapper içinde kalsın */
}

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

/* =========================
   CARD
========================= */
.card {
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

body.theme-light .card {
    background: var(--card-light);
    color: var(--text-dark-main);
}

body.theme-dark .card {
    background: var(--card-dark);
    color: var(--text-light);
    border-color: var(--border-dark);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* =========================
   TABLE
========================= */
.table-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius);
    max-height: min(72vh, 720px);
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-light);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
    background: var(--card-light);
}

body.theme-dark .table-wrapper {
    border-color: var(--border-dark);
    background: rgba(15,23,42,0.4);
}

.data-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    font-size: 14px;
}
#table-castles {
    min-width: 720px;
}

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
    transition: background 0.2s ease;
}

body.theme-light .data-table thead th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
}

body.theme-dark .data-table thead th {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    color: #cbd5e1;
    border-bottom-color: var(--border-dark);
}

.data-table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    white-space: nowrap;
    transition: background 0.15s ease;
}

body.theme-dark .data-table td {
    border-bottom-color: rgba(71,85,105,0.35);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(241,245,249,0.6);
}

body.theme-dark .data-table tbody tr:nth-child(even) {
    background: rgba(30,41,59,0.25);
}

.data-table tbody tr:hover {
    background: rgba(37,99,235,0.08) !important;
}

body.theme-dark .data-table tbody tr:hover {
    background: rgba(59,130,246,0.12) !important;
}

/* =========================
   SEARCH + PAGER + TOOLBAR
========================= */
.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.search-box {
    min-width: 220px;
    max-width: 320px;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: var(--card-light);
    color: var(--text-dark-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box::placeholder {
    color: #94a3b8;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

body.theme-dark .search-box {
    background: #1e293b;
    color: var(--text-light);
    border-color: var(--border-dark);
}

.pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pager-info {
    font-size: 13px;
    opacity: 0.85;
}

.per-page-label {
    font-size: 13px;
    color: inherit;
    opacity: 0.9;
}

.per-page-label select {
    width: auto;
    margin-left: 8px;
    padding: 6px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: border-color 0.2s ease;
}

body.theme-dark .per-page-label select {
    border-color: var(--border-dark);
}

/* =========================
   KAYDIRMALI TOGGLE SWITCH (yeşil=açık ✓, kırmızı=kapalı ✗)
========================= */
.icon-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    border: none;
    padding: 0;
    background: transparent;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.icon-toggle:hover {
    transform: scale(1.05);
}

/* Switch yapısı: pill track + kaydırılan thumb */
.icon-toggle.toggle-switch {
    min-width: 52px;
    height: 28px;
}

.toggle-switch-track {
    position: relative;
    display: block;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    transition: background-color 0.25s ease, box-shadow 0.2s ease;
}

.icon-toggle.toggle-switch.yes .toggle-switch-track {
    background: #34c759;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.icon-toggle.toggle-switch.no .toggle-switch-track {
    background: #ff3b30;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}

.icon-toggle.toggle-switch.wait .toggle-switch-track {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}

.toggle-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.22);
    transition: transform 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.icon-toggle.toggle-switch.yes .toggle-switch-thumb {
    transform: translateX(24px);
    color: #34c759;
}

.icon-toggle.toggle-switch.no .toggle-switch-thumb {
    transform: translateX(0);
    color: #ff3b30;
}

.icon-toggle.toggle-switch.wait .toggle-switch-thumb {
    transform: translateX(12px);
    color: #b45309;
}

/* İkonlar: thumb içinde ✓ / ✗ / ⏳ */
.toggle-switch-thumb::after {
    content: "";
    font-size: 14px;
    font-weight: 700;
}

.icon-toggle.toggle-switch.yes .toggle-switch-thumb::after {
    content: "✓";
}

.icon-toggle.toggle-switch.no .toggle-switch-thumb::after {
    content: "✗";
}

.icon-toggle.toggle-switch.wait .toggle-switch-thumb::after {
    content: "⏳";
    font-size: 12px;
}

body.theme-dark .icon-toggle.toggle-switch.yes .toggle-switch-track {
    background: #22a34a;
}

body.theme-dark .icon-toggle.toggle-switch.no .toggle-switch-track {
    background: #e6352b;
}

body.theme-dark .icon-toggle.toggle-switch.wait .toggle-switch-track {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

body.theme-dark .toggle-switch-thumb {
    background: #f1f5f9;
}

.icon-toggle.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* =========================
   INLINE INPUT/SELECT (tablo içi)
========================= */
.inline-input {
    width: 90px;
    padding: 6px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: #fff;
    color: #111827;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-input:focus {
    outline: none;
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

body.theme-dark .inline-input {
    background: #1e293b;
    color: #e5e7eb;
    border-color: var(--border-dark);
}

.inline-select {
    padding: 6px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: #fff;
    color: #111827;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.inline-select:focus {
    outline: none;
    border-color: var(--primary-soft);
}

body.theme-dark .inline-select {
    background: #1e293b;
    color: #e5e7eb;
    border-color: var(--border-dark);
}

/* footer mini (timezone vb. varsa) */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 8px;
}
/* =========================
   KAYNAK TÜRÜ SELECT FIX
========================= */

/* Select'in kendisi (detay panelinde Kaynak Türü vb.) */
.inline-select {
    min-width: 120px;
}

/* =========================
   KALELER – GENİŞLETİLEBİLİR DETAY (INFO PANEL)
========================= */
.data-table .col-id {
    white-space: nowrap;
}
.castle-id {
    margin-right: 8px;
}
.castle-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--card-light);
    color: var(--text-dark-main);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.castle-expand-btn:hover {
    background: rgba(37,99,235,0.1);
    border-color: var(--primary-soft);
    transform: scale(1.05);
}
body.theme-dark .castle-expand-btn {
    background: #1e293b;
    color: var(--text-light);
    border-color: var(--border-dark);
}
body.theme-dark .castle-expand-btn:hover {
    background: rgba(59,130,246,0.2);
}

.castle-detail-row td {
    padding: 0 !important;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}
body.theme-dark .castle-detail-row td {
    border-bottom-color: var(--border-dark);
}
.castle-detail-panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    background: rgba(241,245,249,0.7);
    transition: max-height 0.3s ease, padding 0.25s ease;
}
body.theme-dark .castle-detail-panel {
    background: rgba(30,41,59,0.5);
}
.castle-row.expanded + .castle-detail-row .castle-detail-panel {
    max-height: 800px;
    padding: 16px;
}
.castle-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 24px;
    align-items: center;
}
.castle-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}
.castle-detail-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark-main);
    min-width: 120px;
    flex-shrink: 0;
}
body.theme-dark .castle-detail-label {
    color: var(--text-light);
}
.castle-detail-input {
    width: 60px;
}
.castle-detail-meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-light);
    font-size: 13px;
    color: var(--text-dark-main);
    opacity: 0.9;
}
body.theme-dark .castle-detail-meta {
    border-top-color: var(--border-dark);
    color: var(--text-light);
}
.castle-detail-meta span {
    margin-right: 20px;
}

/* =========================
   ANA SAYFA HERO (Muhteşem Osmanlı)
========================= */
.home-hero {
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(59,130,246,0.04) 50%, transparent 100%);
    border-color: rgba(37,99,235,0.2);
}
body.theme-dark .home-hero {
    background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(37,99,235,0.06) 50%, transparent 100%);
    border-color: rgba(59,130,246,0.25);
}
.home-hero-title {
    margin: 0 0 8px 0;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary-soft);
    line-height: 1.2;
}
.home-hero-subtitle {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
}
.home-hero-intro {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.85;
}

/* =========================
   OYUN İÇİ ÖZELLİKLER (Ana sayfa kartları)
========================= */
.game-features-section {
    margin-top: 24px;
}
.game-features-section h2 {
    margin-bottom: 20px;
    font-size: 1.35rem;
}
.game-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.game-feature-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.6);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.game-feature-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
body.theme-dark .game-feature-card {
    background: rgba(30,41,59,0.4);
    border-color: var(--border-dark);
}
body.theme-dark .game-feature-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.game-feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1;
}
.game-feature-title {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: inherit;
}
.game-feature-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.85;
}

/* =========================
   ALTIN BOTU ÖZELLİKLERİ (Ana sayfa)
========================= */
.gold-bot-features {
    margin-top: 24px;
}
.gold-bot-features h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}
.gold-bot-intro {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}
.gold-bot-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 24px;
}
.gold-bot-list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: inherit;
    opacity: 0.95;
}
.gold-bot-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}
body.theme-dark .gold-bot-list li::before {
    color: #34d399;
}
.gold-bot-contact {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
body.theme-dark .gold-bot-contact {
    border-top-color: var(--border-dark);
}
.gold-bot-contact .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(34,197,94,0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.gold-bot-contact .btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.45);
}

/* =========================
   PUBLIC PAGES (Ana sayfa, header, footer)
========================= */
body.page-public {
    background: linear-gradient(160deg, #f0f9ff 0%, #f1f5f9 50%, #e2e8f0 100%);
    color: var(--text-dark-main);
}

.page-public-main {
    min-height: 60vh;
    padding: 0 0 40px 0;
}

.nav-public {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-radius: 0;
    box-shadow: var(--shadow-card);
    border-bottom: 1px solid var(--border-light);
    background: rgba(255,255,255,0.98);
    color: var(--text-dark-main);
}

.nav-public .nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-public .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-public .nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dark-main);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.nav-public .nav-links a:hover {
    opacity: 1;
    background: rgba(37,99,235,0.08);
    color: var(--primary);
}

.hero-public {
    padding: 80px 24px 60px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-public .hero-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    border: 3px solid rgba(255,255,255,0.9);
}

.hero-public h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px 0;
    color: var(--text-dark-main);
}

.hero-public h1 span {
    color: var(--primary);
}

.hero-public .hero-tagline {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.main-card-public {
    max-width: 800px;
    margin: -40px auto 60px;
    padding: 0 24px;
}

.card-public {
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    background: var(--card-light);
    color: var(--text-dark-main);
    transition: box-shadow 0.25s ease;
}

.card-public:hover {
    box-shadow: var(--shadow-hover);
}

.card-public .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 20px 0;
    color: var(--text-dark-main);
}

.card-public .video-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0f172a;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.card-public .video-wrap .ratio-16x9 {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.card-public .video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.card-public .cta-wrap {
    text-align: center;
    margin-top: 8px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(34,197,94,0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.5);
}

.btn-whatsapp .wa-icon {
    font-size: 1.4rem;
}

.footer-public {
    text-align: center;
    padding: 20px 24px;
    margin-top: 40px;
    border-top: 1px solid var(--border-light);
    background: rgba(255,255,255,0.8);
    color: #64748b;
    font-size: 14px;
}