/* ============================================================
   Dülük Hub — components.css
   Buton, kart, form, modal, lightbox, toast, skeleton
   ============================================================ */

/* ---------- Butonlar ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast),
        border-color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.btn:active {
    transform: scale(0.97);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #241907;
    box-shadow: 0 6px 18px rgba(242, 184, 75, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
    box-shadow: 0 8px 22px rgba(242, 184, 75, 0.4);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-ghost:hover {
    background: var(--color-surface-2);
}

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

.btn-danger:hover {
    filter: brightness(1.08);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #C0854A 100%);
    color: #241907;
    box-shadow: 0 6px 18px rgba(212, 163, 115, 0.4);
}

.btn-accent:hover {
    filter: brightness(1.05);
    box-shadow: 0 8px 22px rgba(212, 163, 115, 0.5);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 9px 15px;
    font-size: 13px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    border-radius: 12px;
    color: var(--color-muted);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-icon:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* ---------- Sekmeler (kategori filtreleri) ---------- */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    padding: 5px;
    background: var(--color-surface-2);
    border-radius: 999px;
}

.tabs .chip {
    border: none;
    background: transparent;
    padding: 9px 18px;
    border-radius: 999px;
    flex: 1 1 auto;
    text-align: center;
}

.tabs .chip:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.tabs .chip.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #241907;
    box-shadow: 0 4px 14px rgba(242, 184, 75, 0.35);
}

/* ---------- Kartlar ---------- */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

/* ---------- Karşılama (hero) ---------- */

.hero-banner {
    position: relative;
    overflow: hidden;
    margin: -6px -4px 18px;
    padding: 30px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 55%, var(--color-accent) 140%);
    color: #241907;
    box-shadow: 0 10px 34px rgba(242, 184, 75, 0.22);
}

.hero-banner::before,
.hero-banner::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.hero-banner::before {
    width: 190px;
    height: 190px;
    top: -80px;
    right: -40px;
}

.hero-banner::after {
    width: 120px;
    height: 120px;
    bottom: -60px;
    left: 28%;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #241907;
    background: rgba(255, 255, 255, 0.3);
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.hero-banner h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.18;
    color: #241907;
}

.hero-banner p {
    margin: 0;
    font-size: 13.5px;
    opacity: 0.78;
    max-width: 420px;
}

@media (min-width: 600px) {
    .hero-banner {
        padding: 40px 34px;
    }

    .hero-banner h1 {
        font-size: 36px;
    }
}

/* ---------- Öne çıkan haber ---------- */

.featured-news {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 14px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.featured-news:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.featured-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-surface-2);
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news:hover .featured-cover img {
    transform: scale(1.04);
}

.featured-body {
    padding: 18px 20px 20px;
}

.featured-body h2 {
    margin: 0 0 8px;
    font-family: var(--font);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.featured-body p {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--color-primary);
}

.featured-more::after {
    content: "→";
    transition: transform var(--transition-fast);
}

.featured-news:hover .featured-more::after {
    transform: translateX(4px);
}

/* ---------- Haber ızgarası ---------- */

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ---------- Haberler ---------- */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-card {
    display: flex;
    gap: 15px;
    padding: 14px;
    cursor: pointer;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    text-align: left;
    font-family: inherit;
    color: inherit;
    width: 100%;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-card-cover {
    flex: 0 0 96px;
    width: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-surface-2);
}

.news-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-cover img {
    transform: scale(1.06);
}

.news-card-body {
    flex: 1 1 auto;
    min-width: 0;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--color-muted);
}

