/* 
   ==========================================================================
   BlogSpace Premium Design System - Purple & White Theme
   ========================================================================== 
*/

:root {
    /* Color Palette */
    --clr-bg-primary: #ffffff;
    --clr-bg-secondary: #fafbfe;

    --clr-primary: #6366f1;
    /* Deep Indigo/Purple */
    --clr-primary-hover: #4f46e5;
    --clr-primary-light: #eef2ff;
    /* Extremely light purple tint */
    --clr-primary-border: #e0e7ff;

    --clr-text-main: #1f2937;
    /* Dark Slate Charcoal for premium contrast */
    --clr-text-muted: #4b5563;
    /* Medium Gray */
    --clr-text-light: #9ca3af;

    --clr-border: #f3f4f6;
    --clr-border-focus: #c7d2fe;

    /* Alerts & Statuses */
    --clr-success: #10b981;
    --clr-success-bg: #ecfdf5;
    --clr-danger: #ef4444;
    --clr-danger-bg: #fef2f2;
    --clr-info: #6366f1;
    --clr-info-bg: #eff6ff;

    /* Shadows & Border Radii */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(99, 102, 241, 0.06), 0 2px 8px -1px rgba(99, 102, 241, 0.04);
    --shadow-lg: 0 10px 30px -5px rgba(99, 102, 241, 0.08), 0 4px 12px -2px rgba(99, 102, 241, 0.05);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}



/* ==========================================================================
   Premium Reading Experience Components
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 52px; /* standard desktop navbar height */
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 9999;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--clr-primary), #a78bfa);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* Table of Contents Widget */
.ln-toc-widget {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.ln-toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.ln-toc-link {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    padding: 0.25rem 0;
    transition: all var(--transition-fast);
    line-height: 1.4;
    border-left: 2px solid transparent;
    padding-left: 10px;
}
.ln-toc-link:hover {
    color: var(--clr-primary);
    padding-left: 14px;
}
.ln-toc-link.active {
    color: var(--clr-primary);
    font-weight: 600;
    border-left-color: var(--clr-primary);
    padding-left: 12px;
}
.ln-toc-link.toc-h2 {
    padding-left: 10px;
}
.ln-toc-link.toc-h2.active {
    padding-left: 12px;
}
.ln-toc-link.toc-h3 {
    padding-left: 20px;
    font-size: 0.85rem;
}
.ln-toc-link.toc-h3:hover {
    padding-left: 24px;
}
.ln-toc-link.toc-h3.active {
    padding-left: 22px;
    border-left-color: var(--clr-primary-border);
}

/* Mobile Inline TOC */
.mobile-toc-container {
    background-color: var(--clr-bg-secondary);
    border: 1px solid var(--clr-primary-border);
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}
.mobile-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    user-select: none;
}
.mobile-toc-header i {
    transition: transform var(--transition-normal);
}
.mobile-toc-container.collapsed .mobile-toc-header i {
    transform: rotate(-90deg);
}
.mobile-toc-content {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--clr-primary-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-toc-container.collapsed .mobile-toc-content {
    display: none;
}

/* Reader / Focus Mode */
body.ln-reader-mode-active {
    background-color: var(--clr-bg-primary) !important;
}
body.ln-reader-mode-active .ln-navbar,
body.ln-reader-mode-active .ln-sidebar-left,
body.ln-reader-mode-active .ln-sidebar-right,
body.ln-reader-mode-active .ln-bottom-tab-bar,
body.ln-reader-mode-active .ln-desktop-footer {
    display: none !important;
}
body.ln-reader-mode-active .ln-article-layout {
    grid-template-columns: 1fr !important;
    max-width: 760px !important;
    margin: 2rem auto !important;
    padding: 0 1rem !important;
}
body.ln-reader-mode-active .ln-article-center {
    width: 100% !important;
    max-width: 100% !important;
}
body.ln-reader-mode-active .ln-article-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}
body.ln-reader-mode-active .ln-article-body {
    font-family: 'Georgia', Cambria, "Times New Roman", Times, serif;
    font-size: 1.25rem !important;
    line-height: 1.9 !important;
    color: var(--clr-text-main) !important;
    letter-spacing: -0.003em;
}
body.ln-reader-mode-active .ln-article-title {
    font-size: 3rem !important;
    line-height: 1.15 !important;
    margin-bottom: 2rem !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Floating Exit Reader Mode button */
.exit-reader-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--clr-primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    z-index: 10000;
    display: none;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
}
body.ln-reader-mode-active .exit-reader-btn {
    display: inline-flex;
}
.exit-reader-btn:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}



/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent layout shift from scrollbar appearing/disappearing */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    background-color: var(--clr-bg-primary);
    color: var(--clr-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--clr-text-main);
}

a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--clr-primary-hover);
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary-hover);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

