/* =========================================================
   SocialHubPro - Main Style
   ========================================================= */

/* Inter Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Light, airy background stops for the diagonal page gradient */
    --bg-dark: #eef2fb;
    --bg-dark-2: #eafaf6;
    --bg-soft: #f4f7fd;

    /* Frosted near-white glass surfaces */
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-solid: #ffffff;
    --bg-card-border: rgba(15, 23, 42, 0.06);

    /* Dark charcoal used for the (kept-dark) sidebar / topbar */
    --sidebar-bg: #141821;
    --sidebar-bg-2: #1b2130;
    --sidebar-border: rgba(255, 255, 255, 0.08);

    /* Dark-on-light text */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --primary: #e03270;
    --primary-hover: #c02486;
    --primary-glow: rgba(224, 50, 112, 0.18);

    --accent: #fd5921;
    --accent-hover: #e0480f;

    /* falsepeti imza gradyanı (turuncu -> macenta) */
    --brand-gradient: linear-gradient(135deg, #fd5921 0%, #c02486 100%);

    /* Reference teal / green / blue accents for tiles & charts */
    --teal: #10b981;
    --green: #22c55e;
    --blue: #3b82f6;
    --gradient-orange: linear-gradient(135deg, #fd5921 0%, #f59e0b 100%);
    --gradient-teal: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);

    --danger: #ef4444;
    --danger-hover: #dc2626;

    --warning: #f59e0b;

    --font-sans: 'Inter', sans-serif;

    --facebook: #1877f2;
    --instagram: #e1306c;
    --twitter: #1da1f2;
    --linkedin: #0077b5;
    --tiktok: #ff0050;
    --youtube: #ef4444;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --shadow-soft: 0 18px 45px rgba(20, 60, 120, 0.10);
    --shadow-card: 0 12px 34px rgba(20, 60, 120, 0.08);
}

/* =========================================================
   Reset
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.10), transparent 40%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 42%),
        linear-gradient(135deg, #eafaf6 0%, #ffffff 48%, #eef2fb 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: var(--font-sans);
}

/* =========================================================
   General Utilities
   ========================================================= */

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.accent-text {
    color: var(--accent);
}

.warning-text {
    color: var(--warning);
}

.danger-text {
    color: var(--danger);
}

.bg-main {
    background: var(--bg-dark);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(224, 50, 112, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #fd5921, var(--primary-hover));
    box-shadow: 0 14px 28px rgba(224, 50, 112, 0.36);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(20, 60, 120, 0.08);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-secondary.btn-danger {
    background: rgba(239, 68, 68, 0.09);
    color: var(--danger-hover);
    border-color: rgba(239, 68, 68, 0.28);
}

.btn-secondary.btn-danger:hover {
    background: rgba(239, 68, 68, 0.16);
}

/* =========================================================
   Alerts
   ========================================================= */

.alert {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.24);
    color: #b91c1c;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #047857;
}

/* =========================================================
   Forms
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input {
    width: 100%;
    padding: 13px 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.textarea-input {
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
}

.file-input {
    padding: 10px 12px;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-date-group {
    width: 100%;
    max-width: 280px;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 7px;
}

/* =========================================================
   Auth Pages
   ========================================================= */

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 38px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 0 22px rgba(224, 50, 112, 0.38);
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
}

.auth-title {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 800;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* =========================================================
   App Layout
   ========================================================= */

.app-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Eski sidebar yapısı kalırsa bozulmasın */
.sidebar {
    width: 100%;
}

/* =========================================================
   New Horizontal Header / Sidebar.php için hazır yapı
   ========================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 34px;
    background: rgba(20, 24, 33, 0.92);
    border-bottom: 1px solid var(--sidebar-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    min-width: 230px;
}

.brand-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: contain;
    background: #ffffff;
    padding: 5px;
    flex-shrink: 0;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-title {
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.brand-subtitle {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.topbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.topbar .nav-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.topbar .nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.topbar .nav-item.active {
    color: #ffffff;
    background: var(--brand-gradient);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(224, 50, 112, 0.32);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-user .username {
    color: #ffffff;
}

.topbar-user .role {
    color: #94a3b8;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.username {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.role {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.1;
}

.logout-btn {
    width: auto;
    padding: 10px 14px;
}

/* Eski sidebar içindeki class'lar için fallback */
.sidebar-logo,
.sidebar-nav,
.sidebar-footer,
.user-profile {
    display: flex;
}

.sidebar-section-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================================================
   Main Content
   ========================================================= */

.main-content {
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
    padding: 34px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
    padding: 34px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: 60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(224, 50, 112, 0.24), transparent 68%);
    pointer-events: none;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(253, 89, 33, 0.12), transparent 70%);
    pointer-events: none;
}

.hero-content,
.hero-summary {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(224, 50, 112, 0.12);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}

.dashboard-hero h1 {
    max-width: 920px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    font-weight: 900;
    margin-bottom: 18px;
}

