/* =========================================================
   TANRI TURKU KORUSUN - refreshed interface
   ========================================================= */

:root {
    color-scheme: light;
    --primary-color: #9f2636;
    --primary-strong: #751928;
    --secondary-color: #c99a2e;
    --accent-blue: #1f6f82;
    --accent-green: #647c50;
    --accent-ink: #151923;
    --accent-soft: #efe5d1;

    --bg-color: #f6f1e8;
    --bg-elevated: #fffaf1;
    --text-color: #1e2430;
    --muted-color: #687080;
    --card-bg: rgba(255, 252, 246, 0.94);
    --navbar-bg: rgba(18, 22, 31, 0.94);
    --border-color: rgba(39, 47, 61, 0.13);

    --bg-dark: #0e1118;
    --text-dark: #ece7dd;
    --card-bg-dark: rgba(26, 31, 42, 0.95);
    --navbar-bg-dark: rgba(7, 10, 16, 0.96);

    --font-cinzel: "Cinzel", Georgia, serif;
    --font-roboto: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-merriweather: "Merriweather", Georgia, serif;

    --radius-lg: 8px;
    --radius-md: 6px;
    --radius-sm: 4px;
    --shadow: 0 18px 50px rgba(30, 24, 14, 0.11);
    --shadow-soft: 0 8px 22px rgba(30, 24, 14, 0.08);
    --shadow-hover: 0 24px 60px rgba(42, 32, 18, 0.16);
    --transition: 180ms ease;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg-color: var(--bg-dark);
    --bg-elevated: #151a24;
    --text-color: var(--text-dark);
    --muted-color: #aeb6c2;
    --card-bg: var(--card-bg-dark);
    --navbar-bg: var(--navbar-bg-dark);
    --border-color: rgba(236, 231, 221, 0.14);
    --primary-color: #cf4559;
    --primary-strong: #ee6a79;
    --secondary-color: #ddb456;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    font-family: var(--font-roboto);
    line-height: 1.6;
    background:
        linear-gradient(180deg, rgba(21, 25, 35, 0.045), transparent 15rem),
        linear-gradient(90deg, rgba(159, 38, 54, 0.075), transparent 28%, transparent 72%, rgba(31, 111, 130, 0.07)),
        linear-gradient(180deg, #f3ece0 0%, #fffaf1 42%, #f7f0e6 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at 8% -10%, rgba(207, 69, 89, 0.20), transparent 28rem),
        radial-gradient(circle at 90% 0%, rgba(31, 111, 130, 0.22), transparent 30rem),
        linear-gradient(180deg, #0d1118 0%, #121723 54%, #0d1118 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(117, 25, 40, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 25, 40, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%);
}

a {
    color: var(--primary-color);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--primary-strong);
}

.cinzel-font {
    font-family: var(--font-cinzel);
    font-weight: 700;
}

.merriweather-font {
    font-family: var(--font-merriweather);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--accent-ink);
    font-family: var(--font-cinzel);
    letter-spacing: 0;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #fff8ec;
}

.lead {
    color: var(--muted-color);
}

.text-muted {
    color: var(--muted-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--accent-green) !important;
}

.text-warning {
    color: var(--secondary-color) !important;
}

/* Navigation */
.navbar {
    padding: 0.7rem 0;
    background: var(--navbar-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(4, 6, 12, 0.22);
    backdrop-filter: blur(16px);
}

.navbar .container {
    gap: 1rem;
}

.navbar-brand {
    min-width: 0;
    max-width: min(560px, 54vw);
}

.navbar-brand span {
    display: block;
    color: #fff8ec !important;
    font-size: clamp(0.98rem, 1.5vw, 1.28rem);
    line-height: 1.15;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.36);
}

.navbar .nav-link {
    position: relative;
    color: rgba(255, 248, 236, 0.86) !important;
    border-radius: var(--radius-md);
    padding: 0.55rem 0.72rem !important;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    transition: color var(--transition), background-color var(--transition), transform var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.10);
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.28rem;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.navbar-toggler {
    border: 0;
    border-radius: var(--radius-md);
}

.dropdown-menu {
    overflow: hidden;
    padding: 0.45rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
}

.dropdown-item {
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-weight: 700;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--primary-strong);
    background: rgba(201, 154, 46, 0.18);
}

.dropdown-divider {
    border-top-color: var(--border-color);
}

#theme-toggle {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50% !important;
}

/* Auth */
#auth-container {
    position: relative;
    min-height: 100vh;
    padding: 2rem 1rem;
}

#auth-container::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(12, 15, 22, 0.80), rgba(12, 15, 22, 0.42)),
        url("images/mavi-gozler-hero-yatay.jpg"),
        url("images/indir-hero-final.jpg");
    background-size: cover;
    background-position: center;
}

.auth-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: var(--radius-lg);
    color: #1f2530;
    background: rgba(255, 250, 241, 0.92);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-blue));
}