/* Navbar */
.navbar {
    background-color: var(--clr-bg-primary);
    border-bottom: 1px solid var(--clr-primary-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.02);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--clr-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo i {
    color: var(--clr-primary);
}

.nav-logo span {
    color: var(--clr-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--clr-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: var(--clr-primary);
}

.user-greeting {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.user-greeting strong {
    color: var(--clr-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--clr-primary-border);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary-light);
    border-color: var(--clr-primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

.nav-btn {
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.nav-btn.btn-primary {
    background-color: var(--clr-primary);
    color: white;
    border: none;
}

.nav-btn.btn-primary:hover {
    background-color: var(--clr-primary-hover);
}

.nav-btn.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--clr-primary-border);
    color: var(--clr-primary);
}

.nav-btn.btn-outline:hover {
    background-color: var(--clr-primary-light);
    border-color: var(--clr-primary);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

/* Flash Alerts */
.flash-container {
    margin-bottom: 2rem;
}

.alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: var(--clr-success-bg);
    color: var(--clr-success);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.alert-danger {
    background-color: var(--clr-danger-bg);
    color: var(--clr-danger);
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.alert-info {
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary-border);
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* Auth Pages (Login / Signup) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    min-height: 70vh;
}

.auth-card {
    background-color: var(--clr-bg-primary);
    border: 1.5px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.auth-card:hover {
    transform: translateY(-2px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-icon {
    width: 60px;
    height: 60px;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    border: 1px solid var(--clr-primary-border);
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text-main);
}

.auth-header p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group label i {
    color: var(--clr-primary);
    font-size: 0.85rem;
}

.form-group input {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--clr-border);
    background-color: var(--clr-bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    color: var(--clr-text-main);
    width: 100%;
}

.form-group input::placeholder {
    color: var(--clr-text-light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: var(--clr-bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-sm);
    accent-color: var(--clr-primary);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    user-select: none;
}

.error-msg {
    color: var(--clr-danger);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: none;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.auth-footer a {
    font-weight: 600;
}

/* Dashboard Section */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.dashboard-hero {
    background-color: var(--clr-primary-light);
    border: 1.5px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-content p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

.badge {
    display: inline-flex;
    background-color: white;
    color: var(--clr-primary-hover);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--clr-primary-border);
    margin-bottom: 1.25rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background-color: var(--clr-bg-primary);
    border: 1.5px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-primary);
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--clr-primary-border);
}

.dashboard-card h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.dashboard-card p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

/* Info List Items */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--clr-border);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.info-val {
    font-weight: 600;
    font-size: 0.95rem;
}

.badge-purple {
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--clr-success);
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--clr-success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-details {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

/* Action Area */
.next-actions {
    margin-top: auto;
}

.btn-outline-purple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: 1.5px solid var(--clr-primary);
    color: var(--clr-primary);
    border-radius: var(--radius-md);
    background-color: transparent;
    transition: all var(--transition-normal);
    width: 100%;
}

.btn-outline-purple:hover {
    background-color: var(--clr-primary);
    color: white;
    transform: translateY(-1px);
}

/* Premium Footer Section */
.footer {
    border-top: 1px solid var(--clr-primary-border);
    padding: 5rem 0 2.5rem 0;
    margin-top: 6rem;
    background-color: var(--clr-bg-secondary);
    position: relative;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--clr-border);
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text-main);
    font-weight: 700;
}

.brand-col .footer-logo {
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--clr-text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.brand-col .footer-logo i, .brand-col .footer-logo span {
    color: var(--clr-primary);
}

.footer-desc {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    background-color: var(--clr-bg-primary);
    border: 1px solid var(--clr-primary-border);
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background-color: var(--clr-primary);
    color: white;
    border-color: var(--clr-primary);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-primary);
    padding-left: 4px;
}

.newsletter-col p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.newsletter-input-group {
    display: flex;
    background-color: var(--clr-bg-primary);
    border: 1.5px solid var(--clr-primary-border);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    transition: all var(--transition-normal);
}

.newsletter-input-group:focus-within {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.newsletter-input-group input {
    border: none;
    background: none;
    padding: 0.5rem 0.75rem;
    flex-grow: 1;
    font-size: 0.9rem;
    color: var(--clr-text-main);
    outline: none;
    min-width: 0;
}

.newsletter-input-group button {
    padding: 0.5rem 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    color: var(--clr-text-light);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media(max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .dashboard-hero {
        padding: 2.5rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   Blog Feed Grid & Cards Styles
   ========================================================================== */
.blogs-container {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.feed-header {
    text-align: center;
    margin-bottom: 3rem;
}

.feed-header h1 {
    font-size: 2.75rem;
    color: var(--clr-text-main);
    margin-bottom: 0.5rem;
}

.feed-header p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

/* Category filter bar */
.category-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    background-color: var(--clr-bg-primary);
    color: var(--clr-text-muted);
    border: 1.5px solid var(--clr-border);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.category-tab:hover {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
    background-color: var(--clr-primary-light);
}

.category-tab.active {
    background-color: var(--clr-primary);
    color: white;
    border-color: var(--clr-primary);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

/* Blog grid layout */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background-color: var(--clr-bg-primary);
    border: 1.5px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-primary);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: var(--clr-primary-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.04);
}

.fallback-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    font-size: 3rem;
}

.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-primary);
    background-color: var(--clr-primary-light);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.card-date {
    font-size: 0.8rem;
    color: var(--clr-text-light);
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-title a {
    color: var(--clr-text-main);
}

.card-title a:hover {
    color: var(--clr-primary);
}

.card-excerpt {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--clr-border);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.author-info i {
    color: var(--clr-primary);
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--clr-text-light);
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    border: 2px dashed var(--clr-primary-border);
    border-radius: var(--radius-lg);
    background-color: var(--clr-bg-secondary);
}

.empty-icon {
    font-size: 3rem;
    color: var(--clr-primary-border);
    margin-bottom: 1.5rem;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Blog Detail (Reading Page) Styles
   ========================================================================== */
.blog-detail-wrapper {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--clr-primary);
}

.blog-article {
    background-color: var(--clr-bg-primary);
    border: 1px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-primary);
    background-color: var(--clr-primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 1.5rem;
}

.author-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--clr-primary-border);
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.publish-date {
    font-size: 0.8rem;
    color: var(--clr-text-light);
}

.article-stats {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.article-banner {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.article-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--clr-text-main);
    margin-bottom: 3rem;
}

/* Article Interaction Panel */
.article-interactions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1.5px solid var(--clr-border);
    padding-top: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.interaction-buttons {
    display: flex;
    gap: 1rem;
}

.interaction-btn {
    background-color: var(--clr-bg-primary);
    border: 1.5px solid var(--clr-border);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
}

.interaction-btn:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    background-color: var(--clr-primary-light);
}

.interaction-btn.active {
    background-color: var(--clr-primary);
    color: white;
    border-color: var(--clr-primary);
}

.inline-form {
    display: inline-block;
}

.author-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-outline-edit {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1.5px solid var(--clr-primary-border);
    color: var(--clr-primary);
    background-color: white;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-normal);
}

.btn-outline-edit:hover {
    background-color: var(--clr-primary-light);
    border-color: var(--clr-primary);
}

.btn-outline-delete {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1.5px solid #fecaca;
    color: var(--clr-danger);
    background-color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-normal);
}

.btn-outline-delete:hover {
    background-color: var(--clr-danger-bg);
    border-color: var(--clr-danger);
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
.comments-section {
    background-color: var(--clr-bg-primary);
    border: 1px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    display: none; /* Hidden by default */
}

.comments-section.active {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comments-section h3 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-section h3 i {
    color: var(--clr-primary);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-md);
    background-color: var(--clr-bg-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    resize: vertical;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: var(--clr-bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.login-prompt-box {
    background-color: var(--clr-primary-light);
    border: 1px solid var(--clr-primary-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.login-prompt-box a {
    font-weight: 700;
    text-decoration: underline;
}

.comments-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-card {
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 1.5rem;
}

.comment-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.commenter-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.delete-comment-form {
    margin-left: auto;
}

.btn-delete-comment {
    background: none;
    border: none;
    color: var(--clr-text-light);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.4rem;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-comment:hover {
    color: var(--clr-danger);
    background-color: var(--clr-danger-bg);
}

.commenter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 1px solid var(--clr-primary-border);
}

.commenter-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--clr-text-light);
}

.comment-body {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--clr-text-muted);
    padding-left: 2.5rem;
}

.no-comments {
    color: var(--clr-text-light);
    text-align: center;
    padding: 2rem 0;
    font-style: italic;
}

/* ==========================================================================
   Editor Form (Write / Edit) Styles
   ========================================================================== */
.editor-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.editor-card {
    background-color: var(--clr-bg-primary);
    border: 1.5px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    width: 100%;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
}

.editor-header {
    text-align: center;
    margin-bottom: 3rem;
}

.editor-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.editor-form select {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--clr-border);
    background-color: var(--clr-bg-secondary);
    border-radius: var(--radius-md);
    color: var(--clr-text-main);
    transition: all var(--transition-normal);
    cursor: pointer;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em;
}

.editor-form select:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: var(--clr-bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.editor-form textarea {
    width: 100%;
    padding: 1rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--clr-border);
    background-color: var(--clr-bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    color: var(--clr-text-main);
    font-family: inherit;
    resize: vertical;
}

.editor-form textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: var(--clr-bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.help-text {
    font-size: 0.8rem;
    color: var(--clr-text-light);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Dashboard Section & Tables
   ========================================================================== */
.dashboard-section {
    margin-top: 2.5rem;
    background-color: var(--clr-bg-primary);
    border: 1px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-section h2 i {
    color: var(--clr-primary);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.dashboard-table th {
    padding: 1rem;
    font-weight: 700;
    color: var(--clr-text-muted);
    border-bottom: 2px solid var(--clr-border);
}

.dashboard-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--clr-border);
    vertical-align: middle;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.table-title {
    color: var(--clr-text-main);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.table-title:hover {
    color: var(--clr-primary);
}

.text-right {
    text-align: right;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.action-btn-edit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-primary);
    background-color: var(--clr-primary-light);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.action-btn-edit:hover {
    background-color: var(--clr-primary);
    color: white;
}

.action-btn-delete {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-danger);
    background-color: var(--clr-danger-bg);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--transition-fast);
}

.action-btn-delete:hover {
    background-color: var(--clr-danger);
    color: white;
}

.empty-state-card {
    text-align: center;
    padding: 3rem;
    background-color: var(--clr-bg-secondary);
    border-radius: var(--radius-md);
    border: 1px dashed var(--clr-border);
    color: var(--clr-text-muted);
}

/* Dashboard Bookmarks Grid */
.bookmarks-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.bookmark-mini-card {
    background-color: var(--clr-bg-primary);
    border: 1.5px solid var(--clr-primary-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.bookmark-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-primary);
}

.bookmark-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 80%;
}

.mini-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--clr-primary);
}

.bookmark-details h3 {
    font-size: 0.95rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmark-details h3 a {
    color: var(--clr-text-main);
}

.bookmark-details h3 a:hover {
    color: var(--clr-primary);
}

.mini-author {
    font-size: 0.75rem;
    color: var(--clr-text-light);
}

.btn-remove-bookmark {
    background: none;
    border: none;
    color: var(--clr-primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.btn-remove-bookmark:hover {
    color: var(--clr-primary-hover);
}




/* Badge Draft Styles */
.badge-draft {
    background-color: var(--clr-border);
    color: var(--clr-text-muted);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    border: 1px solid var(--clr-primary-border);
}

/* ==========================================================================
   User Profile Styles
   ========================================================================== */
.profile-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeIn 0.4s ease;
}

.profile-hero {
    background-color: var(--clr-primary-light);
    border: 1.5px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.profile-hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    background-color: white;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.profile-avatar-large img:hover {
    transform: scale(1.05);
}

.profile-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.profile-meta-info h1 {
    font-size: 2.25rem;
    color: var(--clr-text-main);
    margin: 0;
}

.profile-email {
    font-size: 1rem;
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-quick-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.stat-badge {
    background-color: white;
    border: 1px solid var(--clr-primary-border);
    color: var(--clr-text-muted);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-badge strong {
    color: var(--clr-primary);
}

.profile-hero-bio {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--clr-primary-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 0.5rem;
}

.profile-hero-bio h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--clr-primary-hover);
}

.profile-hero-bio p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.profile-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.settings-card {
    background-color: var(--clr-bg-primary);
    border: 1.5px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.settings-card h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.settings-card h2 i {
    color: var(--clr-primary);
}

.section-desc {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Presets Avatar Grid */
.presets-section {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.presets-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.presets-label i {
    color: var(--clr-primary);
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}


.preset-item {
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    background-color: var(--clr-bg-secondary);
}

.preset-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preset-item:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.preset-item.selected {
    border-color: var(--clr-primary);
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.char-counter {
    font-size: 0.8rem;
    color: var(--clr-text-light);
    font-weight: 600;
}

.form-help {
    font-size: 0.8rem;
    color: var(--clr-text-light);
    margin-top: 0.25rem;
}

/* Bio Textarea styling */
textarea#bio {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--clr-border);
    background-color: var(--clr-bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    color: var(--clr-text-main);
    width: 100%;
    resize: vertical;
    font-family: inherit;
}

textarea#bio:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: var(--clr-bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Card Actions & Stats Layout */
.card-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.card-stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--clr-text-light);
}

.btn-read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--transition-fast);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.btn-read-more i {
    transition: transform var(--transition-fast);
}

.btn-read-more:hover {
    color: var(--clr-primary-hover);
    background-color: var(--clr-primary-light);
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

/* Medium Style Views badge inside detail reading view toolbar */
.interaction-stat-badge {
    background-color: var(--clr-bg-secondary);
    border: 1.5px solid var(--clr-border);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* File Upload Input Styling */
.file-upload-input {
    padding: 0.75rem 1rem !important;
    background-color: var(--clr-bg-secondary);
    border: 1.5px dashed var(--clr-primary-border) !important;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.file-upload-input:hover {
    border-color: var(--clr-primary) !important;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
}

/* LinkedIn-Style Interactions Bar inside Feed Cards */
.card-interactions-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--clr-border);
    background-color: var(--clr-bg-secondary);
}

.card-interactions-bar form {
    display: block;
    width: 100%;
}

.feed-interaction-btn {
    background: none;
    border: none;
    padding: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    text-align: center;
    width: 100%;
}

.feed-interaction-btn:hover {
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
}

/* Red Color coding for Likes when Active */
.like-btn.active, .interaction-btn.like-btn.active {
    color: #ef4444 !important; /* Premium Red */
    border-color: #fecaca !important;
    background-color: #fef2f2 !important;
}

.like-btn.active:hover, .interaction-btn.like-btn.active:hover {
    background-color: #fee2e2 !important;
}

/* Blue Color coding for Saves when Active */
.save-btn.active, .interaction-btn.save-btn.active {
    color: #3b82f6 !important; /* Premium Blue */
    border-color: #bfdbfe !important;
    background-color: #eff6ff !important;
}

.save-btn.active:hover, .interaction-btn.save-btn.active:hover {
    background-color: #dbeafe !important;
}

.feed-interaction-btn.active i {
    transform: scale(1.1);
}

/* 
   ==========================================================================
   HOMEPAGE PREMIUM REDESIGN STYLES
   ========================================================================== 
*/

.homepage-wrapper {
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Ambient glows */
.ambient-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
    animation: floatingGlow 10s ease-in-out infinite alternate;
}

.glow-1 {
    top: 5%;
    left: -10%;
    background-color: var(--clr-primary);
}

.glow-2 {
    top: 40%;
    right: -10%;
    background-color: #d946ef; /* Magenta Glow */
    animation-delay: 3s;
}

@keyframes floatingGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.15); }
}

/* 1. Hero Section */
.hero-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--clr-primary-light);
    border: 1px solid var(--clr-primary-border);
    color: var(--clr-primary-hover);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.05);
}

.animate-pulse-icon {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--clr-text-main);
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, var(--clr-primary) 0%, #a855f7 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 680px;
}

/* Hero Search form with Glassmorphism */
.hero-search-wrapper {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(224, 231, 255, 0.6);
    border-radius: 20px;
    padding: 0.5rem;
    box-shadow: 0 10px 35px -5px rgba(99, 102, 241, 0.08), 0 5px 15px -5px rgba(99, 102, 241, 0.03);
    transition: all var(--transition-normal);
}

.hero-search-wrapper:focus-within {
    border-color: var(--clr-primary);
    box-shadow: 0 15px 40px -5px rgba(99, 102, 241, 0.12);
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.hero-search-form .search-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.search-icon {
    font-size: 1.2rem;
    color: var(--clr-primary);
    margin-left: 0.75rem;
}

.hero-search-form input {
    flex-grow: 1;
    border: none;
    background: none;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: var(--clr-text-main);
    outline: none;
    min-width: 0;
}

.hero-search-form input::placeholder {
    color: var(--clr-text-light);
}

.btn-search {
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: none !important;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 4rem;
}

/* Statistics Counters styling */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 650px;
    gap: 2rem;
    border-top: 1px solid var(--clr-primary-border);
    padding-top: 3rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--clr-primary-hover);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* Section Header Styles */
.home-section {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
}

.header-titles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-primary);
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--clr-text-main);
    line-height: 1.2;
}

.section-link {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-primary);
}

.section-link i {
    transition: transform var(--transition-fast);
}

.section-link:hover i {
    transform: translateX(4px);
}

/* 2. Latest Blogs specific animations */
.latest-section .blog-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.latest-section .blog-card:nth-child(1) { animation-delay: 0.1s; }
.latest-section .blog-card:nth-child(2) { animation-delay: 0.2s; }
.latest-section .blog-card:nth-child(3) { animation-delay: 0.3s; }
.latest-section .blog-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Popular Blogs (Medium/Custom visual ranks) */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.popular-row-card {
    display: flex;
    gap: 1.5rem;
    background-color: var(--clr-bg-primary);
    border: 1.5px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.popular-row-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-primary);
}

.popular-rank {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-primary-border);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    transition: color var(--transition-normal);
}

.popular-row-card:hover .popular-rank {
    color: var(--clr-primary);
}