.news-card-meta time {
    color: var(--color-muted);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.badge-accent {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.badge-giveaway { background: var(--tone-giveaway-soft); color: var(--tone-giveaway); }
.badge-stories { background: var(--tone-stories-soft); color: var(--tone-stories); }
.badge-heritage { background: var(--tone-heritage-soft); color: var(--tone-heritage); }
.badge-events { background: var(--tone-events-soft); color: var(--tone-events); }
.badge-admin { background: var(--tone-admin-soft); color: var(--tone-admin); }

.news-card h3 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    margin: 0;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Filtre çipleri ---------- */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.chip {
    padding: 8px 15px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip:hover {
    border-color: var(--color-secondary);
    color: var(--color-text);
}

.chip.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-color: transparent;
    color: #241907;
    box-shadow: 0 4px 14px rgba(242, 184, 75, 0.35);
}

/* ---------- Sosyal medya ---------- */

.social-grid {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 17px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.social-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-border);
    box-shadow: var(--shadow-soft);
}

.social-card:active {
    transform: scale(0.98);
}

.social-tile {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-tile svg {
    width: 24px;
    height: 24px;
}

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

.social-info strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.social-info small {
    display: block;
    font-size: 12.5px;
    color: var(--color-muted);
}

.social-arrow {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--color-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.social-card:hover .social-arrow {
    color: var(--color-primary);
    transform: translateX(3px);
}

/* ---------- Haber detayı ---------- */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    padding: 8px 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.back-link:hover {
    text-decoration: underline;
}

.news-detail {
    max-width: 680px;
    margin: 0 auto;
}

.news-detail h1 {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: 0.01em;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--color-muted);
}

.news-detail-meta time {
    color: var(--color-muted);
    font-weight: 600;
}

.news-detail-meta::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border);
    margin-left: 4px;
}

.news-detail-cover {
    margin-bottom: 26px;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-surface-2);
    box-shadow: var(--shadow-soft);
}

.news-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail .content {
    font-size: 16px;
}

.news-detail .content .lead {
    margin: 0 0 22px;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.7;
    color: var(--color-text);
}

.news-detail .content p {
    margin: 0 0 20px;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.85;
    color: var(--color-text-soft);
}

/* ---------- Etkinlikler ---------- */

.event-timeline {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.event-group-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 11px;
    font-size: 16px;
    font-weight: 700;
}

.event-group-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.event-group-count {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-muted);
    background: var(--color-surface-2);
    border-radius: 999px;
    padding: 2px 9px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-card {
    display: flex;
    gap: 15px;
    padding: 16px;
    align-items: flex-start;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.event-card:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.event-date {
    flex: 0 0 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #241907;
    box-shadow: 0 5px 14px rgba(242, 184, 75, 0.28);
}

.event-date .day {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
}

.event-date .month {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-date.accent {
    background: linear-gradient(150deg, var(--color-accent) 0%, #C0854A 100%);
    color: #241907;
    box-shadow: 0 5px 14px rgba(212, 163, 115, 0.4);
}

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

.event-info-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.event-info h3 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
}

.event-chip {
    flex: 0 0 auto;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
    background: var(--color-surface-2);
    border-radius: 999px;
    padding: 4px 10px;
}

.event-chip.is-today {
    background: var(--color-primary);
    color: #241907;
}

.event-chip.is-tomorrow {
    background: var(--tone-events-soft);
    color: var(--tone-events);
}

.event-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 12.5px;
    color: var(--color-muted);
}

.event-info .meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.event-info .meta svg {
    width: 14px;
    height: 14px;
}

/* ---------- Çekilişler ---------- */

.giveaway-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.giveaway-card {
    position: relative;
    padding: 16px;
    border-left: 4px solid var(--tone-giveaway);
    background: linear-gradient(160deg, var(--tone-giveaway-soft), var(--color-surface) 55%);
    overflow: hidden;
}

.giveaway-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.giveaway-head h3 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
}

.giveaway-desc {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.55;
}

.giveaway-countdown {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--tone-giveaway);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(157, 140, 255, 0.35);
}

.progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--color-surface-2);
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tone-giveaway), var(--color-accent));
    transition: width 0.5s ease;
}

.giveaway-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 13px;
    font-size: 12px;
    color: var(--color-muted);
}

.giveaway-card .btn svg {
    width: 15px;
    height: 15px;
}

/* Konfeti patlaması */

.confetti-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.confetti-burst span {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--c);
    animation: confettiFly 1.2s cubic-bezier(0.15, 0.6, 0.4, 1) forwards;
}

