/* ===================================================================
   EnuButik — Sosyal Medya Yönetim & Otonom Yayın Paneli Tasarım Sistemi
   High-Fashion Ultra-Dark Luxury Aesthetic • Plus Jakarta Sans
   =================================================================== */

:root {
    --bg-base: #07090e;
    --bg-surface: #0f131d;
    --bg-card: rgba(18, 23, 37, 0.75);
    --bg-card-hover: rgba(28, 35, 54, 0.85);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(244, 63, 94, 0.4);

    --primary-rose: #f43f5e;
    --primary-rose-glow: rgba(244, 63, 94, 0.25);
    --accent-amber: #f59e0b;
    --accent-purple: #a855f7;
    --accent-sky: #38bdf8;
    --accent-emerald: #10b981;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.18s ease;
    --transition-norm: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Temel */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Arka Plan Glow Efektleri */
.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: -10%;
    right: 5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.12), transparent 70%);
}

.glow-2 {
    bottom: 5%;
    left: -5%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
}

/* ===================================================================
   1. GİRİŞ EKRANI (LOGIN OVERLAY)
   =================================================================== */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4, 7, 14, 0.88);
    backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: linear-gradient(145deg, rgba(22, 28, 45, 0.9), rgba(11, 15, 26, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px var(--primary-rose-glow);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 36px 32px;
    text-align: center;
    animation: fadeInScale 0.35s var(--transition-norm);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-badge {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-rose), #e11d48);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 24px var(--primary-rose-glow);
}

.login-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

.login-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 26px;
}

.login-error {
    display: none;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    text-align: left;
}

.login-footer {
    margin-top: 24px;
    font-size: 11px;
    color: var(--text-dark);
}

/* ===================================================================
   2. FORM ELEMANLARI & BUTONLAR
   =================================================================== */
.form-group {
    text-align: left;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    background: rgba(7, 10, 19, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #ffffff;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary-rose);
    box-shadow: 0 0 0 3px var(--primary-rose-glow);
    background: rgba(11, 16, 30, 0.95);
}

.form-textarea {
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    font-family: inherit;
    text-decoration: none;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-rose), #e11d48);
    color: #ffffff;
    box-shadow: 0 4px 16px var(--primary-rose-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    box-shadow: 0 6px 22px rgba(244, 63, 94, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: #e2e8f0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 700;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ===================================================================
   3. ANA DÜZEN (APP CONTAINER) & ÜST BAŞLIK
   =================================================================== */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 28px 60px;
    position: relative;
    z-index: 1;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-rose), #be123c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 16px var(--primary-rose-glow);
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.time-chip, .user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 12px;
}

.time-value {
    font-weight: 700;
    color: #ffffff;
    font-family: monospace;
    font-size: 13px;
}

.user-chip {
    padding: 4px 10px;
    gap: 10px;
}

.user-name {
    font-weight: 700;
    color: #f1f5f9;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
}

/* ===================================================================
   4. ÜST NAVİGASYON SEKME ÇUBUĞU (NAV TABS BAR)
   =================================================================== */
.nav-tabs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 20, 32, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-norm);
}

.nav-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(244, 63, 94, 0.08));
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.15);
}

/* ===================================================================
   5. BENTO METRİK KARTLARI
   =================================================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-norm);
}

.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.metric-card.highlight {
    border-color: rgba(244, 63, 94, 0.4);
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.08), rgba(15, 20, 32, 0.8));
}

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

.metric-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.metric-icon {
    font-size: 18px;
}

.metric-val {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.metric-val.countdown {
    color: #38bdf8;
    font-family: monospace;
}

.metric-sub {
    font-size: 12px;
    color: var(--text-dark);
    margin-top: 6px;
}

/* ===================================================================
   6. BÖLÜMLER & BAŞLIKLAR
   =================================================================== */
.section-container {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===================================================================
   7. GÖRSEL ZAMAN ÇİZELGESİ (BUGÜNÜN YAYIN AKIŞI)
   =================================================================== */
.timeline-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.timeline-vcard {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-norm);
}

.timeline-vcard:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.timeline-vcard.done {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.04), rgba(255, 255, 255, 0.02));
}