.popular-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.popular-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.popular-meta .badge-purple {
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
}

.popular-author {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.popular-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.popular-title a {
    color: var(--clr-text-main);
}

.popular-title a:hover {
    color: var(--clr-primary);
}

.popular-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--clr-text-light);
    margin-top: auto;
}

.popular-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 4. Categories Grid styling */
.categories-grid-custom {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.category-card-custom {
    background-color: var(--clr-bg-primary);
    border: 1.5px solid var(--clr-primary-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-primary) 0%, #a855f7 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.category-card-custom:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-primary);
}

.category-card-custom:hover::before {
    opacity: 1;
}

.category-icon-wrapper {
    width: 54px;
    height: 54px;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--clr-primary-border);
    transition: all var(--transition-normal);
}

.category-card-custom:hover .category-icon-wrapper {
    background-color: var(--clr-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.category-card-custom h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text-main);
}

.category-card-custom p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.category-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--clr-bg-secondary);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: auto;
    transition: all var(--transition-normal);
}

.category-card-custom:hover .category-arrow {
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    border-color: var(--clr-primary-border);
    transform: translateX(3px);
}

/* Extra visual tweaks for card excerpts and tags */
.card-excerpt {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   Breakpoints: 480px (mobile), 768px (tablet), 1024px (small laptop)
   ========================================================================== */

/* --- Mobile Nav Toggle Button (hidden on desktop) --- */
.nav-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--clr-primary-border);
    color: var(--clr-primary);
    font-size: 1.25rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1;
}

.nav-toggle:hover {
    background-color: var(--clr-primary-light);
    border-color: var(--clr-primary);
}