.auth-card h1,
.auth-card h2 {
    margin-top: 0.45rem;
    color: var(--primary-strong);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.auth-card small {
    color: #596170;
}

.auth-message,
#auth-message {
    width: 100%;
    max-width: 560px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.auth-message-warning {
    color: #68430a;
    background: #fff4d7;
    border-color: #e5bf62;
}

.auth-message-info {
    color: #174a61;
    background: #eaf8fb;
    border-color: #9ed6e1;
}

.auth-message-success {
    color: #214d2c;
    background: #edf9ee;
    border-color: #a8d9aa;
}

.auth-message-danger {
    color: #6a1e2a;
    background: #fff0f1;
    border-color: #e59aa5;
}

.auth-message-title {
    margin-bottom: 0.35rem;
    font-weight: 800;
}

.auth-message-list {
    margin: 0;
    padding-left: 1.1rem;
}

/* Forms and Bootstrap resets */
.form-label {
    color: var(--text-color);
    font-weight: 800;
    font-size: 0.92rem;
}

.form-control,
.form-select {
    min-height: 2.72rem;
    border: 1px solid rgba(42, 48, 59, 0.16);
    border-radius: var(--radius-md);
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.76);
    box-shadow: none !important;
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(159, 38, 54, 0.55);
    box-shadow: 0 0 0 0.23rem rgba(159, 38, 54, 0.13) !important;
}

.input-group .btn {
    border-radius: var(--radius-md);
}

.password-toggle {
    min-width: 76px;
}

.password-help {
    margin-top: 0.42rem;
    color: var(--muted-color);
    font-size: 0.84rem;
    line-height: 1.35;
}

.password-help-warning {
    color: #6f4708;
    background: #fff4d7;
    border: 1px solid #e5bf62;
    border-radius: var(--radius-md);
    padding: 0.55rem 0.7rem;
}

.password-help strong,
.password-help span {
    display: block;
}

.btn {
    border-radius: var(--radius-md);
    font-weight: 800;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-success,
.btn-danger,
.btn-secondary {
    border: 0;
    box-shadow: 0 10px 22px rgba(15, 20, 32, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #c24345);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary-color));
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-green), #7f985d);
}

.btn-danger {
    background: linear-gradient(135deg, #b62f3d, #d85a49);
}

.btn-secondary {
    background: linear-gradient(135deg, #4b5565, #697386);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: rgba(159, 38, 54, 0.42);
}

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

.btn-outline-secondary {
    color: #4b5565;
    border-color: rgba(75, 85, 101, 0.28);
}

.btn-outline-secondary:hover {
    color: #fff;
    background: #4b5565;
}

.btn-custom {
    position: relative;
    overflow: hidden;
    padding: 0.88rem 1.65rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), #b9463d 52%, var(--secondary-color));
    box-shadow: 0 18px 42px rgba(8, 10, 18, 0.30);
}

.btn-custom:hover {
    color: #fff;
    box-shadow: 0 20px 50px rgba(8, 10, 18, 0.36);
}

/* Hero and page layout */
.content-section {
    flex: 1 0 auto;
    animation: sectionIn 220ms ease both;
}

#main-app {
    min-height: 100vh;
    flex-direction: column;
}

#main-app:not(.d-none) {
    display: flex !important;
}

@keyframes sectionIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-section {
    position: relative;
    min-height: 190px;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(117, 25, 40, 0.96), rgba(18, 22, 31, 0.98) 48%, rgba(31, 111, 130, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
    border-bottom: 1px solid rgba(201, 154, 46, 0.6);
    box-shadow: inset 0 -64px 90px rgba(0, 0, 0, 0.22);
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-blue));
}

.hero-overlay {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.74);
}

.hero-overlay:has(> .btn:only-child) {
    display: grid;
    place-items: center;
}

.hero-overlay h1 {
    margin-bottom: 1rem;
    color: #fff8ec;
    font-size: clamp(2.1rem, 5vw, 4.8rem);
    line-height: 1.02;
}

.hero-overlay .lead {
    max-width: 680px;
    margin-inline: auto;
    color: rgba(255, 248, 236, 0.90);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.55rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 76px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

section > .container.py-5,
section > .container.py-4 {
    position: relative;
}

/* Cards */
.card {
    overflow: hidden;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg);
    color: var(--text-color);
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
    border-color: rgba(201, 154, 46, 0.34) !important;
}

.hover-card:hover,
.category-card:hover,
.kitap-karti:hover,
.soz-karti:hover,
.fotograf-karti:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.42);
}

.card-header.text-white h1,
.card-header.text-white h2,
.card-header.text-white h3,
.card-header.text-white h4,
.card-header.text-white h5,
.card-header.text-white h6,
.card-header.bg-dark h1,
.card-header.bg-dark h2,
.card-header.bg-dark h3,
.card-header.bg-dark h4,
.card-header.bg-dark h5,
.card-header.bg-dark h6,
.card-header.bg-secondary h1,
.card-header.bg-secondary h2,
.card-header.bg-secondary h3,
.card-header.bg-secondary h4,
.card-header.bg-secondary h5,
.card-header.bg-secondary h6,
.card-header.bg-success h1,
.card-header.bg-success h2,
.card-header.bg-success h3,
.card-header.bg-success h4,
.card-header.bg-success h5,
.card-header.bg-success h6 {
    color: #fff8ec;
}

[data-theme="dark"] .card-header {
    background: rgba(255, 255, 255, 0.05);
}

.card-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(15, 20, 32, 0.03);
}

.category-card {
    position: relative;
    min-height: 126px;
    justify-content: center;
    isolation: isolate;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 234, 0.94)),
        linear-gradient(135deg, rgba(159, 38, 54, 0.08), transparent 44%);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0.86;
    z-index: -1;
}

