/* Parça — proje seçici (9800) tasarım dili */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ink: #0c0b10;
    --cream: #f3ebe0;
    --cream-dim: #9a8f82;
    --coral: #ff5c4d;
    --violet: #9d7aff;
    --mint: #5ee4c7;
    --card: rgba(22, 20, 31, 0.8);
    --card-bg: rgba(22, 20, 31, 0.8);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    background: var(--ink);
    color: var(--cream);
    min-height: 100vh;
    padding:
        calc(1.5rem + env(safe-area-inset-top, 0px))
        calc(1.25rem + env(safe-area-inset-right, 0px))
        calc(2.5rem + env(safe-area-inset-bottom, 0px))
        calc(1.25rem + env(safe-area-inset-left, 0px));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 10%, rgba(255, 92, 77, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 80% 90%, rgba(157, 122, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
    max-width: 52rem;
    margin: 0 auto;
}

/* ── Header ── */

.page-header {
    margin-bottom: 2rem;
}

.page-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-back {
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--cream-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-back:hover {
    color: var(--cream);
}

.page-back--spacer {
    visibility: hidden;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.site-label {
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--cream-dim);
    margin-bottom: 0.5rem;
}

.page-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--cream) 30%, var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    margin-top: 0.65rem;
    color: var(--cream-dim);
    font-size: 0.95rem;
    max-width: 36rem;
    line-height: 1.6;
}

.page-footer {
    margin-top: 2.5rem;
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(154, 143, 130, 0.5);
    text-align: center;
}

/* ── Kart ── */

.card {
    background: var(--card);
    border: 1px solid rgba(243, 235, 224, 0.08);
    border-radius: 1.25rem;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card + .card {
    margin-top: 1.25rem;
}

.card-badge {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--mint);
    margin-bottom: 0.85rem;
    display: inline-block;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--cream-dim);
    line-height: 1.5;
}

/* ── Sekmeler ── */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tab {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(154, 143, 130, 0.2);
    background: rgba(154, 143, 130, 0.08);
    color: var(--cream-dim);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tab.is-active {
    background: rgba(94, 228, 199, 0.1);
    color: var(--mint);
    border-color: rgba(94, 228, 199, 0.25);
}

/* ── Form ── */

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field-label {
    display: block;
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin-bottom: 0.4rem;
}

.field-input,
.field-textarea,
.field-select {
    width: 100%;
    font-family: "DM Mono", monospace;
    font-size: 0.82rem;
    color: var(--cream);
    background: rgba(12, 11, 16, 0.55);
    border: 1px solid rgba(243, 235, 224, 0.1);
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
    transition: border-color 0.2s ease;
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
    outline: none;
    border-color: rgba(157, 122, 255, 0.45);
}

.field-textarea {
    min-height: 12rem;
    resize: vertical;
    line-height: 1.55;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    min-width: 0;
}

.field-hint {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--cream-dim);
    line-height: 1.45;
}

.field-hint.is-ok { color: var(--mint); }
.field-hint.is-bad { color: var(--coral); }

.field-error {
    font-size: 0.82rem;
    color: var(--coral);
    line-height: 1.45;
}

.form-divider {
    border: none;
    border-top: 1px solid rgba(243, 235, 224, 0.06);
    margin: 0.25rem 0;
}

.slug-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.slug-prefix {
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
    color: var(--cream-dim);
    padding: 0.55rem 0;
    white-space: nowrap;
}

.slug-input {
    flex: 1 1 10rem;
    min-width: 0;
}

.content-counter {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
}

.content-counter.is-over {
    color: var(--coral);
}

/* ── Butonlar & chip ── */