.dashboard-hero p {
    max-width: 900px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.hero-btn {
    width: auto;
}

.hero-summary {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-date span {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.hero-date strong {
    font-size: 28px;
    letter-spacing: -0.04em;
}

.hero-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hero-mini-stats div {
    padding: 15px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    text-align: center;
}

.hero-mini-stats span {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-mini-stats small {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

/* =========================================================
   Page Header
   ========================================================= */

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-title i {
    color: var(--accent);
}

.page-subtitle,
.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 7px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.form-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.form-title i {
    color: var(--accent);
}

/* =========================================================
   Stats
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.stat-card {
    min-height: 118px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 17px;
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-icon-accent {
    color: var(--accent);
    background: rgba(253, 89, 33, 0.12);
}

.stat-icon-warning {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.12);
}

.stat-icon-danger {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
}

.stat-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 800;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

/* =========================================================
   Workspace
   ========================================================= */

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 26px;
    align-items: start;
}

.workspace-left,
.workspace-right {
    min-width: 0;
}

.post-form-section {
    padding: 26px;
    margin-bottom: 26px;
}

.scheduler-form {
    margin-top: 20px;
}

/* =========================================================
   Account Selector
   ========================================================= */

.select-all-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    flex-wrap: wrap;
}

.select-all-row button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-all-row button:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.account-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 11px;
}

.account-check {
    min-width: 0;
}

.acc-cb-item {
    display: none;
}

.acc-cb-label {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    overflow: hidden;
}

.acc-cb-label:hover {
    border-color: rgba(224, 50, 112, 0.42);
    background: rgba(224, 50, 112, 0.08);
}

.acc-cb-item:checked + .acc-cb-label {
    border-color: rgba(253, 89, 33, 0.65);
    background: rgba(253, 89, 33, 0.1);
    box-shadow: 0 0 0 3px rgba(253, 89, 33, 0.07);
}

.acc-thumb,
.acc-thumb-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
}

.acc-thumb {
    object-fit: cover;
}

.acc-thumb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.acc-cb-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.acc-cb-text strong {
    max-width: 100%;
    display: block;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acc-cb-text small {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}

/* =========================================================
   Media Preview
   ========================================================= */

.media-preview-container {
    display: none;
    margin-top: 12px;
    position: relative;
    width: 100%;
    max-height: 240px;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.media-preview-container img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

.remove-media-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
    cursor: pointer;
}

/* =========================================================
   Calendar
   ========================================================= */

.calendar-container {
    padding: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.calendar-month {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 800;
    padding: 9px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 9px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    color: var(--text-secondary);
    padding: 0 0 10px;
    border-bottom: 1px solid var(--bg-card-border);
}

.calendar-day {
    min-height: 94px;
    padding: 8px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.calendar-empty {
    opacity: 0.16;
}

.calendar-day.today {
    border-color: rgba(224, 50, 112, 0.72);
    background: rgba(224, 50, 112, 0.08);
}

.calendar-day-number {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 900;
}

.calendar-day.today .calendar-day-number {
    color: var(--primary);
}

.calendar-event-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.calendar-platform-dot {
    display: inline-flex;
    font-size: 12px;
    line-height: 1;
}

/* Eski calendar event class'ları */
.calendar-event {
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event.facebook {
    background: var(--facebook);
}

.calendar-event.instagram {
    background: var(--instagram);
}

.calendar-event.twitter {
    background: #333333;
}

.calendar-event.linkedin {
    background: var(--linkedin);
}

.calendar-event.tiktok {
    background: var(--tiktok);
}

.calendar-event.youtube {
    background: var(--youtube);
}

/* =========================================================
   Planned Posts
   ========================================================= */

.planned-posts-card {
    padding: 22px;
    position: sticky;
    top: 108px;
}

.post-list-header {
    margin-bottom: 18px;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    margin-left: 5px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 900;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.post-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    overflow: hidden;
}

.post-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 8px 22px rgba(20, 60, 120, 0.08);
}

.post-item-main {
    min-width: 0;
    flex: 1;
}

.post-top-row {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.status-badge i {
    font-size: 6px;
}

.status-pending {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.status-published {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.status-failed {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.post-date,
.post-creator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.post-creator {
    margin-bottom: 8px;
}

.post-content-preview {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 12px;
    word-break: break-word;
}

.post-media-preview {
    margin-bottom: 12px;
}

.post-media-preview img,
.post-media-preview video {
    max-height: 110px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--bg-card-border);
}

.post-meta-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.post-platform-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.post-error-message {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 10px;
}

.post-delete-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-hover);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.22);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.post-delete-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}

/* =========================================================
   Empty State
   ========================================================= */

.empty-state {
    text-align: center;
    padding: 38px 22px;
    color: var(--text-secondary);
}

.empty-state i {
    display: block;
    font-size: 38px;
    opacity: 0.45;
    margin-bottom: 16px;
    color: var(--accent);
}

.empty-state h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 480px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.65;
}

.empty-state-btn {
    width: auto;
    margin-top: 18px;
}

.small-empty {
    padding: 34px 18px;
}

/* =========================================================
   Accounts Page Compatibility
   ========================================================= */

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e2e8f0;
}

.account-info-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.account-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-dark);
    border: 2px solid var(--bg-card-border);
    flex-shrink: 0;
}