.category-action {
    display: block;
    width: 100%;
    border: 1px solid var(--border-color) !important;
    text-align: left;
    cursor: pointer;
}

.category-action:focus-visible {
    outline: 3px solid rgba(201, 154, 46, 0.45);
    outline-offset: 3px;
}

[data-theme="dark"] .category-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, rgba(207, 69, 89, 0.16), rgba(31, 111, 130, 0.10));
}

.category-card h4 {
    color: var(--primary-strong);
    font-size: 1.08rem;
    line-height: 1.25;
}

.category-card p {
    margin-bottom: 0;
    color: var(--muted-color);
    line-height: 1.45;
}

[data-theme="dark"] .category-card p {
    color: rgba(236, 231, 221, 0.78);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.quick-action {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.7rem;
    row-gap: 0.12rem;
    align-items: center;
    min-height: 78px;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(201, 154, 46, 0.34);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 234, 0.88)),
        linear-gradient(135deg, rgba(159, 38, 54, 0.10), rgba(31, 111, 130, 0.08));
    color: var(--text-color);
    text-align: left;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.quick-action:hover,
.quick-action:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(159, 38, 54, 0.42);
    box-shadow: var(--shadow-hover);
}

.quick-action span {
    grid-row: span 2;
    font-size: 1.35rem;
}

.quick-action strong {
    color: var(--primary-strong);
    font-family: var(--font-cinzel);
    font-size: 0.98rem;
    line-height: 1.15;
}

.quick-action small {
    color: var(--muted-color);
    line-height: 1.25;
}

.daily-card {
    border-color: rgba(201, 154, 46, 0.5) !important;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 234, 0.94)),
        linear-gradient(135deg, rgba(201, 154, 46, 0.12), transparent 48%);
    box-shadow: var(--shadow-soft);
}

.daily-card .card-header,
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary-color) 54%, var(--secondary-color)) !important;
}

.daily-card .card-header {
    padding: 0.8rem 1rem;
}

.daily-card .card-body {
    padding: 1.25rem 1rem 1.35rem;
}

.daily-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border: 1px solid rgba(201, 154, 46, 0.55);
    border-radius: 50%;
    color: var(--primary-strong);
    background: linear-gradient(135deg, #fff8df, #efd899);
    font-size: 2.7rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), var(--shadow-soft);
}

#countdown {
    padding: 0.55rem 0.7rem;
    background: var(--accent-ink) !important;
}

.project-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.34rem 0.65rem;
    border: 1px solid rgba(201, 154, 46, 0.46);
    border-radius: 99px;
    color: var(--primary-strong);
    background: rgba(201, 154, 46, 0.13);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.topic-detail-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.topic-detail-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.topic-detail-head p {
    max-width: 880px;
    font-size: 1.04rem;
}

.topic-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.topic-stat {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(201, 154, 46, 0.32);
    border-radius: var(--radius-lg);
    color: var(--primary-strong);
    background: rgba(255, 252, 246, 0.72);
    font-weight: 900;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.topic-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 241, 0.78)),
        linear-gradient(135deg, rgba(159, 38, 54, 0.08), transparent 48%);
}

.topic-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.topic-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted-color);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.topic-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 99px;
    background: rgba(201, 154, 46, 0.14);
}

.topic-card h3 {
    margin: 0;
    color: var(--primary-strong);
    font-size: 1.12rem;
    line-height: 1.22;
}

.topic-card p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.58;
}

.topic-note {
    margin-top: auto;
    padding: 0.7rem;
    border-left: 3px solid var(--secondary-color);
    border-radius: var(--radius-md);
    color: #5f4a1f;
    background: rgba(201, 154, 46, 0.12);
    font-size: 0.9rem;
    line-height: 1.45;
}

.ataturk-life-page {
    max-width: 1180px;
}

.ataturk-life-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: end;
    gap: 1.25rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(201, 154, 46, 0.28);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 234, 0.92)),
        linear-gradient(135deg, rgba(159, 38, 54, 0.08), transparent 52%);
    box-shadow: var(--shadow-soft);
}

.ataturk-life-hero h2 {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    line-height: 1.05;
}

.ataturk-life-hero .lead {
    max-width: 820px;
    color: var(--muted-color);
    line-height: 1.55;
}

.ataturk-life-facts {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-md);
    color: #fff8ec;
    background: linear-gradient(145deg, var(--primary-strong), var(--primary-color) 55%, #2d4f5a);
}

.ataturk-life-facts strong {
    font-family: var(--font-cinzel);
    font-size: 1.45rem;
    line-height: 1.1;
}

.ataturk-life-facts span {
    color: rgba(255, 248, 236, 0.82);
    font-size: 0.92rem;
    line-height: 1.35;
}

.ataturk-life-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 1.25rem;
}

.ataturk-life-article {
    display: grid;
    gap: 1rem;
}

.ataturk-life-article section {
    padding: clamp(1.1rem, 2.4vw, 1.65rem);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 246, 0.92);
    box-shadow: var(--shadow-soft);
}

.ataturk-life-article h3 {
    margin-bottom: 0.85rem;
    color: var(--primary-strong);
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    line-height: 1.2;
}