.btn {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn--primary {
    background: rgba(157, 122, 255, 0.18);
    color: var(--cream);
    border-color: rgba(157, 122, 255, 0.35);
}

.btn--primary:hover {
    background: rgba(157, 122, 255, 0.28);
    border-color: rgba(157, 122, 255, 0.5);
}

.btn--ghost {
    background: rgba(154, 143, 130, 0.1);
    color: var(--cream-dim);
    border-color: rgba(154, 143, 130, 0.2);
}

.btn--ghost:hover {
    color: var(--cream);
    border-color: rgba(154, 143, 130, 0.35);
}

.btn--mint {
    background: rgba(94, 228, 199, 0.1);
    color: var(--mint);
    border-color: rgba(94, 228, 199, 0.25);
}

.btn--mint:hover {
    background: rgba(94, 228, 199, 0.16);
}

.btn--wide {
    width: 100%;
}

.chip {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(94, 228, 199, 0.1);
    color: var(--mint);
    border: 1px solid rgba(94, 228, 199, 0.25);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ── Dropzone ── */

.dropzone {
    position: relative;
    border: 1px dashed rgba(154, 143, 130, 0.28);
    border-radius: 1rem;
    padding: 1.75rem 1rem;
    text-align: center;
    background: linear-gradient(145deg, rgba(157, 122, 255, 0.04), rgba(22, 20, 31, 0.55));
    transition: border-color 0.2s, background 0.2s;
}

.dropzone.is-dragover {
    border-color: rgba(94, 228, 199, 0.45);
    background: rgba(94, 228, 199, 0.06);
}

.dropzone-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone-text {
    font-size: 0.92rem;
}

.dropzone-text span {
    color: var(--violet);
    text-decoration: underline;
}

.dropzone-name {
    margin-top: 0.6rem;
    font-family: "DM Mono", monospace;
    font-size: 0.75rem;
    color: var(--mint);
}

/* ── Başarı paneli ── */

.success-url {
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
    margin: 1rem 0 0.75rem;
}

.success-url .field-input {
    flex: 1;
    font-size: 0.72rem;
}

.share-meta {
    font-family: "DM Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--cream-dim);
}

/* ── Görüntüleme ── */

.view-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(243, 235, 224, 0.06);
}

.view-meta {
    font-family: "DM Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--cream-dim);
    margin-top: 0.35rem;
}

.code-block,
.text-block {
    padding: 1rem;
    border-radius: 0.85rem;
    background: rgba(12, 11, 16, 0.65);
    border: 1px solid rgba(243, 235, 224, 0.06);
    overflow-x: auto;
    font-family: "DM Mono", monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.file-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.85rem;
    background: rgba(12, 11, 16, 0.45);
    border: 1px solid rgba(243, 235, 224, 0.06);
}

.file-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 700;
    word-break: break-all;
}

.file-preview {
    margin-top: 1rem;
}

.file-preview img {
    max-width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(243, 235, 224, 0.08);
}

.hidden {
    display: none !important;
}

/* ── QR modal ── */

.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.qr-modal.hidden {
    display: none !important;
}

.qr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 11, 16, 0.78);
    backdrop-filter: blur(6px);
}

.qr-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 20rem);
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: var(--card);
    border: 1px solid rgba(243, 235, 224, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.qr-panel canvas {
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.35rem;
}

.qr-url {
    word-break: break-all;
    font-size: 0.68rem;
    color: var(--cream-dim);
}

.qr-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Toast ── */

.toast {
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(0.5rem);
    z-index: 40;
    font-family: "DM Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid rgba(94, 228, 199, 0.35);
    color: var(--mint);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}

.toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ── Proje kabuğu (9801–9804) ── */

.page--wide { max-width: 62rem; }
.page--narrow { max-width: 40rem; }

.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;
}

.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 0.45rem 1rem;
    background: rgba(255, 92, 77, 0.92);
    color: var(--ink);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-banner.visible {
    transform: translateY(0);
}

body.has-offline-banner {
    padding-top: calc(2.5rem + env(safe-area-inset-top, 0px));
}

/* Kart alias — hub stili */
.ui-card,
.card {
    background: var(--card);
    border: 1px solid rgba(243, 235, 224, 0.08);
    border-radius: 1.25rem;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.ui-card--accent {
    border-color: rgba(94, 228, 199, 0.12);
}

.ui-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ui-card__title {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream-dim);
}

.ui-card__meta {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: rgba(154, 143, 130, 0.65);
}

/* Grid düzenleri */
.dash-grid {
    display: grid;
    gap: 1.25rem;
    align-items: stretch;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    grid-template-areas: "primary secondary";
}

.dash-date, .dash-clock { grid-area: primary; }
.dash-timeline, .dash-weather { grid-area: secondary; }

.dash-grid--prayer,
.dash-grid--holiday {
    grid-template-columns: 1fr;
    grid-template-areas: "primary";
}

.dash-prayer-main,
.dash-holiday {
    grid-area: primary;
}

/* Hücre grid */
.ui-cell-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.ui-cell-grid--3 { grid-template-columns: repeat(3, 1fr); }

.ui-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(243, 235, 224, 0.06);
    background: rgba(12, 11, 16, 0.35);
}

.ui-cell--accent {
    border-color: rgba(94, 228, 199, 0.22);
    background: rgba(94, 228, 199, 0.06);
}

.ui-cell__label {
    font-family: "DM Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-dim);
}

.ui-cell__value {
    font-family: "DM Mono", monospace;
    font-size: 0.85rem;
    color: var(--cream);
    line-height: 1.3;
}

.ui-cell--accent .ui-cell__value {
    color: var(--mint);
    font-size: 0.95rem;
}