/* ============================================
   TABLET & BELOW (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    /* Footer grid */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.5fr;
        gap: 2.5rem;
    }
    .brand-col {
        grid-column: span 3;
    }

    /* Hero section */
    .hero-title {
        font-size: 3.25rem;
    }

    /* Blog grid */
    .blogs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    /* Homepage wrapper */
    .homepage-wrapper {
        padding: 1rem 0;
    }

    /* Home sections */
    .home-section {
        padding: 3.5rem 0;
    }

    /* Section header */
    .section-header h2 {
        font-size: 1.85rem;
    }

    /* Popular grid */
    .popular-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    /* Categories grid */
    .categories-grid-custom {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }

    /* Dashboard grid */
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Blog article detail */
    .blog-article {
        padding: 2.5rem;
    }

    .article-header h1 {
        font-size: 2.25rem;
    }

    /* Editor card */
    .editor-card {
        padding: 2.5rem;
    }

    /* Comments section */
    .comments-section {
        padding: 2rem;
    }

    /* Profile hero */
    .profile-hero {
        padding: 2.5rem;
    }

    /* Settings card */
    .settings-card {
        padding: 2.5rem;
    }

    /* Dashboard sections */
    .dashboard-section {
        padding: 2rem;
    }

    /* Bookmarks grid */
    .bookmarks-grid-dashboard {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* ============================================
   TABLET PORTRAIT (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* --- Mobile Navigation --- */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-top: 1rem;
        border-top: 1px solid var(--clr-primary-border);
        margin-top: 1rem;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-link {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--clr-border);
        width: 100%;
    }

    .nav-btn {
        margin-top: 0.5rem;
        text-align: center;
        justify-content: center;
        width: 100%;
        padding: 0.75rem;
    }

    /* --- Main Content --- */
    .main-content {
        padding: 1.5rem 4%;
    }

    /* --- Hero Section --- */
    .hero-section {
        padding: 3.5rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-lead {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-bottom: 3rem;
    }

    .hero-ctas a, .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding-top: 2rem;
    }

    .stat-num {
        font-size: 1.75rem;
    }

    .stat-lbl {
        font-size: 0.8rem;
    }

    /* --- Hero Search --- */
    .hero-search-wrapper {
        max-width: 100%;
    }

    .btn-search {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    /* --- Home Sections --- */
    .home-section {
        padding: 2.5rem 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }

    /* --- Blog Cards Grid --- */
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-image {
        height: 180px;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.15rem;
    }

    .card-excerpt {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .feed-interaction-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
    }

    .feed-interaction-btn span {
        display: inline;
    }

    /* --- Popular Grid --- */
    .popular-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .popular-row-card {
        padding: 1.5rem;
        gap: 1rem;
    }

    .popular-rank {
        font-size: 2rem;
    }

    .popular-title {
        font-size: 1rem;
    }

    .popular-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* --- Categories Grid --- */
    .categories-grid-custom {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card-custom {
        padding: 1.5rem 1rem;
    }

    .category-icon-wrapper {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .category-card-custom h3 {
        font-size: 1rem;
    }

    /* --- Blog Detail Page --- */
    .blog-detail-wrapper {
        max-width: 100%;
    }

    .blog-article {
        padding: 2rem 1.5rem;
    }

    .article-header h1 {
        font-size: 1.85rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }

    .article-interactions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .interaction-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .interaction-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }

    .author-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* --- Comments Section --- */
    .comments-section {
        padding: 1.5rem;
    }

    .comments-section h3 {
        font-size: 1.15rem;
    }

    .comment-body {
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }

    /* --- Editor Page --- */
    .editor-card {
        padding: 2rem 1.5rem;
    }

    .editor-header h1 {
        font-size: 1.5rem;
    }

    /* --- Dashboard --- */
    .dashboard-hero {
        padding: 2.5rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section {
        padding: 1.5rem;
    }

    .dashboard-section h2 {
        font-size: 1.15rem;
    }

    /* Dashboard table responsive: hide less important columns */
    .dashboard-table th:nth-child(3),
    .dashboard-table td:nth-child(3) {
        display: none;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 0.85rem 0.5rem;
        font-size: 0.85rem;
    }

    .table-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-btn-edit, .action-btn-delete {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }

    /* Bookmarks grid */
    .bookmarks-grid-dashboard {
        grid-template-columns: 1fr;
    }

    /* --- Profile Page --- */
    .profile-hero {
        padding: 2rem 1.5rem;
    }

    .profile-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .profile-avatar-large {
        width: 90px;
        height: 90px;
    }

    .profile-meta-info h1 {
        font-size: 1.75rem;
    }

    .profile-quick-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .stat-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.65rem;
    }

    .settings-card {
        padding: 2rem 1.5rem;
    }

    .settings-card h2 {
        font-size: 1.25rem;
    }

    .presets-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* --- Auth Pages --- */
    .auth-wrapper {
        padding: 1rem 0;
        min-height: 60vh;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.65rem;
    }

    /* --- Feed Header --- */
    .feed-header h1 {
        font-size: 2rem;
    }

    .feed-header p {
        font-size: 0.95rem;
    }

    /* --- Category Filter Bar --- */
    .category-bar {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* --- Footer --- */
    .footer {
        padding: 3rem 0 2rem 0;
        margin-top: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .brand-col {
        grid-column: span 1;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* ============================================
   MOBILE SMALL (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Main content tight padding */
    .main-content {
        padding: 1rem 3%;
    }

    /* Hero */
    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.01em;
    }

    .hero-title br {
        display: none;
    }

    .hero-lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .stat-num {
        font-size: 1.35rem;
    }

    .stat-lbl {
        font-size: 0.7rem;
    }

    /* Search */
    .hero-search-wrapper {
        border-radius: var(--radius-md);
    }

    .hero-search-form input {
        font-size: 0.9rem;
    }

    .btn-search {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Hide "Search" text on very small screens, show icon only */
    .btn-search {
        padding: 0.6rem 1rem;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-badge {
        font-size: 0.65rem;
    }

    /* Blog cards */
    .card-image {
        height: 160px;
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .feed-interaction-btn {
        padding: 0.6rem 0.25rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    /* Popular cards */
    .popular-row-card {
        padding: 1.25rem;
    }

    .popular-rank {
        font-size: 1.5rem;
    }

    .popular-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .popular-stats {
        font-size: 0.7rem;
    }

    /* Categories */
    .categories-grid-custom {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-card-custom {
        padding: 1.25rem 0.75rem;
    }

    .category-icon-wrapper {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .category-card-custom h3 {
        font-size: 0.9rem;
    }

    .category-card-custom p {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .category-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    /* Blog detail */
    .blog-article {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-md);
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-body {
        font-size: 0.95rem;
    }

    .article-banner {
        border-radius: var(--radius-sm);
        max-height: 250px;
    }

    .interaction-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.75rem;
    }

    .interaction-stat-badge {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .btn-outline-edit, .btn-outline-delete {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }

    /* Comments */
    .comments-section {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .comment-body {
        padding-left: 0;
        margin-top: 0.5rem;
    }

    /* Editor */
    .editor-card {
        padding: 1.5rem 1rem;
    }

    .editor-header {
        margin-bottom: 2rem;
    }

    .editor-header h1 {
        font-size: 1.3rem;
    }

    .brand-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Dashboard */
    .dashboard-hero {
        padding: 2rem 1.25rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .badge {
        font-size: 0.7rem;
    }

    .dashboard-card {
        padding: 1.75rem 1.25rem;
    }

    .dashboard-card h2 {
        font-size: 1.15rem;
    }

    .dashboard-section {
        padding: 1.25rem 1rem;
    }

    /* Hide Views+Likes columns on very small screens */
    .dashboard-table th:nth-child(4),
    .dashboard-table td:nth-child(4),
    .dashboard-table th:nth-child(5),
    .dashboard-table td:nth-child(5) {
        display: none;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 0.65rem 0.35rem;
        font-size: 0.8rem;
    }

    /* Bookmarks */
    .bookmark-mini-card {
        padding: 1rem;
    }

    .bookmark-details h3 {
        font-size: 0.85rem;
    }

    /* Profile */
    .profile-hero {
        padding: 1.5rem 1rem;
    }

    .profile-avatar-large {
        width: 75px;
        height: 75px;
    }

    .profile-meta-info h1 {
        font-size: 1.4rem;
    }

    .profile-email {
        font-size: 0.85rem;
    }

    .stat-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .profile-hero-bio {
        padding: 1rem;
    }

    .settings-card {
        padding: 1.5rem 1rem;
    }

    .settings-card h2 {
        font-size: 1.1rem;
    }

    .presets-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    /* Auth pages */
    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-header h1 {
        font-size: 1.4rem;
    }

    /* Feed header */
    .feed-header {
        margin-bottom: 1.5rem;
    }

    .feed-header h1 {
        font-size: 1.65rem;
    }

    .category-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.5rem;
    }

    .category-bar::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        flex-shrink: 0;
        padding: 0.45rem 0.85rem;
        font-size: 0.75rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem 0;
        margin-top: 2.5rem;
    }

    .footer-col h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .newsletter-input-group input {
        width: 100%;
    }

    .newsletter-input-group button {
        width: 100%;
        justify-content: center;
    }

    /* Ambient glows - hide on mobile for performance */
    .ambient-glow {
        display: none;
    }
}

/* ============================================
   TOUCH DEVICE ENHANCEMENTS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .blog-card:hover,
    .dashboard-card:hover,
    .popular-row-card:hover,
    .category-card-custom:hover,
    .bookmark-mini-card:hover,
    .stat-card:hover,
    .auth-card:hover {
        transform: none;
    }
    .feed-interaction-btn { min-height: 44px; }
    .interaction-btn { min-height: 44px; }
    .nav-link { min-height: 44px; display: flex; align-items: center; }
    .category-tab { min-height: 44px; display: inline-flex; align-items: center; }
}


/* ===========================================================================
   LINKEDIN MOBILE FORMAT DESIGN SYSTEM
   Pixel-perfect LinkedIn mobile feed format for Think Space
   =========================================================================== */

/* ── Body Reset for LinkedIn layout ── */
.linkedin-body {
    background-color: #f3f2ef;
    color: #000000e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ===========================================================================
   LINKEDIN TOP NAVBAR
   =========================================================================== */
.ln-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e9e5df;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.05);
}

.ln-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 1.25rem;
    height: 52px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Logo */
.ln-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.ln-logo i {
    font-size: 1.5rem;
    color: var(--clr-primary);
}

.ln-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #000000de;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.ln-logo-text strong {
    color: var(--clr-primary);
}

/* Search Bar */
.ln-search-wrapper {
    flex: 1;
    max-width: 280px;
    margin-right: auto;
}

.ln-search-form {
    display: flex;
    align-items: center;
    background-color: #eef3fb;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0 0.75rem;
    height: 34px;
    gap: 0.5rem;
    transition: all 0.15s ease;
}

.ln-search-form:focus-within {
    background-color: #ffffff;
    border-color: #0a66c2;
    box-shadow: 0 0 0 2px rgba(10,102,194,0.15);
}

.ln-search-icon {
    color: #666666;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ln-search-input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.9rem;
    color: #000000de;
    width: 100%;
    font-family: inherit;
}

.ln-search-input::placeholder {
    color: #666666;
}

/* Desktop Nav Actions */
.ln-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1rem;
}

.ln-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0.25rem 0.85rem;
    min-width: 70px;
    height: 52px;
    color: rgba(0,0,0,0.6);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
    border-top: none;
    border-left: none;
    border-right: none;
    background: none;
}

.ln-nav-item i {
    font-size: 1.15rem;
    margin-bottom: 1px;
}

.ln-nav-item:hover, .ln-nav-item.active {
    color: #000000de;
    border-bottom-color: #000000de;
}

.ln-nav-item .ln-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
}

.ln-nav-item .ln-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ln-nav-item.active .ln-avatar-sm {
    border-color: #000000de;
}

.ln-logout {
    color: rgba(180, 0, 0, 0.7);
}

.ln-logout:hover {
    color: #cc0000;
    border-bottom-color: #cc0000;
}

/* Auth Buttons in Nav */
.ln-btn-signin {
    padding: 0.45rem 1.25rem;
    border: 1.5px solid var(--clr-primary);
    color: var(--clr-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.15s ease;
    margin-right: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.ln-btn-signin:hover {
    background-color: rgba(10, 102, 194, 0.08);
}

.ln-btn-join {
    padding: 0.45rem 1.25rem;
    background-color: var(--clr-primary);
    color: white;
    border: 1.5px solid var(--clr-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.ln-btn-join:hover {
    background-color: var(--clr-primary-hover);
    border-color: var(--clr-primary-hover);
    color: white;
}

/* Mobile Toggle */
.ln-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(0,0,0,0.6);
    font-size: 1.35rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    transition: color 0.15s ease;
}

.ln-mobile-toggle:hover {
    color: #000000de;
}

/* Mobile Dropdown */
.ln-mobile-menu {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #e9e5df;
    padding: 1rem 1.25rem;
}

.ln-mobile-menu.active {
    display: block;
    animation: slideDown 0.2s ease forwards;
}

.ln-mobile-search {
    margin-bottom: 1rem;
}

.ln-mobile-search .ln-search-form {
    height: 40px;
}

.ln-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ln-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.25rem;
    color: rgba(0,0,0,0.75);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid #f3f2ef;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ln-mobile-link i {
    font-size: 1.1rem;
    width: 22px;
    color: rgba(0,0,0,0.5);
}

.ln-mobile-link:hover {
    color: var(--clr-primary);
}

.ln-mobile-logout { color: #cc0000; }
.ln-mobile-logout i { color: #cc0000; }
.ln-mobile-join { color: var(--clr-primary); font-weight: 700; }
.ln-mobile-join i { color: var(--clr-primary); }


/* ===========================================================================
   LINKEDIN BOTTOM TAB BAR (Mobile Only)
   =========================================================================== */
.ln-bottom-tab-bar {
    display: none; /* Desktop: hidden */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background-color: #ffffff;
    border-top: 1px solid #e9e5df;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    height: 56px;
    align-items: stretch;
    justify-content: space-around;
}

.ln-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    color: rgba(0,0,0,0.5);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 500;
    padding: 0.2rem 0;
    transition: color 0.15s ease;
    border: none;
    background: none;
    position: relative;
}

.ln-tab-item i {
    font-size: 1.25rem;
    line-height: 1;
}

.ln-tab-item.active {
    color: #000000de;
}

.ln-tab-item.active i {
    color: #000000de;
}

/* Add Post button - special */
.ln-tab-add .ln-tab-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--clr-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(99,102,241,0.35);
    margin-bottom: 1px;
    transition: all 0.15s ease;
}

.ln-tab-add:hover .ln-tab-add-btn,
.ln-tab-add.active .ln-tab-add-btn {
    background-color: var(--clr-primary-hover);
    transform: scale(1.05);
}

/* Tab Avatar */
.ln-tab-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid transparent;
}

.ln-tab-item.active .ln-tab-avatar {
    border-color: #000000de;
}

.ln-tab-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ===========================================================================
   MAIN CONTENT WRAPPER
   =========================================================================== */
.ln-main-content {
    min-height: calc(100vh - 52px);
    padding-bottom: 0; /* Desktop: no bottom tab bar */
}

.flash-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer Desktop Only */
.ln-desktop-footer {
    display: block;
}


/* ===========================================================================
   THREE COLUMN FEED LAYOUT
   =========================================================================== */
.ln-feed-layout,
.ln-homepage-layout,
.ln-article-layout {
    display: grid;
    grid-template-columns: 225px 1fr 300px;
    gap: 1.25rem;
    max-width: 1128px;
    margin: 1.25rem auto;
    padding: 0 1rem;
    align-items: start;
}

/* Sticky sidebars */
.ln-sidebar-left,
.ln-sidebar-right {
    position: sticky;
    top: 68px;
}


/* ===========================================================================
   LEFT SIDEBAR WIDGETS
   =========================================================================== */

/* Sidebar Profile Card */
.ln-sidebar-profile-card {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ln-sidebar-cover {
    height: 54px;
    background: linear-gradient(135deg, var(--clr-primary) 0%, #a855f7 50%, #d946ef 100%);
}

.ln-sidebar-profile-content {
    padding: 0 1rem 0.75rem;
    margin-top: -28px;
    text-align: center;
}

.ln-sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    margin: 0 auto 0.5rem;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.ln-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ln-sidebar-profile-content h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000de;
    margin-bottom: 0.2rem;
}

.ln-sidebar-profile-content p {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.5);
    word-break: break-all;
}

.ln-sidebar-divider {
    border-top: 1px solid #e9e5df;
    margin: 0.75rem 0;
}

.ln-sidebar-stats-row {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ln-sidebar-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ln-sidebar-stat-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.ln-sidebar-stat-lbl {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.5);
}

.ln-sidebar-links {
    padding: 0 0 0.5rem;
}

.ln-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: rgba(0,0,0,0.7);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    border-radius: 0;
}

.ln-sidebar-link:hover {
    background-color: rgba(0,0,0,0.04);
    color: var(--clr-primary);
}

.ln-sidebar-link i {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.5);
    width: 18px;
}

/* Sidebar Auth Card */
.ln-sidebar-auth-card {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.ln-sidebar-auth-card p {
    font-size: 0.85rem;
    color: rgba(0,0,0,0.6);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ln-btn-signin-full {
    display: block;
    width: 100%;
    padding: 0.6rem;
    border: 1.5px solid var(--clr-primary);
    color: var(--clr-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.15s ease;
    text-align: center;
}

.ln-btn-signin-full:hover {
    background-color: rgba(10,102,194,0.08);
}

.ln-divider-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.4);
}

.ln-divider-or::before,
.ln-divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e9e5df;
}

.ln-btn-join-full {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background-color: var(--clr-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s ease;
}

.ln-btn-join-full:hover {
    background-color: var(--clr-primary-hover);
    color: white;
}


/* ===========================================================================
   FEED CENTER - HEADER, FILTER, CREATE BAR
   =========================================================================== */

.ln-feed-header-bar {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}

.ln-feed-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #000000de;
    margin-bottom: 0.25rem;
    font-family: 'Outfit', sans-serif;
}

.ln-feed-subtitle {
    font-size: 0.875rem;
    color: rgba(0,0,0,0.5);
}

/* Filter Bar (Stories / Highlights row style) */
.ln-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}

.ln-filter-bar::-webkit-scrollbar { display: none; }

.ln-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    background-color: #ffffff;
    border: 1.5px solid #e9e5df;
    color: rgba(0,0,0,0.6);
    text-decoration: none;
    transition: all 0.15s ease;
}

.ln-filter-chip:hover {
    background-color: #eef3fb;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.ln-filter-chip.active {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.ln-filter-chip i {
    font-size: 0.78rem;
}

/* Create Post Bar */
.ln-create-post-bar {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ln-create-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid #e9e5df;
}

.ln-create-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ln-create-placeholder {
    flex: 1;
    border: 1.5px solid #c7c7c7;
    border-radius: 50px;
    padding: 0.65rem 1.25rem;
    color: rgba(0,0,0,0.5);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}

.ln-create-placeholder:hover {
    background-color: #f3f2ef;
    border-color: #666666;
    color: rgba(0,0,0,0.7);
}

.ln-create-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    background-color: var(--clr-primary-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.ln-create-icon-btn:hover {
    background-color: var(--clr-primary);
    color: white;
}

/* Section Headers */
.ln-feed-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px 8px 0 0;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: none;
    margin-bottom: 0;
}

.ln-feed-section-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clr-primary);
    background-color: var(--clr-primary-light);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    border: 1px solid var(--clr-primary-border);
    flex-shrink: 0;
}

.ln-feed-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000de;
    font-family: 'Outfit', sans-serif;
    flex: 1;
}

.ln-feed-section-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s ease;
}

.ln-feed-section-link:hover { color: var(--clr-primary-hover); }
.ln-feed-section-link i { font-size: 0.75rem; }


/* ===========================================================================
   LINKEDIN POST CARDS
   =========================================================================== */
.ln-posts-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ln-post-card {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.ln-post-card:hover {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.08);
}

/* ── Post Header ── */
.ln-post-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem 0.25rem;
}

.ln-post-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid #e9e5df;
    cursor: pointer;
}

.ln-post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Larger avatar for article detail */
.ln-avatar-lg {
    width: 56px;
    height: 56px;
}

.ln-post-author-info {
    flex: 1;
    min-width: 0;
}

.ln-author-name-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.ln-author-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000de;
    text-decoration: none;
    line-height: 1.3;
}

.ln-author-name:hover {
    text-decoration: underline;
    color: var(--clr-primary);
}

.ln-connection-badge {
    font-size: 0.78rem;
    color: rgba(0,0,0,0.4);
    font-weight: 500;
}

.ln-author-headline {
    font-size: 0.78rem;
    color: rgba(0,0,0,0.55);
    line-height: 1.4;
    margin: 0.15rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ln-post-time-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: rgba(0,0,0,0.4);
}

.ln-post-time { font-size: 0.75rem; color: rgba(0,0,0,0.4); }
.ln-dot { font-size: 0.6rem; }
.ln-globe-icon { font-size: 0.78rem; color: rgba(0,0,0,0.4); }

/* Post Header Right */
.ln-post-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
}