.ataturk-life-article p {
    margin-bottom: 0.85rem;
    color: #2c3442;
    font-size: 1.02rem;
    line-height: 1.75;
}

.ataturk-life-article p:last-child {
    margin-bottom: 0;
}

.ataturk-congress-timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.ataturk-congress-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem;
    border: 1px solid rgba(201, 154, 46, 0.30);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 234, 0.80));
}

.ataturk-congress-card span {
    width: fit-content;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(33, 38, 48, 0.08);
    color: var(--muted-color);
    font-size: 0.74rem;
    font-weight: 900;
}

.ataturk-congress-card strong {
    color: var(--primary-strong);
    font-family: var(--font-cinzel);
    font-size: 1.02rem;
    line-height: 1.2;
}

.ataturk-congress-card p,
.ataturk-congress-card em {
    margin: 0;
    color: #344051;
    font-size: 0.92rem;
    line-height: 1.55;
}

.ataturk-congress-card em {
    color: var(--accent-ink);
    font-style: normal;
    font-weight: 800;
}

.source-panel {
    padding: 1rem;
    border: 1px solid rgba(201, 154, 46, 0.34);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 247, 234, 0.78)),
        linear-gradient(135deg, rgba(31, 111, 130, 0.06), transparent 60%);
    box-shadow: var(--shadow-soft);
}

.source-panel h3 {
    margin-bottom: 0.35rem;
    color: var(--primary-strong);
    font-family: var(--font-cinzel);
    font-size: 1.08rem;
}

.source-panel p {
    margin-bottom: 0.75rem;
    color: var(--muted-color);
    font-size: 0.92rem;
    line-height: 1.45;
}

.source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.source-list a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.38rem 0.65rem;
    border: 1px solid rgba(159, 38, 54, 0.20);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--primary-strong);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.source-list a:hover,
.source-list a:focus-visible {
    border-color: rgba(159, 38, 54, 0.42);
    background: rgba(201, 154, 46, 0.14);
}

.ataturk-life-aside {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 0.75rem;
}

.ataturk-mini-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(201, 154, 46, 0.32);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: rgba(255, 252, 246, 0.94);
    box-shadow: var(--shadow-soft);
}

.ataturk-mini-card span {
    color: var(--muted-color);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ataturk-mini-card strong {
    color: var(--accent-ink);
    font-size: 0.98rem;
    line-height: 1.25;
}

/* Games */
.game-topbar {
    display: none !important;
}

.game-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 56px;
    padding-block: 0.48rem;
    overflow-x: auto;
}

.game-topbar-label {
    flex: 0 0 auto;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-topbar-link {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 99px;
    padding: 0.5rem 0.82rem;
    color: rgba(255, 248, 236, 0.88);
    background: rgba(255, 255, 255, 0.07);
    font-weight: 900;
    line-height: 1.12;
}

.game-topbar-link:hover,
.game-topbar-link.active {
    color: #171923;
    border-color: var(--secondary-color);
    background: var(--secondary-color);
}

.games-nav-link {
    font-weight: 900 !important;
}

.games-dropdown .dropdown-item {
    padding: 0.65rem 0.75rem;
    font-weight: 800;
}

.game-tabs .nav-link {
    min-height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    color: var(--text-color) !important;
    background: var(--card-bg);
    font-weight: 900;
}

.game-tabs .nav-link:hover {
    border-color: rgba(201, 154, 46, 0.65);
    background: rgba(201, 154, 46, 0.13);
}

.game-tabs .nav-link.active {
    color: #fff !important;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
}

.quiz-difficulty-bar {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.quiz-difficulty-btn {
    min-width: 92px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background: var(--bg-elevated);
    font-weight: 900;
}

.quiz-difficulty-btn:hover,
.quiz-difficulty-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.quiz-btn {
    width: 100%;
    margin-bottom: 0;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-color);
    text-align: left;
    background: var(--bg-elevated);
    box-shadow: none;
}

.quiz-btn:hover {
    border-color: rgba(201, 154, 46, 0.72);
    background: rgba(201, 154, 46, 0.12);
}

.quiz-btn.correct {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #16875a, #4fa265) !important;
}

.quiz-btn.wrong {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #b4233a, #df6c4f) !important;
}

.answer-feedback {
    display: grid;
    gap: 0.42rem;
    margin-top: 0.95rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-md);
    background: rgba(255, 252, 246, 0.96);
    text-align: left;
}

.answer-feedback strong {
    color: var(--text-color);
    font-family: var(--font-cinzel);
    line-height: 1.25;
}

.answer-feedback small {
    color: var(--muted-color);
    font-weight: 800;
}

.answer-feedback p {
    margin: 0;
    color: #344051;
    line-height: 1.55;
}

.answer-feedback-correct {
    border-left-color: var(--success-color);
}

.answer-feedback-correct strong {
    color: #16875a;
}

.answer-feedback-wrong {
    border-left-color: #b4233a;
}

.answer-feedback-wrong strong {
    color: #9f2636;
}

.match-column {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
}

#match-definitions.match-column {
    flex-direction: column;
    align-items: stretch;
}

.match-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.72rem 0.85rem;
    color: var(--text-color);
    background: var(--bg-elevated);
    font-weight: 900;
    line-height: 1.25;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.08);
}

#match-definitions .match-card {
    width: 100%;
    text-align: left;
}