.ui-cell--hero {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    grid-column: 1 / -1;
}

.ui-cell__icon { font-size: 1.75rem; line-height: 1; }
.ui-cell__stack { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ui-cell__value--lg { font-size: 1.35rem; font-weight: 700; }
.ui-cell__value--sub { font-size: 0.68rem; color: var(--mint); }

/* Pill / chip — hub etiket stili */
.ui-pill,
.prayer-tab,
.filter-chip,
.date-nav__btn {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(154, 143, 130, 0.2);
    background: rgba(154, 143, 130, 0.08);
    color: var(--cream-dim);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.ui-pill:hover,
.prayer-tab:hover,
.filter-chip:hover,
.date-nav__btn:hover {
    color: var(--cream);
    border-color: rgba(154, 143, 130, 0.35);
}

.ui-pill.active,
.prayer-tab.is-active,
.filter-chip.is-active,
.date-nav__btn--today {
    background: rgba(94, 228, 199, 0.1);
    color: var(--mint);
    border-color: rgba(94, 228, 199, 0.25);
}

.ui-pill--violet {
    border-color: rgba(157, 122, 255, 0.35);
    color: var(--violet);
    background: rgba(157, 122, 255, 0.08);
    cursor: default;
}

.ui-pill--mint {
    border-color: rgba(94, 228, 199, 0.25);
    color: var(--mint);
    background: rgba(94, 228, 199, 0.08);
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ui-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.ui-pill-row--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.ui-pill-row--scroll::-webkit-scrollbar { display: none; }

.filter-chip--action {
    margin-left: auto;
    border-color: rgba(157, 122, 255, 0.3);
    color: var(--violet);
}

.tool-btn {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(154, 143, 130, 0.2);
    background: rgba(154, 143, 130, 0.1);
    color: var(--cream-dim);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, color 0.2s;
}

.tool-btn:hover {
    color: var(--cream);
    border-color: rgba(154, 143, 130, 0.35);
    transform: translateY(-1px);
}

/* Form alanları — ortak select/input */
.location-select,
.year-select,
.timeline-search,
.field-input {
    width: 100%;
    font-family: "DM Mono", monospace;
    font-size: 0.82rem;
    color: var(--cream);
    background: rgba(12, 11, 16, 0.55);
    border: 1px solid rgba(243, 235, 224, 0.1);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    transition: border-color 0.2s;
}

.location-select:focus,
.year-select:focus,
.timeline-search:focus,
.field-input:focus {
    outline: none;
    border-color: rgba(157, 122, 255, 0.45);
}

.location-select:disabled { opacity: 0.5; }

.location-field__label,
.year-field__label {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin-bottom: 0.35rem;
    display: block;
}

.attribution {
    font-size: 0.72rem;
    color: var(--cream-dim);
    line-height: 1.5;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(243, 235, 224, 0.06);
}

.attribution a {
    color: var(--violet);
    text-decoration: none;
}

.attribution a:hover { text-decoration: underline; }

/* Yükleme */
@keyframes uiSpin {
    to { transform: rotate(360deg); }
}

.ui-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.5rem;
}

.ui-loading--compact { padding: 0.75rem; }
.ui-loading--inline { flex-direction: row; padding: 0; gap: 0.4rem; }

.ui-loading__track { stroke: rgba(243, 235, 224, 0.08); }
.ui-loading__arc {
    stroke: var(--mint);
    stroke-dasharray: 72 32;
    transform-origin: center;
    animation: uiSpin 0.85s linear infinite;
}

.ui-loading__label {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dim);
}

.is-loading .ui-cell__value {
    color: transparent;
    position: relative;
    min-height: 0.85rem;
}

/* Yardım modal */
.help-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(12, 11, 16, 0.78);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.help-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.help-card {
    width: min(100%, 22rem);
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: var(--card);
    border: 1px solid rgba(243, 235, 224, 0.1);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.help-card h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.help-list {
    list-style: none;
    font-size: 0.88rem;
    color: var(--cream-dim);
    line-height: 1.8;
}

.help-list kbd {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(243, 235, 224, 0.15);
    background: rgba(12, 11, 16, 0.5);
    color: var(--cream);
}

.help-close {
    margin-top: 1.25rem;
    width: 100%;
}

@media (max-width: 640px) {
    .dash-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "primary"
            "secondary";
    }
    body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .success-url {
        flex-direction: column;
    }

    .view-head {
        flex-direction: column;
    }

    .file-block {
        flex-wrap: wrap;
    }

    .page-header__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

body:fullscreen {
    padding: 0;
}

body:fullscreen .page {
    max-width: none;
    padding: 1.5rem;
}

body:fullscreen .page-header__top {
    background: var(--card);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.75rem;
    border-radius: 0.85rem;
    margin-bottom: 1rem;
}

@media (min-width: 900px) {
    .page--wide {
        max-width: 66rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .card,
    .toast {
        transition: none;
    }
}
/* Avlu — modül-özel stiller (app.css üzerinde) */

/* ── Hub kartları ── */

.avlu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.1rem;
    margin-top: 1.5rem;
}

.avlu-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.25rem;
    border-radius: 1.1rem;
    background: rgba(22, 20, 31, 0.7);
    border: 1px solid rgba(243, 235, 224, 0.07);
    color: var(--cream);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.avlu-card:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 228, 199, 0.3);
}