@keyframes confettiFly {
    0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.6); }
}

/* ---------- Köy Hikayeleri ---------- */

.story-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.story-card {
    padding: 18px;
    border-left: 4px solid var(--tone-stories);
    background: linear-gradient(160deg, var(--tone-stories-soft), var(--color-surface) 55%);
}

.story-card h3 {
    margin: 0 0 8px;
    font-size: 16.5px;
    font-weight: 700;
}

.story-card .content {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--color-text-soft);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-muted);
}

.story-author-line strong {
    font-size: 12.5px;
}

.story-author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tone-stories) 0%, var(--color-accent) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px var(--tone-stories-soft);
}

.heart-pop {
    animation: heartPop 0.65s cubic-bezier(0.3, 1.4, 0.6, 1);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    35% { transform: scale(1.55) rotate(-8deg); }
    60% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.avatars {
    display: flex;
    margin-right: 7px;
}

.avatars span {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid var(--color-surface);
    background: var(--color-surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-muted);
}

.avatars span + span {
    margin-left: -8px;
}

.avatars span:nth-child(1) { background: var(--tone-news-soft); }
.avatars span:nth-child(2) { background: var(--tone-events-soft); }
.avatars span:nth-child(3) { background: var(--tone-gallery-soft); }

/* ---------- Tarihi Eserler ---------- */

.heritage-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.heritage-card {
    overflow: hidden;
}

.heritage-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.heritage-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.heritage-card:hover .heritage-cover img {
    transform: scale(1.04);
}

.heritage-era {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--tone-heritage);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.heritage-body {
    padding: 15px;
}

.heritage-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.heritage-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-soft);
}

/* ---------- Galeri ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border: none;
    padding: 0;
    background: var(--color-surface-2);
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.55s ease, transform 0.35s ease;
}

.gallery-item img.loaded {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover img,
.gallery-item:hover img.loaded {
    transform: scale(1.07);
}

/* ---------- Formlar ---------- */

.link-btn {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.link-btn:hover {
    color: var(--color-secondary);
}

.img-preview {
    margin-top: 9px;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px dashed var(--color-border);
    border-radius: var(--radius-btn);
    background: var(--color-surface-2);
    font-size: 13px;
    color: var(--color-muted);
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: var(--color-secondary);
}

/* Görsel alanındaki URL girişinin üst boşluğu */
.form-group input[type="file"] + .form-control {
    margin-top: 10px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-btn);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14.5px;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--color-muted);
}

.form-error {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-danger);
}

.field-error {
    border-color: var(--color-danger) !important;
}

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    padding: 24px;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 100%;
    max-height: 86%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Toast ---------- */

.toast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toast.success {
    background: var(--color-primary);
    color: #241907;
}

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

/* ---------- Skeleton ---------- */

.skeleton {
    border-radius: var(--radius-card);
    background: linear-gradient(100deg, var(--color-surface) 40%, var(--color-surface-2) 50%, var(--color-surface) 60%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* ---------- Boş durum ---------- */

.empty-state {
    text-align: center;
    padding: 52px 20px;
    color: var(--color-muted);
}

.empty-state svg {
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-emoji {
    display: block;
    font-size: 42px;
    line-height: 1;
    margin-bottom: 12px;
}

.empty-state h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: var(--color-text);
}

.empty-state p {
    margin: 0;
    font-size: 13.5px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: scrimIn 180ms ease;
}

.modal {
    width: 100%;
    max-width: 480px;
    max-height: min(88vh, 640px);
    background: var(--color-surface);
    border-radius: var(--radius-modal) var(--radius-modal) 0 0;
    box-shadow: var(--shadow-modal);
    animation: modalUp 240ms ease;
    display: flex;
    flex-direction: column;
}

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

.modal-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.modal-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 600px) {
    .modal-backdrop {
        align-items: center;
        padding: 24px;
    }

    .modal {
        border-radius: var(--radius-modal);
    }
}

/* ---------- Avatar ---------- */

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 800;
}

/* ---------- Profil ---------- */

.profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-head .avatar {
    width: 62px;
    height: 62px;
    font-size: 24px;
}