.match-card:hover:not(:disabled) {
    border-color: rgba(201, 154, 46, 0.78);
    background: rgba(201, 154, 46, 0.13);
}

.match-card.selected {
    color: #211b0b;
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #ffe08a, #c99a2e);
    box-shadow: 0 0 0 4px rgba(201, 154, 46, 0.24);
}

.match-card.correct {
    color: #093f2b;
    border-color: #36a36a;
    background: #d9f2df;
    box-shadow: none;
}

.match-card:disabled {
    cursor: default;
    opacity: 1;
}

.duel-scoreboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.duel-player {
    display: grid;
    gap: 0.22rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    background: var(--bg-elevated);
}

.duel-player span {
    color: var(--muted-color);
    font-size: 0.9rem;
}

.games-shortcut-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid rgba(201, 154, 46, 0.38);
    border-radius: var(--radius-lg);
    color: #fff8ec;
    background: linear-gradient(135deg, rgba(117, 25, 40, 0.94), rgba(31, 111, 130, 0.88));
    box-shadow: var(--shadow);
}

.games-shortcut-kicker {
    display: inline-block;
    margin-bottom: 0.25rem;
    color: #ffe08a;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.games-shortcut-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

/* Dynamic content */
.info-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.56);
}

[data-theme="dark"] .info-card {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    color: var(--text-color);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

.modal-header.bg-primary,
.modal-header.bg-success,
.modal-header.bg-info,
.modal-header.bg-danger,
.modal-header.bg-dark {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary-color), var(--accent-blue)) !important;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
}

.timeline-item.dragging {
    opacity: 0.68;
}

.timeline-handle {
    flex: 0 0 auto;
    padding: 0.28rem 0.5rem;
    border-radius: 99px;
    color: #fff;
    background: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 900;
}

.timeline-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Gallery, books, quotes */
.fotograf-karti,
.kitap-karti,
.soz-karti {
    height: 100%;
}

.foto-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: #111722;
}

.fotograf-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 220ms ease, filter 220ms ease;
}

.fotograf-karti:hover .fotograf-img {
    transform: scale(1.045);
    filter: saturate(1.05) contrast(1.05);
}

.foto-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    color: #fff;
    background: rgba(8, 11, 18, 0.58);
    transition: opacity var(--transition);
}

.fotograf-karti:hover .foto-overlay {
    opacity: 1;
}

.archive-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 1rem;
    align-items: stretch;
    padding: 1.5rem;
    border: 1px solid rgba(117, 25, 40, 0.12);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(243, 238, 226, 0.78));
    box-shadow: var(--shadow-sm);
}

.archive-hero .lead {
    max-width: 760px;
    color: var(--muted-color);
}

.archive-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.archive-stats div {
    display: grid;
    align-content: center;
    min-height: 96px;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(117, 25, 40, 0.1);
}

.archive-stats strong {
    font-size: 1.55rem;
    line-height: 1;
    color: var(--primary-color);
}

.archive-stats span {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--muted-color);
}

.archive-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 230px) minmax(190px, 240px);
    gap: 0.75rem;
    align-items: center;
}

.archive-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.archive-source-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.archive-source-note h3,
.archive-source-note p {
    flex-basis: 100%;
}

.archive-source-note span {
    color: var(--muted-color);
    font-size: 0.92rem;
}

.archive-photo-card .card-body {
    display: grid;
    align-content: start;
}

.archive-photo-card .card-title {
    display: -webkit-box;
    min-height: 3.6em;
    overflow: hidden;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.archive-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.archive-card-meta,
.archive-detail-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

.archive-card-meta div,
.archive-detail-list div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.5rem;
}

.archive-card-meta dt,
.archive-detail-list dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--muted-color);
}

.archive-card-meta dd,
.archive-detail-list dd {
    min-width: 0;
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.archive-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.archive-modal-img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: #111722;
}

.archive-detail-panel {
    display: grid;
    gap: 0.9rem;
}

.archive-description,
.archive-note {
    margin: 0;
    color: var(--muted-color);
    line-height: 1.6;
}

.archive-note {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(117, 25, 40, 0.06);
}

.archive-description-en {
    font-style: italic;
}

.kitap-karti {
    cursor: pointer;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 229, 209, 0.68)),
        linear-gradient(90deg, rgba(117, 25, 40, 0.08), transparent);
}

[data-theme="dark"] .kitap-karti {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(201, 154, 46, 0.08)),
        var(--card-bg);
}

.kitap-icon {
    display: inline-grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-inline: auto;
    border-radius: 50%;
    background: rgba(201, 154, 46, 0.18);
    font-size: 2.15rem;
    transition: transform var(--transition);
}

.kitap-karti:hover .kitap-icon {
    transform: scale(1.06) rotate(3deg);
}

.soz-karti {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 241, 0.76)),
        linear-gradient(90deg, rgba(31, 111, 130, 0.08), transparent);
}

[data-theme="dark"] .soz-karti {
    background: var(--card-bg);
}

.soz-karti .card-text {
    min-height: 120px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-family: var(--font-merriweather);
    font-size: 0.98rem;
    font-style: italic;
    line-height: 1.7;
}

.soz-karti .card-footer {
    color: var(--muted-color);
}