/* Görsel Alanı (Post 1:1, Story 9:16) */
.timeline-vcard-media {
    position: relative;
    width: 100%;
    background: #060911;
    overflow: hidden;
}

.timeline-vcard-media.aspect-square {
    aspect-ratio: 1 / 1;
}

.timeline-vcard-media.aspect-story {
    aspect-ratio: 9 / 16;
    max-height: 380px;
    margin: 0 auto;
}

.timeline-vcard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.timeline-vcard:hover .timeline-vcard-img {
    transform: scale(1.04);
}

.timeline-time-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    font-family: monospace;
}

.timeline-format-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(244, 63, 94, 0.8);
    backdrop-filter: blur(8px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

.timeline-format-badge.story {
    background: rgba(56, 189, 248, 0.85);
}

.timeline-vcard-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.timeline-vcard-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.4;
}

.timeline-vcard-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.timeline-vcard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Rozetler */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.badge-done { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-wait { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-past { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }

/* ===================================================================
   8. HIZLI MANUEL AKSİYONLAR
   =================================================================== */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-norm);
}

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

.action-pijama:hover { border-color: #f43f5e; background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(17, 24, 39, 0.8)); }
.action-fantezi:hover { border-color: #f59e0b; background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(17, 24, 39, 0.8)); }
.action-buyuk:hover { border-color: #a855f7; background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(17, 24, 39, 0.8)); }
.action-story:hover { border-color: #38bdf8; background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(17, 24, 39, 0.8)); }

.act-icon { font-size: 26px; }
.act-body { display: flex; flex-direction: column; gap: 2px; }
.act-title { font-size: 14px; font-weight: 700; color: #ffffff; }
.act-sub { font-size: 12px; color: var(--text-muted); }

/* ===================================================================
   9. SON PAYLAŞILANLAR GALERİSİ (1:1 & 9:16 INSTAGRAM MOCKUP)
   =================================================================== */
.tabs {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn.active {
    background: var(--primary-rose);
    color: #ffffff;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.history-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-norm);
}

.history-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* Instagram Mockup Çerçeveleri */
.history-thumb-wrapper {
    position: relative;
    width: 100%;
    background: #080d1a;
    overflow: hidden;
}

.history-thumb-wrapper.aspect-square {
    aspect-ratio: 1 / 1;
}

.history-thumb-wrapper.aspect-story {
    aspect-ratio: 9 / 16;
    max-height: 420px;
    margin: 0 auto;
}

.history-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.history-card:hover .history-thumb {
    transform: scale(1.04);
}

.history-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827, #1e293b);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.history-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.4;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.card-time {
    color: var(--text-dark);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-link:hover {
    text-decoration: underline;
    color: #7dd3fc;
}

/* ===================================================================
   10. MEDYA KÜTÜPHANESİ GÖRÜNÜMÜ
   =================================================================== */
.media-search-box {
    width: 100%;
    max-width: 320px;
}

.media-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-pill {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.filter-pill.active {
    background: var(--primary-rose);
    border-color: var(--primary-rose);
    color: #ffffff;
}

.media-count-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.media-count-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #f8fafc;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

.media-count-tip {
    font-size: 12px;
    color: var(--text-dark);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.media-item-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-norm);
}

.media-item-card:hover {
    border-color: var(--primary-rose);
    transform: translateY(-3px);
}

.media-item-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.media-item-info {
    padding: 10px 12px;
}

.media-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-item-cat {
    font-size: 11px;
    color: var(--text-dark);
}

.media-infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 16px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.spinner-sm {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(244, 63, 94, 0.2);
    border-top-color: var(--primary-rose);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

#mediaSentinel {
    height: 20px;
    width: 100%;
    pointer-events: none;
    visibility: hidden;
}

.media-end-message {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-dark);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.media-end-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

/* ===================================================================
   11. ÖZEL PAYLAŞIM / LİSTE DIŞI (CUSTOM PUBLISHER)
   =================================================================== */
.custom-publisher-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
}

@media (max-width: 960px) {
    .custom-publisher-grid {
        grid-template-columns: 1fr;
    }
}

.format-toggle-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.format-radio input {
    display: none;
}

.format-btn {
    display: block;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.format-radio input:checked + .format-btn {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--primary-rose);
    color: #ffffff;
}

.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.015);
    transition: var(--transition-fast);
}

.dropzone:hover {
    border-color: var(--primary-rose);
    background: rgba(244, 63, 94, 0.04);
}

.drop-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.drop-title { font-size: 14px; font-weight: 700; color: #ffffff; display: block; }
.drop-sub { font-size: 12px; color: var(--text-dark); display: block; margin-top: 4px; }

.uploaded-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 6px;
}

.uploaded-thumb-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
}

.uploaded-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uploaded-thumb-del {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 68, 68, 0.85);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-bar {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.btn-emoji {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-emoji:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.15);
}

/* Canlı Instagram Mockup */
.preview-card-sticky {
    position: sticky;
    top: 24px;
}

.preview-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.instagram-mockup {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.insta-mock-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.insta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.insta-user-info {
    display: flex;
    flex-direction: column;
}

.insta-username { font-size: 13px; font-weight: 700; color: #ffffff; }
.insta-location { font-size: 11px; color: var(--text-dark); }
.insta-more { margin-left: auto; color: var(--text-dark); }

.insta-mock-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #090e1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.insta-mock-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-empty-state {
    color: var(--text-dark);
    font-size: 13px;
}

.insta-mock-footer {
    padding: 12px 14px;
}

.insta-actions {
    display: flex;
    gap: 12px;
    font-size: 16px;
    margin-bottom: 8px;
}

.insta-mock-caption {
    font-size: 12px;
    color: #e2e8f0;
    line-height: 1.4;
    word-break: break-word;
}

/* ===================================================================
   12. AYLIK PLANLAYICI (MONTHLY PLANNER)
   =================================================================== */
.planner-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.planner-upload-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.planner-upload-inner {
    text-align: center;
    padding: 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #38bdf8;
}

.planner-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.planner-day-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.planner-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.planner-day-num {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.planner-slot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.05);
}

.planner-slot-time { font-family: monospace; color: #38bdf8; }
.planner-slot-name { font-weight: 600; color: #e2e8f0; }

/* ===================================================================
   13. AYARLAR & SİSTEM BİLGİSİ
   =================================================================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.settings-form {
    max-width: 480px;
}

.system-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.info-label { font-size: 13px; color: var(--text-muted); }
.info-val { font-size: 13px; font-weight: 600; color: #ffffff; }

/* ===================================================================
   14. ÖNİZLEME & ONAY MODALI (PREVIEW MODAL)
   =================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
    animation: modalFadeIn 0.25s var(--transition-norm);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-card {
    background: #0f1422;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--primary-rose-glow);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 24px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-card.modal-lg {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.modal-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover { color: #ffffff; }

.modal-preview-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .modal-preview-body {
        grid-template-columns: 1fr;
    }
}

.preview-media-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-frame-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #060911;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-frame-container.aspect-story {
    aspect-ratio: 9 / 16;
    max-height: 480px;
    margin: 0 auto;
}

.preview-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.preview-frame-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.preview-slide-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.preview-thumb-btn {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    background: #000000;
}

.preview-thumb-btn.active {
    border-color: var(--primary-rose);
}

.preview-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-info-pane {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-badge-row {
    display: flex;
    gap: 8px;
}

.preview-prod-name {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.preview-caption-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    max-height: 220px;
    overflow-y: auto;
}

.caption-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: block;
}

.caption-text-content {
    font-size: 12px;
    color: #e2e8f0;
    white-space: pre-wrap;
    line-height: 1.5;
}

.preview-actions-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
}

.modal-opt-btn {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.modal-opt-btn:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--primary-rose);
}

/* ===================================================================
   15. TOAST & KONSOL
   =================================================================== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 20, 32, 0.95);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-norm);
    pointer-events: none;
    font-size: 13px;
    font-weight: 600;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success { border-color: rgba(16, 185, 129, 0.4); }
.toast.error { border-color: rgba(239, 68, 68, 0.4); }
.toast.info { border-color: rgba(56, 189, 248, 0.4); }

.console-box {
    background: #040711;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: monospace;
    font-size: 12px;
    color: #a5f3fc;
    height: 180px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.app-footer {
    text-align: center;
    padding: 30px 0 10px;
    font-size: 12px;
    color: var(--text-dark);
}

.loading-spinner {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}