.ln-post-category-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    border: 1px solid var(--clr-primary-border);
    text-decoration: none;
    white-space: nowrap;
}

.ln-post-more-btn {
    background: none;
    border: none;
    color: rgba(0,0,0,0.4);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ln-post-more-btn:hover {
    background-color: rgba(0,0,0,0.06);
    color: #000000de;
}

/* Author edit/delete actions */
.ln-author-edit-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.ln-edit-btn, .ln-delete-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 1.5px solid;
    cursor: pointer;
    background: none;
    transition: all 0.15s ease;
    text-decoration: none;
}

.ln-edit-btn {
    color: var(--clr-primary);
    border-color: var(--clr-primary-border);
}
.ln-edit-btn:hover { background-color: var(--clr-primary); color: white; }

.ln-delete-btn {
    color: #cc0000;
    border-color: #fecaca;
}
.ln-delete-btn:hover { background-color: #cc0000; color: white; }

/* ── Post Content ── */
.ln-post-content {
    padding: 0.5rem 1rem 0.75rem;
    cursor: pointer;
}

.ln-post-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #000000de;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.ln-post-title a {
    color: #000000de;
    text-decoration: none;
}

.ln-post-title a:hover {
    color: var(--clr-primary);
    text-decoration: underline;
}

.ln-post-excerpt {
    font-size: 0.875rem;
    color: rgba(0,0,0,0.65);
    line-height: 1.55;
}

.ln-see-more {
    color: rgba(0,0,0,0.5);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

.ln-see-more:hover { color: var(--clr-primary); text-decoration: underline; }

/* ── Post Image ── */
.ln-post-image {
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    max-height: 400px;
    background-color: #f3f2ef;
}

.ln-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ln-post-image:hover img {
    transform: scale(1.02);
}

/* ── Reactions Summary ── */
.ln-reactions-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid #e9e5df;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.5);
    flex-wrap: wrap;
}

.ln-reactions-icons {
    display: flex;
    align-items: center;
}

.ln-reaction-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    border: 1.5px solid #ffffff;
    margin-left: -5px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.ln-reaction-icon:first-child { margin-left: 0; }