/* Profile */
.profile-photo-wrap {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 4px solid rgba(201, 154, 46, 0.86);
    border-radius: 50%;
    background: linear-gradient(135deg, #fff8df, #dfcfaa);
    box-shadow: var(--shadow-soft);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--primary-strong);
    font-weight: 900;
}

.profile-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.profile-insight-card {
    min-height: 128px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
}

.profile-insight-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--primary-color);
    font-family: var(--font-cinzel);
    font-size: 1.18rem;
}

.profile-insight-label {
    display: block;
    color: var(--muted-color);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-recent-list {
    display: grid;
    gap: 0.62rem;
    margin-top: 0.7rem;
}

.profile-recent-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.62rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-recent-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.profile-recent-item strong,
.profile-recent-item small {
    display: block;
}

.profile-recent-item strong {
    margin: 0;
    color: var(--text-color);
    font-family: var(--font-roboto);
    font-size: 0.95rem;
}

.profile-recent-item small {
    color: var(--muted-color);
}

.profile-recent-item > span {
    color: var(--success-color);
    font-weight: 900;
    white-space: nowrap;
}

.profile-earned-card {
    grid-column: 1 / -1;
}

.profile-earned-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.profile-earned-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.62rem;
    border: 1px solid rgba(201, 154, 46, 0.45);
    border-radius: 999px;
    background: rgba(201, 154, 46, 0.12);
    color: var(--text-color);
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-user-photo {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    object-fit: cover;
}

.admin-user-photo-empty {
    display: grid;
    place-items: center;
    color: var(--primary-strong);
    background: #f1e6cf;
    font-size: 0.7rem;
    font-weight: 900;
}

/* Tables and analytics */
.table {
    margin-bottom: 0;
    color: var(--text-color);
    background: transparent;
}

.table > :not(caption) > * > * {
    color: var(--text-color);
    background: transparent;
    border-bottom-color: var(--border-color);
}

.table thead th {
    color: var(--muted-color);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.table-hover tbody tr:hover > * {
    background: rgba(201, 154, 46, 0.10);
}

.table-responsive {
    border-radius: var(--radius-md);
}

.analytics-list {
    display: grid;
    gap: 0.78rem;
}

.analytics-row {
    font-size: 0.95rem;
}

.analytics-bar {
    height: 8px;
    margin-top: 0.38rem;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(31, 111, 130, 0.12);
}

.analytics-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-blue), var(--secondary-color));
}

.badge {
    border-radius: 99px;
    font-weight: 900;
}

.alert {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* Announcement */
.announcement-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(7, 10, 17, 0.68);
    backdrop-filter: blur(5px);
}

body.announcement-open {
    overflow: hidden;
}

.announcement-box {
    width: min(540px, calc(100vw - 2rem));
    max-height: min(78vh, 640px);
    overflow: auto;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    color: #fff8ec;
    background:
        linear-gradient(135deg, rgba(117, 25, 40, 0.96), rgba(31, 111, 130, 0.94)),
        url("images/indir-hero-wide.jpg");
    background-size: cover;
    background-position: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.announcement-box h2,
.announcement-box .text-muted,
.announcement-box small {
    color: #fff8ec !important;
}

.announcement-box .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

.announcement-body {
    display: grid;
    gap: 0.75rem;
}

.announcement-body > p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}

.announcement-card {
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
}

.announcement-card p {
    margin: 0.35rem 0;
}

.announcement-read-btn {
    min-width: 112px;
    border: 0;
    color: var(--primary-strong);
    background: #fff8ec;
}

/* Admin page */
body:has(#admin-dashboard) main.container {
    max-width: 1180px;
}

#admin-dashboard .card strong.fs-3 {
    color: var(--accent-ink);
}

[data-theme="dark"] #admin-dashboard .card strong.fs-3 {
    color: #fff8ec;
}

#admin-login-card {
    margin-top: clamp(2rem, 8vh, 5rem);
}

/* Home and games balance */
#anasayfa > .container {
    max-width: 1320px;
}

#anasayfa {
    display: flex;
    position: relative;
    align-items: flex-start;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 252, 246, 0.76), rgba(255, 252, 246, 0) 24rem),
        repeating-linear-gradient(90deg, transparent 0 118px, rgba(100, 124, 80, 0.06) 118px 119px),
        repeating-linear-gradient(180deg, transparent 0 118px, rgba(159, 38, 54, 0.04) 118px 119px);
}

#anasayfa::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-blue));
    opacity: 0.72;
}

#anasayfa::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: min(250px, 24vh);
    border-top: 1px solid rgba(201, 154, 46, 0.18);
    background:
        repeating-linear-gradient(0deg, rgba(21, 25, 35, 0.045) 0 1px, transparent 1px 34px),
        linear-gradient(180deg, rgba(255, 252, 246, 0), rgba(159, 38, 54, 0.055) 54%, rgba(31, 111, 130, 0.055));
    opacity: 0.72;
    pointer-events: none;
}

#anasayfa > .container.py-5 {
    position: relative;
    z-index: 1;
    padding-top: clamp(3rem, 7vh, 5.25rem) !important;
    padding-bottom: clamp(2.25rem, 6vh, 4.5rem) !important;
}

#anasayfa > .container > .row {
    align-items: flex-start;
    justify-content: center;
}

#anasayfa .col-lg-8 {
    max-width: 840px;
}

#anasayfa .col-lg-4 {
    max-width: 390px;
    padding-top: 4.05rem;
}