.account-avatar.facebook {
    border-color: var(--facebook);
}

.account-avatar.instagram {
    border-color: var(--instagram);
}

.account-avatar.twitter {
    border-color: var(--text-primary);
}

.account-avatar.linkedin {
    border-color: var(--linkedin);
}

.account-avatar.tiktok {
    border-color: var(--tiktok);
}

.account-avatar.youtube {
    border-color: var(--youtube);
}

.account-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.account-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-platform {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* =========================================================
   Social Preview Compatibility
   ========================================================= */

.preview-card {
    padding: 28px;
    position: sticky;
    top: 108px;
    display: flex;
    flex-direction: column;
}

.social-preview-mockup {
    margin-top: 20px;
    background: #ffffff;
    color: #111827;
    border-radius: 14px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
}

.mockup-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #65676b;
}

.mockup-meta {
    display: flex;
    flex-direction: column;
}

.mockup-name {
    font-weight: 700;
    font-size: 14px;
}

.mockup-time {
    font-size: 12px;
    color: #65676b;
}

.mockup-body {
    padding: 0 13px 13px;
    font-size: 15px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.mockup-media {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: none;
}

.mockup-footer {
    display: flex;
    border-top: 1px solid #e4e6eb;
    padding: 9px 12px;
    justify-content: space-around;
    color: #65676b;
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   Platform Selector Compatibility
   ========================================================= */

.platform-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.platform-checkbox {
    display: none;
}

.platform-btn {
    flex: 1;
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.platform-btn i {
    font-size: 20px;
}

.platform-btn span {
    font-size: 11px;
    font-weight: 700;
}

.platform-checkbox:checked + .platform-btn.fb {
    border-color: var(--facebook);
    background: rgba(24, 119, 242, 0.1);
    color: var(--facebook);
}

.platform-checkbox:checked + .platform-btn.ig {
    border-color: var(--instagram);
    background: rgba(225, 48, 108, 0.1);
    color: var(--instagram);
}

.platform-checkbox:checked + .platform-btn.tw {
    border-color: var(--text-primary);
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
}

.platform-checkbox:checked + .platform-btn.li {
    border-color: var(--linkedin);
    background: rgba(0, 119, 181, 0.1);
    color: var(--linkedin);
}

.platform-checkbox:checked + .platform-btn.tt {
    border-color: var(--tiktok);
    background: rgba(255, 0, 80, 0.1);
    color: var(--tiktok);
}

.platform-checkbox:checked + .platform-btn.yt {
    border-color: var(--youtube);
    background: rgba(239, 68, 68, 0.1);
    color: var(--youtube);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1280px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .hero-summary {
        flex-direction: row;
        align-items: center;
    }

    .hero-mini-stats {
        min-width: 360px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .planned-posts-card {
        position: static;
    }
}

@media (max-width: 1100px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 22px;
    }

    .topbar-brand {
        min-width: 0;
    }

    .topbar-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 22px 16px;
    }

    .dashboard-hero {
        padding: 24px;
    }

    .dashboard-hero h1 {
        font-size: 32px;
    }

    .hero-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-mini-stats {
        min-width: 0;
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 24px;
    }

    .post-form-section,
    .calendar-container,
    .planned-posts-card {
        padding: 18px;
    }

    .account-selector {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        gap: 6px;
    }

    .calendar-day {
        min-height: 72px;
        padding: 6px;
    }

    .calendar-day-header {
        font-size: 11px;
    }

    .post-item {
        padding: 13px;
    }

    .post-delete-btn {
        width: 34px;
        height: 34px;
    }

    .topbar-user .user-info {
        display: none;
    }

    .logout-btn span {
        display: none;
    }

    .brand-title {
        font-size: 20px;
    }

    .brand-subtitle {
        display: none;
    }
}

@media (max-width: 520px) {
    .topbar {
        padding: 14px 14px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .topbar .nav-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    .topbar .nav-item span {
        white-space: nowrap;
    }

    .dashboard-hero h1 {
        font-size: 28px;
    }

    .hero-mini-stats {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        min-height: 58px;
    }

    .calendar-platform-dot {
        font-size: 10px;
    }
}
/* ===== Hesap seçici platform filtre çipleri ===== */
.acc-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 12px;
}
.acc-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}
.acc-filter-chip:hover {
    color: var(--text-primary);
    background: #f1f5f9;
}
.acc-filter-chip.active {
    color: #fff;
    background: var(--brand-gradient);
    border-color: transparent;
}
.acc-filter-chip i { font-size: 12px; }
.account-check.hidden-by-filter { display: none !important; }