.avlu-card__icon {
    font-size: 1.6rem;
    line-height: 1;
}

.avlu-card__title {
    font-size: 1.05rem;
    font-weight: 700;
}

.avlu-card__desc {
    font-size: 0.85rem;
    color: var(--cream-dim);
    line-height: 1.5;
}

.avlu-card__meta {
    margin-top: auto;
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--cream-dim);
    text-transform: uppercase;
}

.avlu-card--coral { border-color: rgba(255, 92, 77, 0.22); }
.avlu-card--coral:hover { border-color: rgba(255, 92, 77, 0.45); }
.avlu-card--violet { border-color: rgba(157, 122, 255, 0.22); }
.avlu-card--violet:hover { border-color: rgba(157, 122, 255, 0.45); }
.avlu-card--mint { border-color: rgba(94, 228, 199, 0.22); }
.avlu-card--mint:hover { border-color: rgba(94, 228, 199, 0.45); }

/* ── Hub canlı durum mini widget ── */

.avlu-now {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border-radius: 0.9rem;
    background: rgba(12, 11, 16, 0.55);
    border: 1px solid rgba(243, 235, 224, 0.06);
    margin-top: 1.25rem;
}

.avlu-now__pulse {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(94, 228, 199, 0.45);
    animation: avlu-pulse 1.8s infinite;
}

@keyframes avlu-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(94, 228, 199, 0.45); }
    70%  { box-shadow: 0 0 0 12px rgba(94, 228, 199, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 228, 199, 0); }
}

.avlu-now__label {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-dim);
}

.avlu-now__text {
    font-size: 0.92rem;
    flex: 1;
    min-width: 12rem;
}

.avlu-now__text a {
    color: var(--mint);
    text-decoration: none;
}

.avlu-now__text a:hover {
    text-decoration: underline;
}

/* ── Zaman Tüneli ── */

.timeline-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.timeline-filter .tab {
    text-decoration: none;
}

.timeline-stream {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 8rem auto 1fr;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(12, 11, 16, 0.45);
    border-left: 3px solid rgba(94, 228, 199, 0.3);
    align-items: start;
}

.timeline-item--culture   { border-left-color: rgba(255, 92, 77, 0.5); }
.timeline-item--garden    { border-left-color: rgba(94, 228, 199, 0.55); }
.timeline-item--dashboard { border-left-color: rgba(157, 122, 255, 0.5); }
.timeline-item--pool      { border-left-color: rgba(94, 228, 199, 0.5); }
.timeline-item--events    { border-left-color: rgba(255, 92, 77, 0.55); }

.timeline-item__time {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    color: var(--cream-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.timeline-item__module {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    color: var(--cream-dim);
    white-space: nowrap;
}

.timeline-item__title {
    font-weight: 700;
    color: var(--cream);
    text-decoration: none;
}

.timeline-item__title:hover {
    text-decoration: underline;
}

.timeline-item__summary {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--cream-dim);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .timeline-item {
        grid-template-columns: 1fr;
    }
    .timeline-item__time {
        grid-row: 1;
    }
}

/* ── Omnibar ── */

.omnibar {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5rem 1rem 1rem;
}

.omnibar.hidden { display: none; }

.omnibar__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 11, 16, 0.7);
    backdrop-filter: blur(8px);
}

.omnibar__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 36rem);
    background: rgba(22, 20, 31, 0.95);
    border: 1px solid rgba(243, 235, 224, 0.12);
    border-radius: 1rem;
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.omnibar__input-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(243, 235, 224, 0.06);
}

.omnibar__icon {
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--cream-dim);
}

.omnibar__input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--cream);
    font-size: 1rem;
    outline: none;
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