#anasayfa .row.g-4 {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

#anasayfa .row.g-4 > [class*="col-"] {
    display: flex;
}

#anasayfa .category-card {
    width: 100%;
    min-height: 150px;
    padding: 1.25rem 1.25rem 1.25rem 1.35rem !important;
}

#anasayfa .daily-card {
    max-width: 360px;
    margin-inline: auto;
}

#oyunlar > .container {
    max-width: 1040px;
}

#oyunlar {
    min-height: calc(100vh - 150px);
}

#oyunlar .tab-content {
    max-width: 900px;
    margin-inline: auto;
}

#quiz-game .col-md-8,
#duel-game .col-lg-9,
#leaderboard-game .col-lg-8 {
    width: 100%;
    max-width: 760px;
    flex: 0 0 100%;
}

#match-game .col-lg-10 {
    width: 100%;
    max-width: 940px;
    flex: 0 0 100%;
}

#oyunlar .card {
    margin-bottom: 0;
}

#oyunlar .card-footer {
    text-align: center;
}

#oyunlar .card-header {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#oyunlar .card-body.p-5 {
    padding: clamp(1.25rem, 4vw, 2.25rem) !important;
}

#question-text,
#duel-question {
    max-width: 760px;
    margin-inline: auto;
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    line-height: 1.25;
}

/* Footer and utilities */
footer.bg-dark {
    margin-top: 0 !important;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, #111722, #171923 54%, #23141a) !important;
}

.text-gradient {
    color: transparent;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
}

.shadow-custom {
    box-shadow: var(--shadow);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(31, 36, 48, 0.08);
}

::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 99px;
    background: linear-gradient(var(--primary-color), var(--secondary-color)) padding-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand {
        max-width: calc(100vw - 96px);
    }

    .navbar-collapse {
        margin-top: 0.55rem;
        padding: 0.55rem;
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: var(--radius-lg);
        background: rgba(8, 11, 18, 0.58);
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .navbar .nav-link {
        min-height: 38px;
        display: flex;
        align-items: center;
        text-align: left;
    }

    .game-topbar {
        top: 58px;
    }

    .daily-card {
        position: static !important;
    }
}

