/**
 * Zehirli Mantar Blog - Facebook Style Design
 */

:root {
    /* Primary Colors */
    --fb-blue: #1877f2;
    --fb-blue-dark: #166fe5;
    --fb-blue-light: #e7f3ff;
    --fb-green: #42b72a;
    --fb-red: #fa3e3e;

    /* Accent Colors */
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Background Colors */
    --bg-main: #f0f2f5;
    --bg-white: #ffffff;
    --bg-hover: #f2f2f2;
    --bg-active: #e4e6e9;
    --bg-input: #f0f2f5;

    /* Text Colors */
    --text-primary: #050505;
    --text-secondary: #65676b;
    --text-tertiary: #bcc0c4;
    --text-placeholder: #8a8d91;
    --text-link: #1877f2;

    /* Border */
    --border-color: #dadde1;
    --divider: #ced0d4;

    /* Enhanced Shadows */
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .1);
    --shadow-2: 0 4px 20px rgba(0, 0, 0, .08);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, .12);
    --shadow-blue: 0 4px 14px rgba(24, 119, 242, .25);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Transitions */
    --transition: .2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: .15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: .3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-main: #0a0a0f;
    --bg-white: #16161d;
    --bg-hover: #1e1e28;
    --bg-active: #2a2a38;
    --bg-input: #1e1e28;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-tertiary: #6e7074;
    --text-placeholder: #707080;
    --border-color: #2a2a38;
    --divider: #2a2a38;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .2);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, .4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Segoe UI, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.34;
    color: var(--text-primary);
    background-color: var(--bg-main);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

/* ==================== FACEBOOK HEADER ==================== */
.fb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

[data-theme="dark"] .fb-header {
    background: rgba(22, 22, 29, 0.85);
    border-bottom-color: rgba(255, 255, 255, .05);
}

.fb-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
}

.fb-logo {
    width: 40px;
    height: 40px;
    background: var(--fb-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.fb-search {
    position: relative;
    flex: 1;
    max-width: 240px;
}

.fb-search input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
    background: var(--bg-input);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.fb-search input::placeholder {
    color: var(--text-placeholder);
}

.fb-search input:focus {
    box-shadow: 0 0 0 2px var(--fb-blue);
}

.fb-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-placeholder);
}

.fb-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.fb-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 110px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: background var(--transition);
    position: relative;
}

.fb-nav-item:hover {
    background: var(--bg-hover);
    text-decoration: none;
}

.fb-nav-item.active {
    color: var(--fb-blue);
}

.fb-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--fb-blue);
    border-radius: 3px 3px 0 0;
}

.fb-nav-item svg {
    width: 24px;
    height: 24px;
}

.fb-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
    justify-content: flex-end;
}

.fb-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition);
    position: relative;
}

.fb-icon-btn:hover {
    background: var(--bg-active);
    transform: scale(1.05);
}

.fb-icon-btn:active {
    transform: scale(0.95);
}

.fb-icon-btn svg {
    width: 20px;
    height: 20px;
    transition: color var(--transition-fast);
}

.fb-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--fb-red);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 2px solid transparent;
}

.fb-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--fb-blue-light);
}

.fb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== MAIN LAYOUT ==================== */
.fb-layout {
    display: flex;
    justify-content: center;
    padding-top: 60px;
    min-height: 100vh;
}

.fb-sidebar-left {
    width: 280px;
    padding: 16px 8px;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

.fb-main {
    width: 100%;
    max-width: 900px;
    padding: 16px;
    margin: 0 auto;
}

.fb-sidebar-right {
    width: 280px;
    padding: 16px 8px;
    position: fixed;
    right: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

@media (max-width: 1200px) {

    .fb-sidebar-left,
    .fb-sidebar-right {
        display: none;
    }

    .fb-header-center {
        display: none;
    }
}

/* ==================== SIDEBAR ITEMS ==================== */
.fb-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    transition: background var(--transition);
}

.fb-menu-item:hover {
    background: var(--bg-hover);
    text-decoration: none;
}

.fb-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 18px;
}

.fb-menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-menu-label {
    font-size: 15px;
}

.fb-menu-heading {
    padding: 8px 8px 4px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==================== CREATE POST BOX ==================== */
.fb-create-post {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
    padding: 12px 16px;
}

.fb-create-post-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--divider);
}

.fb-create-post-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-input);
    border: none;
    border-radius: 20px;
    font-size: 17px;
    color: var(--text-placeholder);
    cursor: pointer;
    text-align: left;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.fb-create-post-input:hover {
    background: var(--bg-hover);
}

.fb-create-post-actions {
    display: flex;
    padding-top: 8px;
}