.omnibar__hint {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    color: var(--cream-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.omnibar__results {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.omnibar__hints,
.omnibar__empty {
    padding: 1rem;
    color: var(--cream-dim);
    font-size: 0.85rem;
    text-align: center;
}

.omnibar__hint-line {
    margin: 0.25rem 0;
}

.omnibar__group + .omnibar__group {
    margin-top: 0.5rem;
}

.omnibar__group-label {
    display: block;
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream-dim);
    padding: 0.5rem 0.75rem 0.25rem;
}

.omnibar__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.55rem;
    color: var(--cream);
    text-decoration: none;
    transition: background 0.15s ease;
}

.omnibar__item:hover,
.omnibar__item.is-active {
    background: rgba(94, 228, 199, 0.08);
}

.omnibar__item-title {
    font-weight: 600;
    font-size: 0.92rem;
}

.omnibar__item-snippet {
    font-size: 0.78rem;
    color: var(--cream-dim);
    line-height: 1.4;
}

.omnibar__item-snippet mark {
    background: rgba(94, 228, 199, 0.2);
    color: var(--mint);
    padding: 0 0.15rem;
    border-radius: 0.2rem;
}

/* ── Visitor modal ── */

.visitor-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.visitor-modal.hidden { display: none; }

.visitor-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 11, 16, 0.75);
    backdrop-filter: blur(6px);
}

.visitor-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    background: rgba(22, 20, 31, 0.95);
    border: 1px solid rgba(243, 235, 224, 0.12);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* ── Genel yardımcılar ── */

.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(2rem);
    background: rgba(22, 20, 31, 0.96);
    color: var(--cream);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(243, 235, 224, 0.1);
    font-family: "DM Mono", monospace;
    font-size: 0.78rem;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 110;
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tag-pill {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(154, 143, 130, 0.1);
    color: var(--cream-dim);
    border: 1px solid rgba(154, 143, 130, 0.2);
    display: inline-block;
}

.tag-pill--mint   { color: var(--mint); border-color: rgba(94, 228, 199, 0.3); background: rgba(94, 228, 199, 0.08); }
.tag-pill--coral  { color: var(--coral); border-color: rgba(255, 92, 77, 0.3); background: rgba(255, 92, 77, 0.08); }
.tag-pill--violet { color: var(--violet); border-color: rgba(157, 122, 255, 0.3); background: rgba(157, 122, 255, 0.08); }

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--cream-dim);
}

.muted { color: var(--cream-dim); }

/* Spotify site — profil butonu (app.css'te; IG tarayıcı önbelleği için) */

/* Spotify dashboard — tek arka plan (body), sayfa dışı efekt yok */
body[data-module="dashboard"]::before {
    background:
        radial-gradient(ellipse 75% 50% at 8% -5%, rgba(157, 122, 255, 0.14) 0%, transparent 52%),
        radial-gradient(ellipse 60% 45% at 95% 105%, rgba(94, 228, 199, 0.1) 0%, transparent 48%),
        radial-gradient(ellipse 45% 35% at 50% 55%, rgba(29, 185, 84, 0.05) 0%, transparent 50%);
}

body[data-module="dashboard"] {
    padding: 0;
    background: var(--ink);
}

body[data-module="dashboard"] .page.page--spotify.page--minimal {
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    background: transparent;
}

body[data-module="dashboard"] .page-footer {
    padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    margin-top: 0;
    text-align: center;
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(154, 143, 130, 0.55);
    border-top: 1px solid rgba(243, 235, 224, 0.06);
}

body[data-module="dashboard"] .page-footer a {
    color: rgba(154, 143, 130, 0.75);
    text-decoration: none;
    transition: color 0.15s ease;
}

body[data-module="dashboard"] .page-footer a:hover {
    color: var(--mint);
}

.page--spotify.page--minimal {
    padding-top: max(0.75rem, env(safe-area-inset-top));
}

.page--spotify a.dash-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(30, 215, 96, 0.28);
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.16), rgba(30, 215, 96, 0.05));
    color: var(--cream);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    box-shadow: 0 0.35rem 1.2rem rgba(30, 215, 96, 0.1);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.page--spotify a.dash-profile-btn:hover,
.page--spotify a.dash-profile-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(30, 215, 96, 0.5);
    box-shadow: 0 0.5rem 1.5rem rgba(30, 215, 96, 0.16);
    color: var(--cream);
}

.page--spotify .dash-profile-btn__avatar,
.page--spotify .dash-profile-btn__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: rgba(12, 11, 16, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1ed760;
}

.page--spotify .dash-profile-btn__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.page--spotify .dash-profile-btn__label {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1ed760;
}

.page--spotify .dash-profile-btn__name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--cream-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page--spotify .dash-profile-btn__arrow {
    font-size: 1.2rem;
    color: #1ed760;
    flex-shrink: 0;
}