@media (max-width: 767.98px) {
    .archive-hero,
    .archive-toolbar,
    .archive-modal-grid {
        grid-template-columns: 1fr;
    }

    .archive-stats {
        grid-template-columns: 1fr 1fr;
    }

    .archive-search {
        grid-template-columns: 1fr;
    }

    .archive-card-meta div,
    .archive-detail-list div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .quick-action {
        min-height: 64px;
        padding: 0.7rem 0.8rem;
    }

    body {
        font-size: 0.95rem;
        background: #f8f3ea;
        background-attachment: scroll;
    }

    body::before {
        display: none;
    }

    .content-section > .container,
    .content-section > .container.py-4,
    .content-section > .container.py-5 {
        padding-top: 1.6rem !important;
        padding-bottom: 1.9rem !important;
        padding-inline: 0.95rem;
    }

    .content-section .text-center.mb-5,
    .content-section .text-center.mb-4 {
        margin-bottom: 1.15rem !important;
    }

    .row.g-3,
    .row.g-4 {
        --bs-gutter-y: 0.85rem;
    }

    .card {
        margin-bottom: 0.85rem;
    }

    #auth-container {
        align-items: flex-start !important;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    #auth-container::before {
        background: linear-gradient(145deg, #111722, #751928);
    }

    .auth-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        padding: 1.25rem !important;
    }

    .hero-section {
        min-height: auto;
        align-items: center !important;
        padding: 2rem 0 2.15rem;
        background: linear-gradient(145deg, #151923, #751928 58%, #1f6f82);
    }

    .hero-overlay {
        padding: 1.25rem !important;
        text-align: center;
    }

    .hero-overlay h1 {
        max-width: 360px;
        margin-inline: auto;
        font-size: 2rem;
        line-height: 1.08;
    }

    .hero-overlay .lead {
        max-width: 330px;
        margin-inline: auto;
    }

    #anasayfa > .container {
        padding-inline: 1rem;
    }

    #anasayfa {
        display: block;
    }

    #anasayfa > .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
    }

    #anasayfa .col-lg-8,
    #anasayfa .col-lg-4 {
        max-width: 100%;
        padding-top: 0;
        width: 100%;
    }

    .section-title {
        display: block;
        text-align: center;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    #anasayfa .category-card,
    .category-card {
        min-height: auto;
        padding: 0.95rem 1rem 0.95rem 1.05rem !important;
        text-align: center;
    }

    .category-action {
        text-align: center;
    }

    .category-card h4 {
        font-size: 1rem;
        margin-bottom: 0.45rem;
    }

    .category-card p {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .daily-card .card-header h5 {
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    .topic-detail-head {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .topic-detail-head .btn {
        justify-self: center;
    }

    .topic-detail-head p {
        font-size: 0.95rem;
    }

    .topic-overview-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .topic-stat {
        padding: 0.65rem 0.8rem;
        font-size: 0.9rem;
    }

    .topic-card .card-body {
        padding: 0.9rem;
    }

    .topic-card h3 {
        font-size: 1.02rem;
    }

    .topic-card p,
    .topic-note {
        font-size: 0.88rem;
    }

    .ataturk-life-page {
        padding-inline: 0.95rem !important;
    }

    .ataturk-life-hero,
    .ataturk-life-grid {
        grid-template-columns: 1fr;
    }

    .ataturk-life-hero {
        padding: 1rem;
        text-align: center;
    }

    .ataturk-life-hero h2 {
        font-size: 1.72rem;
        line-height: 1.12;
    }

    .ataturk-life-hero .lead {
        font-size: 0.96rem;
        line-height: 1.5;
    }

    .ataturk-life-hero .project-label {
        margin-inline: auto;
    }

    .ataturk-life-facts {
        border-left: 0;
        border-top: 4px solid var(--secondary-color);
        padding: 0.85rem;
        text-align: center;
    }

    .ataturk-life-facts strong {
        font-size: 1.2rem;
    }

    .ataturk-life-facts span {
        font-size: 0.86rem;
    }

    .ataturk-life-article section {
        padding: 1rem;
    }

    .ataturk-life-article h3 {
        font-size: 1.12rem;
    }

    .ataturk-life-article p {
        font-size: 0.92rem;
        line-height: 1.58;
    }

    .ataturk-congress-timeline {
        grid-template-columns: 1fr;
    }

    .ataturk-congress-card {
        padding: 0.85rem;
    }

    .ataturk-congress-card p,
    .ataturk-congress-card em {
        font-size: 0.88rem;
    }

    .ataturk-life-aside {
        position: static;
        grid-template-columns: 1fr;
    }

    #oyunlar > .container {
        padding-inline: 0.85rem;
        padding-top: 1.25rem !important;
        padding-bottom: 1.75rem !important;
    }

    #game-topbar {
        display: none !important;
    }

    #oyunlar .text-center.mb-4 {
        margin-bottom: 0.8rem !important;
    }

    #oyunlar h2 {
        color: var(--accent-ink);
        margin-bottom: 0.35rem;
        font-size: 1.45rem;
    }

    #oyunlar .text-center.mb-4 p {
        max-width: 320px;
        margin-inline: auto;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    #oyunlar .text-muted {
        color: #687080 !important;
    }

    .game-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem !important;
        margin-bottom: 0.9rem !important;
    }

    .game-tabs .nav-item,
    .game-tabs .nav-link {
        width: 100%;
    }

    .game-tabs .nav-link {
        min-height: 38px;
        padding: 0.42rem 0.45rem !important;
        white-space: normal;
        font-size: 0.85rem;
        line-height: 1.15;
        color: var(--text-color) !important;
        background: rgba(255, 252, 246, 0.92);
    }

    .game-tabs .nav-link.active {
        color: #ffffff !important;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    }

    #oyunlar .card-header {
        min-height: 42px;
        padding: 0.55rem 0.75rem;
        justify-content: center !important;
        text-align: center;
    }

    #oyunlar .card-header h4 {
        font-size: 0.95rem;
    }

    #oyunlar .card-header .badge {
        position: static;
        font-size: 0.72rem;
    }

    #question-text,
    #duel-question {
        margin-bottom: 1rem !important;
        font-size: 1rem;
        line-height: 1.25;
    }

    #oyunlar .card-body.p-5,
    #oyunlar .card-body.p-4 {
        padding: 1rem !important;
    }

    #options-area,
    #duel-options {
        gap: 0.55rem !important;
    }

    .quiz-difficulty-bar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .quiz-difficulty-btn {
        min-width: 0;
        width: 100%;
        min-height: 36px;
        padding: 0.38rem 0.45rem;
    }

    .quiz-btn,
    .match-card {
        min-height: 42px;
        padding: 0.62rem 0.72rem;
        font-size: 0.9rem;
        line-height: 1.22;
    }

    .duel-scoreboard {
        gap: 0.5rem;
    }

    .duel-player {
        padding: 0.65rem;
    }

    .game-topbar-inner {
        justify-content: flex-start;
    }

    .games-shortcut-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .games-shortcut-actions {
        justify-content: stretch;
    }

    .games-shortcut-actions .btn {
        flex: 1 1 150px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        margin-bottom: 0.5rem;
        border-radius: var(--radius-md) !important;
    }

    .fotograf-img,
    .foto-container {
        height: 170px !important;
    }

    .table-responsive {
        font-size: 0.88rem;
    }

    .border-end {
        border-right: 0 !important;
    }

    .announcement-box {
        width: min(430px, calc(100vw - 1.4rem));
        max-height: 82vh;
        padding: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .profile-insights {
        grid-template-columns: 1fr;
    }

    .profile-insight-card {
        min-height: 0;
    }

    .profile-recent-item {
        align-items: flex-start;
    }

    .navbar-brand span {
        font-size: 0.92rem;
        white-space: normal;
    }

    .display-4 {
        font-size: 1.95rem;
    }

    .hero-section {
        padding-block: 1.8rem 2rem;
    }

    .hero-overlay h1 {
        font-size: 1.72rem;
    }

    .col-6 {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .fotograf-img,
    .foto-container {
        height: 140px !important;
    }

    .card-body.p-5 {
        padding: 1.35rem !important;
    }

    .game-tabs {
        grid-template-columns: 1fr 1fr;
    }

    .quiz-btn {
        padding: 0.62rem 0.72rem;
        text-align: center;
    }
}