.profile-head h2 {
    margin: 0 0 2px;
    font-size: 19px;
    font-weight: 800;
}

.profile-head p {
    margin: 0;
    font-size: 13px;
    color: var(--color-muted);
}

.profile-details {
    list-style: none;
    margin: 18px 0;
    padding: 0;
}

.profile-details li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 13.5px;
}

.profile-details li span {
    color: var(--color-muted);
}

.profile-actions {
    display: grid;
    gap: 10px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.profile-stat {
    text-align: center;
    padding: 13px 8px;
    border-radius: 14px;
    background: var(--color-primary-soft);
}

.profile-stat strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

.profile-stat span {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-muted);
}

.profile-mine {
    margin-top: 14px;
    padding: 16px 18px;
}

.profile-mine h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
}

.profile-mine-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 13.5px;
}

.profile-mine-item:last-child {
    border-bottom: none;
}

.profile-mine-item strong {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-mine-item small {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--color-muted);
}

/* ---------- Ayarlar ---------- */

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-label {
    margin: 14px 2px 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.setting-row .nav-icon {
    width: 40px;
    height: 40px;
}

.setting-row > div {
    flex: 1 1 auto;
    min-width: 0;
}

.setting-row strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
}

.setting-row small {
    display: block;
    font-size: 12px;
    color: var(--color-muted);
}

/* Anahtar (switch) */

.switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 27px;
    border: none;
    border-radius: 999px;
    background: var(--color-surface-2);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    transition: transform var(--transition-fast);
}

.switch[aria-checked="true"] {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.switch[aria-checked="true"]::after {
    transform: translateX(19px);
}

/* ---------- Ekran bölüm başlığı ---------- */

.screen-sub {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 14px;
}

.screen-sub h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.screen-sub p {
    margin: 0;
    font-size: 12.5px;
    color: var(--color-muted);
}

/* ---------- Yönetim ---------- */

.admin-forms {
    display: grid;
    gap: 16px;
}

.admin-form {
    padding: 18px;
}

.admin-form h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
}

.admin-list {
    margin-bottom: 14px;
    padding: 14px 16px;
}

.admin-list h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
}

.admin-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 13.5px;
}

.admin-list li:last-child {
    border-bottom: none;
}

.admin-list li > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Lightbox (galeri) ---------- */

.lightbox-counter {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-nav svg {
    width: 20px;
    height: 20px;
}

.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 18px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    color: #fff;
    text-align: center;
}

.lightbox-caption strong {
    display: block;
    font-size: 14.5px;
}

.lightbox-caption span {
    font-size: 12.5px;
    opacity: 0.85;
}

/* ---------- Hata durumu ---------- */

.error-state {
    text-align: center;
    padding: 44px 20px;
    color: var(--color-muted);
}

.error-state svg {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    opacity: 0.55;
}

.error-state h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--color-text);
}

.error-state p {
    margin: 0 0 16px;
    font-size: 13px;
}

/* ---------- Toast kapanışı ---------- */

.toast.hide {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 240ms ease, transform 240ms ease;
}

.toast svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--color-text);
    color: var(--color-surface);
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    animation: toastIn 0.25s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Global hata bandı ---------- */

.fatal-error {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 400;
    padding: 12px 16px;
    background: var(--color-danger);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

/* ---------- Yükleyici ---------- */

.loader {
    display: flex;
    justify-content: center;
    padding: 36px 0;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--color-surface-2);
    border-top-color: var(--color-primary);
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Duyurular ---------- */

.announce-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.announce-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
}

.announce-item .dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-accent);
    margin-top: 7px;
}

.announce-item.important {
    border-left: 4px solid var(--color-accent);
}

.announce-item h3 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.announce-item h3 span {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    padding: 1px 8px;
    margin-left: 8px;
    vertical-align: 2px;
}

.announce-item time {
    font-size: 12px;
    color: var(--color-muted);
}

.announce-item p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.5;
}

/* ---------- İçerik görselleri ---------- */

.giveaway-img,
.story-img,
.event-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
}