.fb-create-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    transition: background var(--transition);
}

.fb-create-action:hover {
    background: var(--bg-hover);
}

.fb-create-action svg {
    width: 24px;
    height: 24px;
}

.fb-create-action.live svg {
    color: #f3425f;
}

.fb-create-action.photo svg {
    color: #45bd62;
}

.fb-create-action.feeling svg {
    color: #f7b928;
}

/* ==================== POST CARD ==================== */
.fb-post {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.fb-post:hover {
    box-shadow: var(--shadow-hover);
}

.fb-post-header {
    padding: 12px 16px 0;
    display: flex;
    align-items: flex-start;
}

.fb-post-author {
    display: flex;
    gap: 8px;
    flex: 1;
}

.fb-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.fb-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-post-info {
    flex: 1;
}

.fb-post-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.fb-post-name:hover {
    text-decoration: underline;
}

.fb-post-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.fb-post-meta svg {
    width: 12px;
    height: 12px;
}

.fb-post-options {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background var(--transition);
}

.fb-post-options:hover {
    background: var(--bg-hover);
}

.fb-post-content {
    padding: 12px 16px;
}

.fb-post-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.fb-post-title a {
    color: inherit;
}

.fb-post-title a:hover {
    text-decoration: none;
    color: var(--fb-blue);
}

.fb-post-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
}

.fb-post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    cursor: pointer;
}

.fb-post-stats {
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: var(--text-secondary);
}

.fb-post-stats-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-reaction-icons {
    display: flex;
}

.fb-reaction-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -2px;
    border: 2px solid var(--bg-white);
}

.fb-reaction-icon.like {
    background: var(--fb-blue);
}

.fb-reaction-icon.love {
    background: #f33e58;
}

.fb-reaction-icon svg {
    width: 10px;
    height: 10px;
    color: white;
}

.fb-post-actions {
    display: flex;
    padding: 4px 16px 4px;
    border-top: 1px solid var(--divider);
    margin-top: 12px;
}

.fb-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    transition: background var(--transition);
}

.fb-action-btn:hover {
    background: var(--bg-hover);
}

.fb-action-btn.active {
    color: var(--fb-blue);
}

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

/* ==================== INLINE COMMENTS ==================== */
.fb-inline-comments {
    border-top: 1px solid var(--divider);
    padding: 12px 16px;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

.fb-comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.fb-comment-item {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.fb-comment-item:last-child {
    margin-bottom: 0;
}

.fb-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.fb-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-comment-content {
    flex: 1;
    background: var(--bg-input);
    padding: 8px 12px;
    border-radius: 18px;
}

.fb-comment-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.fb-comment-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.fb-comment-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    padding-left: 12px;
}

.fb-inline-comment-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fb-comment-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: 20px;
    padding: 4px 4px 4px 12px;
    transition: box-shadow var(--transition);
}

.fb-comment-input-wrapper:focus-within {
    box-shadow: 0 0 0 2px var(--fb-blue-light);
}

.fb-comment-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.fb-comment-input::placeholder {
    color: var(--text-placeholder);
}

.fb-comment-submit {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--fb-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.fb-comment-submit:hover {
    background: var(--fb-blue-light);
}

.fb-comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fb-comments-loading {
    text-align: center;
    padding: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.fb-comments-empty {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.fb-view-all-comments {
    display: block;
    text-align: center;
    padding: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.fb-view-all-comments:hover {
    color: var(--text-primary);
    text-decoration: none;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--fb-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(24, 119, 242, .3);
}

.btn-primary:hover {
    background: var(--fb-blue-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-active);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--fb-green);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 183, 42, .3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(66, 183, 42, .4);
}

.btn-danger {
    background: var(--fb-red);
    color: white;
    box-shadow: 0 2px 8px rgba(250, 62, 62, .3);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(250, 62, 62, .4);
}

.btn-lg {
    padding: 10px 20px;
    font-size: 17px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 17px;
    color: var(--text-primary);
    outline: none;
}

.form-input:focus {
    border-color: var(--fb-blue);
    box-shadow: 0 0 0 2px var(--fb-blue-light);
}

.form-input::placeholder {
    color: var(--text-placeholder);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
}

.form-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--fb-blue);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--divider);
}

/* ==================== AUTH PAGES ==================== */
.auth-page {
    min-height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    display: flex;
    gap: 80px;
    align-items: center;
    max-width: 980px;
}

.auth-left {
    flex: 1;
    max-width: 500px;
}

.auth-logo-text {
    font-size: 60px;
    font-weight: 700;
    color: var(--fb-blue);
    line-height: 1;
    margin-bottom: 16px;
}