.ln-reaction-like { background-color: #0a66c2; color: white; }
.ln-reaction-heart { background-color: #df704d; color: white; }
.ln-reaction-clap  { background-color: #f5c842; color: white; }

.ln-reactions-count { font-size: 0.8rem; color: rgba(0,0,0,0.5); }

.ln-comment-count-small {
    margin-left: auto;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.5);
    cursor: pointer;
}

.ln-comment-count-small:hover { text-decoration: underline; color: var(--clr-primary); }

.ln-views-count {
    font-size: 0.78rem;
    color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── LinkedIn Interaction Bar ── */
.ln-interaction-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #e9e5df;
    padding: 0.1rem 0;
}

.ln-inline-form {
    display: contents;
}

/* Wrapper for buttons inside interaction bar grid */
.ln-btn-wrap {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.ln-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0.65rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(0,0,0,0.55);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    border-radius: 4px;
    margin: 0.25rem;
    line-height: 1;
}

.ln-action-btn i {
    font-size: 1.15rem;
}

.ln-action-btn:hover {
    background-color: rgba(0,0,0,0.04);
    color: #000000de;
}

/* Like button active = blue (LinkedIn style) */
.ln-like-btn.active {
    color: #0a66c2;
}

.ln-like-btn.active i {
    color: #0a66c2;
}

.ln-like-btn:hover {
    color: #0a66c2;
}

/* Save button active */
.ln-repost-btn.active {
    color: #7a3e9d;
}

.ln-repost-btn:hover {
    color: #7a3e9d;
}

/* Comment button hover */
.ln-comment-btn:hover {
    color: #5f9b41;
}

.ln-comment-btn.active {
    color: #5f9b41;
}

/* Send/Read button hover */
.ln-send-btn:hover {
    color: #b24020;
}


/* ===========================================================================
   EMPTY FEED STATE
   =========================================================================== */
.ln-empty-feed {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    text-align: center;
    padding: 3rem 2rem;
}

.ln-empty-icon {
    font-size: 2.5rem;
    color: rgba(0,0,0,0.2);
    margin-bottom: 1rem;
}

.ln-empty-feed h2 {
    font-size: 1.2rem;
    color: #000000de;
    margin-bottom: 0.5rem;
}

.ln-empty-feed p {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.ln-btn-create-post {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background-color: var(--clr-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ln-btn-create-post:hover {
    background-color: var(--clr-primary-hover);
    color: white;
}


/* ===========================================================================
   POPULAR NARRATIVES LIST (Homepage)
   =========================================================================== */
.ln-popular-list {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.ln-popular-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f2ef;
    cursor: pointer;
    transition: background-color 0.15s ease;
    align-items: flex-start;
}

.ln-popular-item:last-child { border-bottom: none; }

.ln-popular-item:hover { background-color: #f3f2ef; }

.ln-popular-rank {
    font-size: 1.75rem;
    font-weight: 800;
    color: #e9e5df;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s ease;
    min-width: 36px;
}

.ln-popular-item:hover .ln-popular-rank {
    color: var(--clr-primary);
}

.ln-popular-content { flex: 1; }

.ln-popular-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

.ln-popular-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--clr-primary-border);
}

.ln-popular-author {
    font-size: 0.78rem;
    color: rgba(0,0,0,0.45);
}

.ln-popular-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: #000000de;
    margin-bottom: 0.5rem;
}

.ln-popular-title a { color: #000000de; text-decoration: none; }
.ln-popular-title a:hover { color: var(--clr-primary); text-decoration: underline; }

.ln-popular-stats {
    display: flex;
    gap: 0.85rem;
    font-size: 0.75rem;
    color: rgba(0,0,0,0.4);
}

.ln-popular-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}


/* ===========================================================================
   CATEGORIES GRID (Homepage)
   =========================================================================== */
.ln-categories-grid {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ln-category-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f2ef;
    border-right: 1px solid #f3f2ef;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.ln-category-card:nth-child(even) { border-right: none; }
.ln-category-card:nth-last-child(-n+2) { border-bottom: none; }
.ln-category-card:hover { background-color: #f3f2ef; }

.ln-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid var(--clr-primary-border);
    transition: all 0.15s ease;
}

.ln-category-card:hover .ln-cat-icon {
    background-color: var(--clr-primary);
    color: white;
}

.ln-cat-info { flex: 1; }
.ln-cat-info h3 { font-size: 0.875rem; font-weight: 700; color: #000000de; margin-bottom: 0.15rem; }
.ln-cat-info p { font-size: 0.72rem; color: rgba(0,0,0,0.45); }

.ln-cat-arrow {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.3);
    flex-shrink: 0;
}


/* ===========================================================================
   RIGHT SIDEBAR WIDGETS
   =========================================================================== */
.ln-sidebar-widget {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.ln-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000000de;
    margin-bottom: 0.85rem;
    font-family: 'Outfit', sans-serif;
}

/* LinkedIn News List */
.ln-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ln-news-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.ln-news-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #000000de;
    flex-shrink: 0;
    margin-top: 5px;
}

.ln-news-headline {
    font-size: 0.82rem;
    font-weight: 700;
    color: #000000de;
    line-height: 1.35;
    margin-bottom: 0.2rem;
    cursor: pointer;
}

.ln-news-headline:hover { color: var(--clr-primary); }

.ln-news-time {
    font-size: 0.72rem;
    color: rgba(0,0,0,0.45);
}

.ln-widget-show-more {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(0,0,0,0.55);
    text-decoration: none;
    margin-top: 1rem;
    transition: color 0.15s ease;
}

.ln-widget-show-more:hover { color: #000000de; }
.ln-widget-show-more i { font-size: 0.72rem; }

/* Ad Widget */
.ln-widget-ad {
    text-align: center;
    position: relative;
}

.ln-ad-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.68rem;
    color: rgba(0,0,0,0.4);
}

.ln-ad-content { padding: 0.5rem 0; }

.ln-ad-icon {
    font-size: 2rem;
    color: var(--clr-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.ln-ad-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000de;
    margin-bottom: 0.35rem;
}

.ln-ad-content p {
    font-size: 0.78rem;
    color: rgba(0,0,0,0.5);
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

.ln-ad-cta {
    display: inline-flex;
    padding: 0.5rem 1.25rem;
    background-color: var(--clr-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ln-ad-cta:hover { background-color: var(--clr-primary-hover); color: white; }

/* Author Widget (Article Detail) */
.ln-author-widget-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.ln-author-widget-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e9e5df;
}

.ln-author-widget-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ln-author-widget-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000000de;
}

.ln-author-widget-bio {
    font-size: 0.78rem;
    color: rgba(0,0,0,0.5);
    line-height: 1.5;
}


/* ===========================================================================
   ARTICLE DETAIL PAGE
   =========================================================================== */
.ln-back-link-mobile {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(0,0,0,0.55);
    text-decoration: none;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    transition: color 0.15s ease;
}

.ln-back-link-mobile:hover { color: var(--clr-primary); }

.ln-article-card {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.ln-article-header-block {
    padding: 1.25rem 1.25rem 0.5rem;
    border-bottom: 1px solid #f3f2ef;
    margin-bottom: 0;
}

.ln-article-title-block {
    padding: 1rem 1.25rem 0.5rem;
}

.ln-article-title {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
    color: #000000de;
    font-family: 'Outfit', sans-serif;
}

.ln-article-image-banner {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    background-color: #f3f2ef;
}

.ln-article-image-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ln-article-body {
    padding: 1.5rem 1.25rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #000000de;
}

.ln-article-reactions-summary {
    margin: 0;
    padding: 0.6rem 1.25rem;
    border-top: 1px solid #e9e5df;
    border-bottom: none;
}

.ln-article-interaction-bar {
    border-top: 1px solid #e9e5df;
    padding: 0.1rem 0;
}


/* ===========================================================================
   COMMENTS SECTION
   =========================================================================== */
.ln-comments-section {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    padding: 1.25rem;
}

/* Comments section is always visible on article page */

.ln-comments-title {
    font-size: 1rem;
    font-weight: 700;
    color: #000000de;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.ln-comments-title i { color: var(--clr-primary); }
.ln-comments-count { color: rgba(0,0,0,0.4); font-weight: 500; }

/* Comment Form */
.ln-comment-form-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.ln-comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid #e9e5df;
}

.ln-comment-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ln-comment-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ln-comment-textarea {
    width: 100%;
    border: 1.5px solid #c7c7c7;
    border-radius: 24px;
    padding: 0.75rem 1.1rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #000000de;
    background-color: #f3f2ef;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.ln-comment-textarea:focus {
    border-color: var(--clr-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    border-radius: 8px;
}

.ln-comment-form-actions {
    display: flex;
    justify-content: flex-end;
}

.ln-comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background-color: var(--clr-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.ln-comment-submit-btn:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-1px);
}

/* Login Prompt */
.ln-login-prompt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #f3f2ef;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: rgba(0,0,0,0.6);
}

.ln-login-prompt i { color: var(--clr-primary); font-size: 1.1rem; }
.ln-login-prompt a { color: var(--clr-primary); font-weight: 700; text-decoration: underline; }

/* Comments Feed */
.ln-comments-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ln-comment-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.ln-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid #e9e5df;
}

.ln-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ln-comment-bubble {
    flex: 1;
    background-color: #f3f2ef;
    border-radius: 0 8px 8px 8px;
    padding: 0.75rem 1rem;
}

.ln-comment-bubble-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

.ln-comment-username {
    font-size: 0.85rem;
    font-weight: 700;
    color: #000000de;
}

.ln-comment-time {
    font-size: 0.72rem;
    color: rgba(0,0,0,0.4);
}

.ln-delete-comment-form {
    margin-left: auto;
    display: inline;
}

.ln-delete-comment-btn {
    background: none;
    border: none;
    color: rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.ln-delete-comment-btn:hover {
    color: #cc0000;
    background-color: rgba(204,0,0,0.08);
}

.ln-comment-text {
    font-size: 0.875rem;
    color: rgba(0,0,0,0.7);
    line-height: 1.5;
}

.ln-no-comments {
    text-align: center;
    color: rgba(0,0,0,0.4);
    font-size: 0.875rem;
    padding: 1rem 0;
    font-style: italic;
}


/* ===========================================================================
   HERO BANNER (Homepage)
   =========================================================================== */
.ln-hero-banner {
    background: linear-gradient(135deg, #ffffff 0%, #eef3fb 50%, #f3eeff 100%);
    border: 1px solid #e9e5df;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.ln-hero-banner::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ln-hero-banner-content { position: relative; z-index: 2; }

.ln-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--clr-primary-light);
    border: 1px solid var(--clr-primary-border);
    color: var(--clr-primary-hover);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: inline-flex;
}

.ln-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #000000de;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.ln-gradient-text {
    background: linear-gradient(135deg, var(--clr-primary) 0%, #a855f7 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ln-hero-desc {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.55);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 500px;
}

.ln-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.ln-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background-color: var(--clr-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.ln-hero-btn-primary:hover {
    background-color: var(--clr-primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99,102,241,0.3);
}

.ln-hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border: 1.5px solid var(--clr-primary);
    color: var(--clr-primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ln-hero-btn-outline:hover {
    background-color: rgba(99,102,241,0.08);
    color: var(--clr-primary-hover);
}

.ln-hero-stats {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid #e9e5df;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.ln-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ln-hero-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.ln-hero-stat-lbl {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.45);
    font-weight: 500;
}


/* ===========================================================================
   LINKEDIN RESPONSIVE DESIGN
   =========================================================================== */

/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
    .ln-feed-layout,
    .ln-homepage-layout,
    .ln-article-layout {
        grid-template-columns: 200px 1fr;
        gap: 1rem;
    }

    .ln-sidebar-right { display: none; }

    .ln-nav-actions .ln-nav-item span {
        display: none;
    }

    .ln-nav-item {
        min-width: 50px;
        padding: 0.25rem 0.5rem;
    }

    .ln-search-wrapper { max-width: 220px; }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {
    /* Body padding for bottom tab bar */
    .linkedin-body {
        padding-bottom: 56px;
    }

    /* Show bottom tab bar */
    .ln-bottom-tab-bar {
        display: flex;
    }

    /* Hide footer on mobile */
    .ln-desktop-footer {
        display: none;
    }

    /* Single column layout */
    .ln-feed-layout,
    .ln-homepage-layout,
    .ln-article-layout {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }

    /* Hide both sidebars on mobile */
    .ln-sidebar-left,
    .ln-sidebar-right {
        display: none;
    }

    /* Hide desktop navbar actions, show hamburger */
    .ln-nav-actions { display: none; }
    .ln-mobile-toggle { display: flex; align-items: center; }
    .ln-search-wrapper { display: none; } /* Hidden on mobile, shown in dropdown */

    /* Navbar height */
    .ln-nav-inner { padding: 0 1rem; height: 52px; }
    .ln-logo-text { font-size: 1.15rem; }

    /* Main content */
    .ln-main-content { padding-bottom: 0; }

    /* Flash messages */
    .flash-container { padding: 0.5rem; }

    /* Feed layout full width */
    .ln-feed-center {
        padding: 0;
    }

    /* Feed header bar */
    .ln-feed-header-bar {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
    }

    .ln-feed-title { font-size: 1.1rem; }
    .ln-feed-subtitle { font-size: 0.8rem; }

    /* Filter bar */
    .ln-filter-bar {
        padding: 0.5rem 1rem;
        background-color: #ffffff;
        border-bottom: 1px solid #e9e5df;
        margin-bottom: 0.5rem;
        gap: 0.4rem;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .ln-filter-chip {
        padding: 0.35rem 0.75rem;
        font-size: 0.78rem;
    }

    /* Create post bar */
    .ln-create-post-bar {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .ln-create-avatar { width: 40px; height: 40px; }

    .ln-create-placeholder {
        font-size: 0.82rem;
        padding: 0.55rem 1rem;
    }

    /* Section headers */
    .ln-feed-section-header {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 0.75rem 1rem 0.6rem;
    }

    .ln-feed-section-title { font-size: 0.95rem; }
    .ln-feed-section-badge { font-size: 0.68rem; }

    /* Post cards */
    .ln-posts-feed { gap: 0.5rem; }

    .ln-post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .ln-post-header { padding: 0.85rem 1rem 0.15rem; gap: 0.6rem; }

    .ln-post-author-avatar { width: 40px; height: 40px; }

    .ln-author-name { font-size: 0.85rem; }
    .ln-author-headline { font-size: 0.72rem; }
    .ln-post-time-row { font-size: 0.7rem; }

    .ln-post-content { padding: 0.35rem 1rem 0.5rem; }
    .ln-post-title { font-size: 0.95rem; }
    .ln-post-excerpt { font-size: 0.82rem; }

    /* Post image - full width */
    .ln-post-image { max-height: 240px; }

    /* Reactions summary */
    .ln-reactions-summary { padding: 0.4rem 1rem; font-size: 0.75rem; }

    /* Interaction bar */
    .ln-interaction-bar { padding: 0; }

    .ln-action-btn {
        padding: 0.6rem 0.15rem;
        font-size: 0.68rem;
        gap: 2px;
        margin: 0.15rem;
    }

    .ln-action-btn i { font-size: 1.05rem; }

    /* Popular list */
    .ln-popular-list {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .ln-popular-item { padding: 0.85rem 1rem; }
    .ln-popular-rank { font-size: 1.35rem; min-width: 28px; }
    .ln-popular-title { font-size: 0.85rem; }
    .ln-popular-stats { font-size: 0.7rem; }

    /* Categories grid */
    .ln-categories-grid {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .ln-category-card { padding: 0.85rem 1rem; }
    .ln-cat-icon { width: 36px; height: 36px; font-size: 0.95rem; }
    .ln-cat-info h3 { font-size: 0.82rem; }
    .ln-cat-info p { font-size: 0.7rem; }

    /* Article detail */
    .ln-back-link-mobile { display: flex; padding: 0.65rem 1rem; }

    .ln-article-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .ln-article-header-block { padding: 1rem 1rem 0.5rem; }
    .ln-avatar-lg { width: 44px; height: 44px; }
    .ln-article-title-block { padding: 0.75rem 1rem 0.35rem; }
    .ln-article-title { font-size: 1.25rem; }
    .ln-article-body { padding: 1rem; font-size: 0.9rem; line-height: 1.7; }
    .ln-article-image-banner { max-height: 220px; }

    /* Comments section */
    .ln-comments-section {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 1rem;
    }

    .ln-comment-form-avatar { width: 34px; height: 34px; }
    .ln-comment-textarea { padding: 0.6rem 0.9rem; font-size: 0.82rem; }

    .ln-comment-avatar { width: 32px; height: 32px; }
    .ln-comment-text { font-size: 0.82rem; }
    .ln-comment-username { font-size: 0.8rem; }

    /* Hero banner */
    .ln-hero-banner {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 1.5rem 1rem;
        margin-bottom: 0.5rem;
    }

    .ln-hero-title { font-size: 1.5rem; }
    .ln-hero-desc { font-size: 0.82rem; }
    .ln-hero-actions { gap: 0.5rem; }
    .ln-hero-btn-primary, .ln-hero-btn-outline { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
    .ln-hero-stats { gap: 1rem; padding-top: 0.75rem; }
    .ln-hero-stat-num { font-size: 1.15rem; }
    .ln-hero-stat-lbl { font-size: 0.7rem; }

    /* Empty feed */
    .ln-empty-feed { border-radius: 0; border-left: none; border-right: none; }
}

/* ── Very Small Mobile (max 480px) ── */
@media (max-width: 480px) {
    .ln-logo-text { display: none; } /* Show only icon on very small */

    .ln-action-btn span { font-size: 0.63rem; }
    .ln-action-btn i { font-size: 1rem; }

    .ln-post-title { font-size: 0.9rem; }
    .ln-post-excerpt { font-size: 0.8rem; }
    .ln-article-title { font-size: 1.1rem; }

    .ln-filter-chip { font-size: 0.72rem; padding: 0.3rem 0.6rem; }

    .ln-hero-title { font-size: 1.3rem; }
    .ln-hero-stats { gap: 0.75rem; }
    .ln-hero-stat-num { font-size: 1rem; }

    /* Stack hero actions */
    .ln-hero-actions {
        flex-direction: column;
    }

    .ln-hero-btn-primary,
    .ln-hero-btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ── Touch Device Enhancements for LinkedIn components ── */
@media (hover: none) and (pointer: coarse) {
    .ln-post-card:hover { box-shadow: none; }
    .ln-popular-item:hover { background-color: transparent; }
    .ln-category-card:hover { background-color: transparent; }

    /* LinkedIn interaction buttons: min 44px tap target */
    .ln-action-btn { min-height: 44px; }
    .ln-tab-item { min-height: 56px; }
    .ln-mobile-link { min-height: 44px; }
    .ln-filter-chip { min-height: 38px; }
}

/* ==========================================================================
   LinkedIn Mobile Top Header & Search Custom Styles
   ========================================================================== */
.ln-nav-left {
    display: flex;
    align-items: center;
}

.ln-nav-mobile-avatar {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.5rem;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.ln-nav-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ln-logo-icon-only {
    display: none;
    color: var(--clr-primary);
    font-size: 1.4rem;
    margin-right: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ln-desktop-logo {
        display: none !important;
    }
    
    .ln-nav-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .ln-nav-left {
        display: flex !important;
        align-items: center !important;
        order: 3 !important;
        flex-shrink: 0 !important;
    }
    
    .ln-nav-mobile-avatar,
    .ln-logo-icon-only {
        display: flex !important;
        margin-right: 0 !important;
    }
    
    .ln-search-wrapper {
        display: block !important;
        flex: 1 !important;
        margin: 0 0.75rem !important;
        max-width: none !important;
        min-width: 0 !important;
        order: 2 !important;
    }
    
    .ln-search-form {
        height: 34px !important;
        border-radius: 6px !important;
        padding: 0 0.5rem !important;
        background-color: #eef3fb !important;
        border: 1px solid transparent !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .ln-search-input {
        font-size: 0.85rem !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    
    .ln-mobile-toggle {
        margin-left: 0 !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* ==========================================================================
   LinkedIn Style Profile Page Styles
   ========================================================================== */
.ln-profile-container {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 1.5rem;
    max-width: 1128px;
    margin: 0 auto;
    padding: 1.5rem 0;
    font-family: inherit;
}

.ln-profile-left-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ln-profile-right-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* LinkedIn Card Styling */
.ln-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ln-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem 0.5rem 1.5rem;
}

.ln-card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000de;
    margin: 0;
}

.ln-card-header-action {
    color: #666666;
    font-size: 1.1rem;
    padding: 0.25rem;
    border-radius: 50%;
    transition: background-color 0.15s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ln-card-header-action:hover {
    background-color: #f3f3f3;
    color: #000000;
}

.ln-card-body {
    padding: 0.75rem 1.5rem 1.5rem 1.5rem;
}

/* Main Profile Card */
.ln-profile-card {
    position: relative;
}

.ln-profile-cover {
    height: 200px;
    background: linear-gradient(150deg, #a0b2d6, #5678a9);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ln-profile-cover-edit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.15s;
}

.ln-profile-cover-edit:hover {
    background-color: #f3f3f3;
}

.ln-profile-header-info {
    padding-bottom: 1.5rem;
    position: relative;
}

.ln-profile-avatar-wrap {
    position: relative;
    width: 152px;
    height: 152px;
    margin-top: -85px;
    margin-left: 1.5rem;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

.ln-profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ln-profile-avatar-edit {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: #ffffff;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.ln-profile-avatar-edit:hover {
    background-color: #f3f3f3;
}

.ln-profile-actions-trigger {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.ln-btn-edit-profile-pencil {
    color: #666666;
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.15s;
}

.ln-btn-edit-profile-pencil:hover {
    background-color: #f3f3f3;
    color: #000000;
}

.ln-profile-meta-details {
    padding: 1rem 1.5rem 0.5rem 1.5rem;
}

.ln-profile-fullname {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000de;
    margin: 0 0 0.25rem 0;
}

.ln-profile-headline {
    font-size: 1rem;
    color: #000000e0;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.ln-profile-contact-info {
    font-size: 0.85rem;
    color: #666666;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ln-profile-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ln-profile-contact-link {
    color: #0a66c2;
    text-decoration: none;
    font-weight: 600;
}

.ln-profile-contact-link:hover {
    text-decoration: underline;
}

.ln-profile-connections-info {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ln-profile-connections-num {
    color: #0a66c2;
    font-weight: 600;
}

.ln-profile-dot {
    color: #666666;
}

.ln-profile-cta-buttons {
    padding: 0.5rem 1.5rem 0 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ln-btn-primary-blue {
    background-color: #0a66c2;
    color: #ffffff;
    border: none;
    border-radius: 100px;
    padding: 0 1rem;
    height: 32px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.ln-btn-primary-blue:hover {
    background-color: #004182;
}

.ln-btn-outline-blue {
    background-color: transparent;
    color: #0a66c2;
    border: 1px solid #0a66c2;
    border-radius: 100px;
    padding: 0 1rem;
    height: 32px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.ln-btn-outline-blue:hover {
    background-color: #eef3fb;
    border-width: 2px;
}

.ln-btn-outline-gray {
    background-color: transparent;
    color: #666666;
    border: 1px solid #666666;
    border-radius: 100px;
    padding: 0 1rem;
    height: 32px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.ln-btn-outline-gray:hover {
    background-color: #f3f3f3;
}

/* About Card Text styling */
.ln-profile-bio-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #000000e0;
    margin: 0;
    white-space: pre-line;
}

.ln-profile-bio-placeholder {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
    font-style: italic;
}

/* Activity Card */
.ln-activity-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ln-activity-followers {
    font-size: 0.8rem;
    color: #666666;
}

.ln-btn-create-post-sm {
    background-color: transparent;
    color: #0a66c2;
    border: 1px solid #0a66c2;
    border-radius: 100px;
    padding: 0 0.85rem;
    height: 28px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: background-color 0.15s;
}

.ln-btn-create-post-sm:hover {
    background-color: #eef3fb;
}

.ln-profile-articles-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.ln-profile-article-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f3f3;
}

.ln-profile-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ln-profile-article-img {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.ln-profile-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ln-profile-article-info {
    flex-grow: 1;
}

.ln-profile-article-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.ln-profile-article-title a {
    color: #000000e0;
    text-decoration: none;
}

.ln-profile-article-title a:hover {
    color: #0a66c2;
    text-decoration: underline;
}

.ln-profile-article-meta {
    font-size: 0.8rem;
    color: #666666;
    margin: 0;
}

.ln-profile-activity-placeholder {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
    font-style: italic;
}

/* Edit Profile Settings Form */
.ln-profile-settings-card {
    position: sticky;
    top: 70px;
}

.ln-settings-desc {
    font-size: 0.85rem;
    color: #666666;
    margin: 0 0 1rem 0;
}

.ln-profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ln-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ln-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000e0;
}

.ln-form-group label i {
    color: #666666;
    margin-right: 0.25rem;
}

.ln-form-group input[type="text"],
.ln-form-group input[type="url"],
.ln-form-group textarea {
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
}

.ln-form-group input[type="text"]:focus,
.ln-form-group input[type="url"]:focus,
.ln-form-group textarea:focus {
    border-color: #0a66c2;
    box-shadow: 0 0 0 1px #0a66c2;
}

.ln-form-help {
    font-size: 0.75rem;
    color: #666666;
}

.ln-file-upload-input {
    font-size: 0.8rem;
    color: #666666;
}

/* Presets section */
.ln-presets-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ln-presets-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000e0;
}

.ln-presets-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.35rem;
}

.ln-preset-item {
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid transparent;
    transition: all 0.15s;
}

.ln-preset-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ln-preset-item:hover {
    transform: scale(1.08);
}

.ln-preset-item.selected {
    border-color: #0a66c2;
    box-shadow: 0 0 4px rgba(10,102,194,0.4);
}

/* Character count */
.ln-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ln-char-counter {
    font-size: 0.75rem;
    color: #666666;
}

.ln-btn-submit-profile {
    background-color: #0a66c2;
    color: #ffffff;
    border: none;
    border-radius: 100px;
    height: 36px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ln-btn-submit-profile:hover {
    background-color: #004182;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .ln-profile-container {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }
    .ln-profile-settings-card {
        position: static;
    }
}

@media (max-width: 576px) {
    .ln-profile-cover {
        height: 120px;
    }
    .ln-profile-avatar-wrap {
        width: 100px;
        height: 100px;
        margin-top: -55px;
        margin-left: 1rem;
    }
    .ln-profile-meta-details {
        padding: 0.75rem 1rem 0.5rem 1rem;
    }
    .ln-profile-fullname {
        font-size: 1.35rem;
    }
    .ln-profile-headline {
        font-size: 0.9rem;
    }
    .ln-profile-cta-buttons {
        padding: 0.5rem 1rem 0 1rem;
    }
}

/* Tags & Pills styling */
.ln-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    margin-top: -0.25rem;
    margin-bottom: 0.75rem;
}

.ln-post-tag {
    background-color: #f3f2ef;
    color: #666666 !important;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.ln-post-tag:hover {
    background-color: #e7e6e3;
    color: #000000 !important;
    text-decoration: none;
}

/* ── Reactions Popup and Trigger Styles ── */
.ln-like-btn-container {
    position: relative;
    display: inline-block;
}

.ln-reactions-popup {
    position: absolute;
    bottom: 100%;
    left: 10px;
    transform: translateY(10px);
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 0.4rem 0.6rem;
    display: flex;
    gap: 0.55rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.2s;
}

/* Show reactions popup on hover or touch-active state */
.ln-like-btn-container:hover .ln-reactions-popup,
.ln-like-btn-container.active-hover .ln-reactions-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-10px);
}

/* Force hide reactions popup after selection */
.ln-like-btn-container.force-hide-popup .ln-reactions-popup {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px) !important;
}

/* Individual Reaction trigger buttons */
.ln-reaction-trigger {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.ln-reaction-trigger:hover {
    transform: scale(1.35) translateY(-5px);
    filter: brightness(1.05);
}

/* Reaction Trigger Color Palettes */
.ln-react-trigger-like { background-color: #0a66c2; color: #ffffff; }
.ln-react-trigger-clap { background-color: #22c55e; color: #ffffff; }
.ln-react-trigger-care { background-color: #a78bfa; color: #ffffff; }
.ln-react-trigger-heart { background-color: #ef4444; color: #ffffff; }
.ln-react-trigger-insight { background-color: #fbbf24; color: #ffffff; }
.ln-react-trigger-laugh { background-color: #06b6d4; color: #ffffff; }

/* Styling for summary row active reaction icons */
.ln-reaction-care { background-color: #a78bfa !important; color: white; }
.ln-reaction-insight { background-color: #fbbf24 !important; color: white; }
.ln-reaction-laugh { background-color: #06b6d4 !important; color: white; }

/* Keep layout alignment for reactions summary left block */
.ln-reactions-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-reactions-summary {
    padding: 0.6rem 1.25rem 0.3rem 1.25rem;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}


/* ===========================================================================
   NOTIFICATIONS AND COMMENT REPLIES SYSTEM
   =========================================================================== */

/* Navbar Bell & Badges */
.ln-bell-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ln-notification-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #df1b1b;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 4px rgba(223, 27, 27, 0.25);
    animation: pulse-badge 2s infinite;
}

.ln-mobile-notification-badge {
    background-color: #df1b1b;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 50px;
    margin-left: 0.5rem;
}

@keyframes pulse-badge {
    0% {
        box-shadow: 0 0 0 0 rgba(223, 27, 27, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(223, 27, 27, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(223, 27, 27, 0);
    }
}

/* Notifications Page */
.notifications-wrapper {
    max-width: 720px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.notifications-card {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9e5df;
}

.notifications-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000de;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
}

.notifications-header h1 i {
    color: var(--clr-primary);
}

.notifications-header p {
    font-size: 0.825rem;
    color: rgba(0, 0, 0, 0.55);
    margin: 0.2rem 0 0 0;
}

.notifications-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #f3f2ef;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    gap: 1rem;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8f7f5;
}

.notification-item.unread {
    background-color: #f4f8fd;
}

.notification-item.unread:hover {
    background-color: #edf4fc;
}

.notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid #e9e5df;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.notification-text {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1.45;
}

.notification-text .username {
    font-weight: 700;
    color: #000000de;
}

.notification-text .blog-title {
    color: var(--clr-primary);
    font-weight: 600;
}

.notification-time {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background-color: #0a66c2;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

/* Notifications Empty State */
.notifications-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    background-color: #ffffff;
}

.notifications-empty-state .empty-icon {
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.25);
    margin-bottom: 1rem;
}

.notifications-empty-state h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000000de;
    margin-bottom: 0.5rem;
}

.notifications-empty-state p {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.5);
    max-width: 380px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.5;
}

/* Comment Thread / Replies Styling */
.ln-comment-thread {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #f3f2ef;
    padding-bottom: 1.25rem;
}

.ln-comment-thread:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ln-comment-bubble-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ln-comment-actions {
    display: flex;
    gap: 1rem;
    padding-left: 0.75rem;
    margin-top: 0.2rem;
}

.ln-reply-trigger-btn {
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.ln-reply-trigger-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--clr-primary);
}

/* Nested Reply Form */
.ln-reply-form-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-left: 3.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f7f5;
    border-radius: 8px;
    border-left: 3px solid var(--clr-primary);
}

.ln-reply-form-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid #e9e5df;
    flex-shrink: 0;
}

.ln-reply-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ln-comment-cancel-btn {
    background: none;
    border: 1px solid #c7c7c7;
    color: rgba(0, 0, 0, 0.6);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-left: 0.5rem;
}

.ln-comment-cancel-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000000;
}

/* Replies List */
.ln-replies-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-left: 3.25rem;
    margin-top: 0.5rem;
    border-left: 2px solid #e9e5df;
    padding-left: 1rem;
}

.ln-reply-item {
    align-items: flex-start;
}

.ln-reply-item .ln-comment-avatar {
    width: 32px;
    height: 32px;
}

.ln-reply-item .ln-comment-bubble {
    background-color: #f8f7f5;
    padding: 0.6rem 0.85rem;
}

.ln-reply-item .ln-comment-username {
    font-size: 0.8rem;
}

.ln-reply-item .ln-comment-text {
    font-size: 0.825rem;
}

@media (max-width: 768px) {
    .ln-reply-form-wrapper {
        margin-left: 2rem;
    }
    .ln-replies-feed {
        margin-left: 2rem;
        padding-left: 0.75rem;
    }
}


/* ===========================================================================
   CREATOR STUDIO / ANALYTICS DASHBOARD OVERHAUL
   =========================================================================== */
.ln-dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin: 1.5rem auto;
    max-width: 1200px;
    padding: 0 1rem;
    align-items: flex-start;
}

/* Sidebar Creator Profile Card */
.ln-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.creator-profile-card {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-card-cover {
    height: 70px;
    position: relative;
    overflow: hidden;
}

.profile-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card-avatar-wrapper {
    margin-top: -36px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.profile-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    object-fit: cover;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-card-details {
    text-align: center;
    padding: 0.75rem 1rem 1rem 1rem;
    border-bottom: 1px solid #f3f2ef;
}

.creator-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000000de;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.creator-bio {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
    margin: 0.35rem 0 0.6rem 0;
    line-height: 1.35;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
}

.profile-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.85rem 0.5rem;
    background-color: #faf9f7;
    border-bottom: 1px solid #f3f2ef;
}

.card-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-stat-item.border-left {
    border-left: 1px solid #e9e5df;
}

.stat-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000de;
}

.stat-label {
    font-size: 0.72rem;
    color: rgba(0,0,0,0.5);
    margin-top: 0.1rem;
}

.profile-card-actions-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.sidebar-action-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    color: rgba(0, 0, 0, 0.75);
    text-decoration: none;
    font-size: 0.825rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.sidebar-action-link:hover {
    background-color: #f3f2ef;
    color: var(--clr-primary);
}

.sidebar-action-link i {
    width: 16px;
    color: rgba(0, 0, 0, 0.4);
}

.creator-quick-actions {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.creator-quick-actions h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(0,0,0,0.8);
    margin: 0 0 1rem 0;
    font-family: 'Outfit', sans-serif;
}

.action-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Right Main Panel Hero */
.ln-dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.ln-dashboard-hero-card {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hero-left h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.5rem 0 0.25rem 0;
    color: #000000de;
    font-family: 'Outfit', sans-serif;
}

.hero-left p {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
}

.hero-right-icon {
    font-size: 3rem;
    color: var(--clr-primary-light);
    opacity: 0.8;
}

/* Tab controls bar */
.ln-dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #e9e5df;
    padding-bottom: 0.1px;
    overflow-x: auto;
}

.ln-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.85rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ln-tab-btn:hover {
    color: var(--clr-primary);
    border-bottom-color: var(--clr-primary-border);
}

.ln-tab-btn.active {
    color: var(--clr-primary);
    border-bottom-color: var(--clr-primary);
}

/* Tab Panels Visibility */
.ln-dashboard-tab-panel {
    display: none;
    animation: fadeTab 0.25s ease forwards;
}

.ln-dashboard-tab-panel.active {
    display: block;
}

@keyframes fadeTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Metrics Cards Grid */
.analytics-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.metric-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.metric-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.views-bg { background-color: rgba(99, 102, 241, 0.1); color: #6366f1; }
.visitors-bg { background-color: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.likes-bg { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }
.comments-bg { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.followers-bg { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }

.metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #000000de;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.metric-footer {
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}

.text-success { color: #10b981; }
.text-muted { color: rgba(0, 0, 0, 0.4); }

/* Weekly performance chart widget */
.analytics-chart-card {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.header-titles h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000de;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.header-titles p {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.45);
    margin: 0.15rem 0 0 0;
}

.chart-legends {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.views-dot { background-color: #6366f1; }
.visitors-dot { background-color: #06b6d4; }

.chart-svg-container {
    height: 180px;
    position: relative;
    width: 100%;
}

.performance-chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-timeline-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 0.75rem 0 0 0;
    border-top: 1px solid #e9e5df;
    margin-top: 0.5rem;
}

.timeline-day-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.45);
}

/* Articles and other tabs panels styling */
.panel-card {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.panel-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9e5df;
}

.panel-card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000de;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.bookmarks-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.bookmark-mini-card {
    background-color: #ffffff;
    border: 1px solid #e9e5df;
    border-radius: 8px;
    padding: 1.15rem;
    display: flex;
    align-items: flex-start;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.bookmark-mini-card:hover {
    transform: translateY(-2px);
    border-color: var(--clr-primary-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.bookmark-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mini-category {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-transform: uppercase;
}

.bookmark-details h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000000de;
    margin: 0;
    line-height: 1.35;
}

.bookmark-details h3 a {
    color: inherit;
    text-decoration: none;
}

.bookmark-details h3 a:hover {
    color: var(--clr-primary);
}

.mini-author {
    font-size: 0.72rem;
    color: rgba(0,0,0,0.45);
}

.btn-remove-bookmark {
    background: none;
    border: none;
    color: var(--clr-primary);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.25rem;
    transition: all 0.15s ease;
}

.btn-remove-bookmark:hover {
    color: rgba(0,0,0,0.35);
}

/* Response sizes adjustments and mobile layout styles */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Prevent viewport overflow on body/html levels */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }

    .desktop-only {
        display: none !important;
    }
    
    /* Layout stacking & ordering */
    .ln-dashboard-container {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
        padding: 0 0.5rem !important;
        gap: 1rem !important;
    }
    
    .ln-dashboard-main {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }
    
    .ln-dashboard-sidebar {
        order: 2 !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Hero card mobile styling */
    .ln-dashboard-hero-card {
        padding: 1rem !important;
        background-color: #ffffff !important;
        border-color: #e9e5df !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .hero-mobile-avatar-greet {
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }
    
    .mobile-greet-avatar {
        width: 48px !important;
        height: 48px !important;
        border-radius: 50%;
        border: 2px solid var(--clr-primary-border);
        object-fit: cover;
    }
    
    .mobile-greet-text h2 {
        font-size: 1.1rem !important;
        font-weight: 700;
        margin: 0 0 0.15rem 0;
        color: #000000de;
        font-family: 'Outfit', sans-serif;
    }
    
    /* Tabs styling on mobile */
    .ln-dashboard-tabs {
        border-bottom: 2px solid #e9e5df !important;
        padding-bottom: 0px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        display: flex !important;
        gap: 0.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .ln-dashboard-tabs::-webkit-scrollbar {
        display: none !important;
    }
    
    .ln-tab-btn {
        padding: 0.75rem 0.85rem !important;
        font-size: 0.8rem !important;
        font-weight: 700;
    }
    
    /* Mobile-optimized metrics cards */
    .analytics-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .metric-card {
        padding: 0.85rem !important;
        box-sizing: border-box;
        overflow: hidden !important;
    }
    
    .metric-value {
        font-size: 1.25rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .metric-title {
        font-size: 0.68rem !important;
        white-space: nowrap !important;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    .metric-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem !important;
    }
    
    .metric-footer {
        font-size: 0.65rem !important;
        flex-wrap: wrap !important; /* Force wrap long text on small mobile screens */
        line-height: 1.2 !important;
    }
    
    /* Mobile lists for post cards */
    .mobile-posts-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 0.75rem 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .mobile-post-card {
        background-color: #f8f7f5 !important;
        border: 1px solid #e9e5df !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .mobile-post-card:hover {
        border-color: var(--clr-primary-border) !important;
        background-color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    }
    
    .mobile-post-card-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .mobile-post-date {
        font-size: 0.72rem !important;
        color: rgba(0,0,0,0.45) !important;
        font-weight: 600;
    }
    
    .mobile-post-title {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
        line-height: 1.35 !important;
        color: #000000de !important;
    }
    
    .mobile-post-title a {
        color: inherit !important;
        text-decoration: none !important;
    }
    
    .mobile-post-stats {
        display: flex !important;
        gap: 1rem !important;
        font-size: 0.75rem !important;
        color: rgba(0,0,0,0.5) !important;
        font-weight: 600 !important;
        border-top: 1px solid #e9e5df !important;
        padding-top: 0.5rem !important;
    }
    
    .mobile-post-stats i {
        color: rgba(0,0,0,0.35) !important;
    }
    
    .mobile-post-actions {
        display: flex !important;
        gap: 0.5rem !important;
        margin-top: 0.25rem !important;
        justify-content: flex-end !important;
    }
    
    .btn-mobile-edit, .btn-mobile-delete {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
        padding: 0.4rem 0.85rem !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        border-radius: 50px !important;
        cursor: pointer;
        transition: all 0.15s ease !important;
        text-decoration: none !important;
        font-family: inherit !important;
    }
    
    .btn-mobile-edit {
        background-color: var(--clr-primary-light) !important;
        color: var(--clr-primary) !important;
        border: 1px solid var(--clr-primary-border) !important;
    }
    
    .btn-mobile-edit:hover {
        background-color: var(--clr-primary) !important;
        color: #ffffff !important;
    }
    
    .btn-mobile-delete {
        background-color: #fee2e2;
        color: #ef4444;
        border: 1px solid #fecaca;
    }
    
    .btn-mobile-delete:hover {
        background-color: #ef4444;
        color: #ffffff;
        border-color: #ef4444;
    }
    
    /* Chart and timeline tweaks */
    .analytics-chart-card {
        padding: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .chart-svg-container {
        height: 140px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .timeline-day-label {
        font-size: 0.68rem !important;
    }
}

/* ==========================================================================
   Profile Settings Modal Styles (Day 7 Goal)
   ========================================================================== */
.profile-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500; /* Must be above navbar */
}

.profile-settings-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.45); /* Elegant Slate background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.profile-settings-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.05);
    z-index: 1501;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalPopAnimation 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPopAnimation {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.profile-settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.profile-settings-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-settings-modal-header h3 i {
    color: var(--clr-primary);
}

.profile-settings-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: background-color 0.2s, color 0.2s;
}

.profile-settings-modal-close:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.profile-settings-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.profile-settings-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background-color: #fafbfc;
}

/* Modal styling tweaks for form elements to make them look premium */
.profile-settings-modal .ln-profile-edit-form {
    gap: 1.25rem;
}

.profile-settings-modal .ln-form-group input[type="text"],
.profile-settings-modal .ln-form-group input[type="url"],
.profile-settings-modal .ln-form-group textarea {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.profile-settings-modal .ln-form-group input[type="text"]:focus,
.profile-settings-modal .ln-form-group input[type="url"]:focus,
.profile-settings-modal .ln-form-group textarea:focus {
    border-color: var(--clr-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.profile-settings-modal .ln-btn-submit-profile {
    margin-top: 0;
    padding: 0 1.5rem;
    height: 38px;
    background-color: var(--clr-primary);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.profile-settings-modal .ln-btn-submit-profile:hover {
    background-color: var(--clr-primary-hover);
}

.profile-settings-modal .ln-btn-outline-gray {
    border-radius: 8px;
    padding: 0 1.5rem;
    height: 38px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive settings for modal */
@media (max-width: 576px) {
    .profile-settings-modal-content {
        width: 95%;
        border-radius: 12px;
        margin: 10px;
    }
    
    .profile-settings-modal-body {
        padding: 1rem;
        max-height: 70vh;
    }
    
    .profile-settings-modal-footer {
        padding: 0.75rem 1rem;
    }
}