.auth-tagline {
    font-size: 28px;
    line-height: 1.2;
    color: var(--text-primary);
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 8px 16px rgba(0, 0, 0, .1);
    padding: 20px;
    width: 396px;
}

.auth-card .form-input {
    margin-bottom: 12px;
}

.auth-card .btn-primary {
    font-size: 20px;
    padding: 12px;
    margin: 16px 0;
}

.auth-forgot {
    text-align: center;
    margin-bottom: 20px;
}

.auth-forgot a {
    font-size: 14px;
}

.auth-divider {
    border-top: 1px solid var(--divider);
    margin: 20px 0;
}

.auth-register {
    text-align: center;
}

.auth-register .btn-success {
    font-size: 17px;
    padding: 12px 16px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
}

.google-btn:hover {
    background: var(--bg-hover);
    text-decoration: none;
}

.google-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .auth-card {
        width: 100%;
        max-width: 400px;
    }

    .auth-logo-text {
        font-size: 42px;
    }

    .auth-tagline {
        font-size: 20px;
    }
}

/* ==================== WIDGETS ==================== */
.fb-widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 16px;
    margin-bottom: 16px;
}

.fb-widget-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.fb-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.fb-stat-value {
    font-weight: 600;
    color: var(--fb-blue);
}

.fb-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-input);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 4px;
    transition: background var(--transition);
}

.fb-tag:hover {
    background: var(--bg-active);
    text-decoration: none;
}

/* ==================== ADMIN ==================== */
.admin-layout {
    min-height: 100vh;
    background: var(--bg-main);
}

.admin-sidebar {
    background: var(--bg-white);
    border-right: 1px solid var(--divider);
    padding: 24px;
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    box-shadow: var(--shadow-1);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--divider);
    color: var(--fb-blue);
    text-decoration: none;
}

.admin-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--fb-blue);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.admin-content {
    margin-left: 280px;
    padding: 32px;
    background: var(--bg-main);
    min-height: 100vh;
    width: calc(100% - 280px);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.admin-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.admin-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    text-decoration: none;
}

.admin-nav-item.active {
    background: var(--fb-blue-light);
    color: var(--fb-blue);
    border-color: rgba(24, 119, 242, 0.1);
}

.admin-nav-item svg {
    width: 22px;
    height: 22px;
    opacity: 0.8;
}

.admin-nav-item.active svg {
    opacity: 1;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
}

.stat-card-icon.blue {
    background: rgba(24, 119, 242, 0.1);
    color: var(--fb-blue);
}

.stat-card-icon.green {
    background: rgba(66, 183, 42, 0.1);
    color: var(--fb-green);
}

.stat-card-icon.orange {
    background: rgba(247, 185, 40, 0.1);
    color: #f7b928;
}

.stat-card-icon.red {
    background: rgba(250, 62, 62, 0.1);
    color: var(--fb-red);
}

.stat-card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.admin-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--divider);
    overflow: hidden;
}

.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-action {
    font-size: 14px;
    font-weight: 600;
    color: var(--fb-blue);
    transition: opacity 0.2s;
}

.admin-card-action:hover {
    text-decoration: none;
    opacity: 0.8;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.quick-action:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    text-decoration: none;
    background: var(--bg-white);
}

.quick-action.primary {
    background: var(--fb-blue);
    color: white;
    border-color: var(--fb-blue);
}

.quick-action.primary:hover {
    background: var(--fb-blue-dark);
}

.quick-action svg {
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

.list-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s;
}

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

.list-item:hover {
    background: var(--bg-hover);
}

.list-content {
    flex: 1;
    min-width: 0;
}

.list-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-success {
    background: rgba(66, 183, 42, 0.15);
    color: var(--fb-green);
}

.tag-warning {
    background: rgba(247, 185, 40, 0.15);
    color: #c4921f;
}

.tag-danger {
    background: rgba(250, 62, 62, 0.15);
    color: var(--fb-red);
}

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all .2s;
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, .8);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 500px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    transform: scale(.95);
    transition: transform .2s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--divider);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-close:hover {
    background: var(--bg-active);
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--divider);
}

.tag-primary {
    background: var(--fb-blue-light);
    color: var(--fb-blue);
}

.tag-success {
    background: rgba(66, 183, 42, .1);
    color: var(--fb-green);
}

.tag-warning {
    background: rgba(247, 185, 40, .1);
    color: #d97706;
}

.tag-danger {
    background: rgba(250, 62, 62, .1);
    color: var(--fb-red);
}

/* ==================== DROPDOWN ==================== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .15s;
    z-index: 100;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    transition: background var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    text-decoration: none;
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--divider);
    margin: 4px 0;
}

/* ==================== TOAST ==================== */
.toast-container {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-2);
    min-width: 320px;
    transform: translateX(120%);
    opacity: 0;
    transition: all .3s;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: var(--fb-green);
}

.toast-error .toast-icon {
    color: var(--fb-red);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 14px;
    color: var(--text-secondary);
}

.toast-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-placeholder);
    cursor: pointer;
}

/* ==================== COMMENTS ==================== */
.fb-comments {
    padding: 8px 16px 16px;
}

.fb-comments-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.fb-comment-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.fb-comment-input-wrap {
    flex: 1;
    position: relative;
}

.fb-comment-input {
    width: 100%;
    padding: 8px 40px 8px 12px;
    background: var(--bg-input);
    border: none;
    border-radius: 18px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    resize: none;
    min-height: 36px;
}

.fb-comment-input:focus {
    box-shadow: 0 0 0 2px var(--fb-blue);
}

.fb-comment-send {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-blue);
    cursor: pointer;
}

.fb-comment {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.fb-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.fb-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-comment-body {
    flex: 1;
}

.fb-comment-bubble {
    background: var(--bg-input);
    padding: 8px 12px;
    border-radius: 18px;
    display: inline-block;
    max-width: 100%;
}

.fb-comment-name {
    font-weight: 600;
    font-size: 13px;
}

.fb-comment-text {
    font-size: 15px;
}

.fb-comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    padding-left: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.fb-comment-actions span {
    cursor: pointer;
}

.fb-comment-actions span:hover {
    text-decoration: underline;
}

.fb-comment-actions .active {
    color: var(--fb-blue);
}

.reply-form {
    margin-left: 40px;
    margin-top: 8px;
    display: none;
}

.reply-form.active {
    display: block;
}

/* ==================== QUILL ==================== */
.ql-toolbar.ql-snow {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    background: var(--bg-input) !important;
}

.ql-container.ql-snow {
    border: 1px solid var(--border-color) !important;
    border-top: none !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    background: var(--bg-white) !important;
}

.ql-editor {
    min-height: 300px;
    font-size: 15px;
    color: var(--text-primary) !important;
}

/* ==================== EMPTY STATE ==================== */
.fb-empty {
    text-align: center;
    padding: 48px 24px;
}

.fb-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-placeholder);
}

.fb-empty-icon svg {
    width: 40px;
    height: 40px;
}

.fb-empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.fb-empty-text {
    color: var(--text-secondary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .fb-header-left {
        min-width: auto;
    }

    .fb-search {
        display: none;
    }

    .fb-header-right {
        min-width: auto;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-content {
        margin-left: 0;
    }
}

/* ==================== PROFILE PAGE STYLES ==================== */
.profile-header {
    position: relative;
}

.profile-cover {
    background: var(--accent-gradient) !important;
    position: relative;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: var(--shadow-2);
    transition: all var(--transition-fast);
}

.profile-avatar-edit:hover {
    background: var(--fb-blue);
    color: white;
    transform: scale(1.1);
}

.profile-tabs {
    display: flex;
    gap: 4px;
    border-top: 1px solid var(--divider);
    padding-top: 8px;
    margin-top: 8px;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.profile-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.profile-tab.active {
    color: var(--fb-blue);
    background: var(--fb-blue-light);
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--fb-blue);
    border-radius: 3px;
}

.profile-tab svg {
    flex-shrink: 0;
}

.profile-tab-content {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.about-item:hover {
    background: var(--bg-hover);
}

.about-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fb-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-blue);
    flex-shrink: 0;
}

.about-content {
    flex: 1;
}

.about-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.about-value {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
}

.about-value a {
    color: var(--fb-blue);
}

/* Profile Edit Modal */
.profile-edit-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--divider);
}

.profile-edit-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-edit-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.profile-edit-section-title svg {
    color: var(--fb-blue);
}

/* Avatar Upload Drop Zone */
.avatar-drop-zone {
    border: 2px dashed var(--divider);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-main);
}

.avatar-drop-zone:hover {
    border-color: var(--fb-blue);
    background: var(--fb-blue-light);
}

.avatar-drop-zone.drag-over {
    border-color: var(--fb-blue);
    background: var(--fb-blue-light);
    transform: scale(1.02);
}

.avatar-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-drop-zone.has-file {
    border-color: var(--fb-green);
    border-style: solid;
    background: rgba(34, 197, 94, 0.1);
}

.avatar-drop-zone.has-file .avatar-drop-content svg {
    color: var(--fb-green);
}

/* ==================== SHARE MODAL BUTTONS ==================== */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: scale(0.95);
}

/* Share button label on hover */
.share-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}