/* PresaSM - Unified CSS for Homepage and Article Pages */
/* Version: 2.0 - Consolidated from all project files */

/* ============================================
   1. CSS VARIABLES & ROOT CONFIGURATION
   ============================================ */

/* Apple San Francisco Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Light/Dark Mode */
:root {
    /* Apple Gradients */
    --apple-blue: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    --apple-pink: linear-gradient(135deg, #FF2D92 0%, #FF6B35 100%);
    --apple-purple: linear-gradient(135deg, #5856D6 0%, #AF52DE 100%);
    --apple-green: linear-gradient(135deg, #30D158 0%, #32D74B 100%);
    --apple-orange: linear-gradient(135deg, #FF9500 0%, #FF6B35 100%);
    
    /* TikTok Colors */
    --tiktok-pink: #FE2C55;
    --tiktok-blue: #25F4EE;
    --tiktok-black: #161823;
    --tiktok-dark: #0F1419;
    
    /* Light Mode */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --bg-elevated: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    
    /* Glassmorphism Light */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-elevated: #161b22; /* ADĂUGAT - aceasta lipsea! */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: rgba(240, 246, 252, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    
    --glass-bg: rgba(22, 27, 34, 0.8);
    --glass-border: rgba(240, 246, 252, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Fix pentru dark mode body */
body[data-theme="dark"] {
    background-color: #0d1117 !important;
    color: #f0f6fc !important;
}

/* Dark theme specific overrides */
[data-theme="dark"] body::before {
    display: none;
}

[data-theme="dark"] .unread-news-content {
    background-color: #1c1c1e;
}

[data-theme="dark"] .unread-news-item {
    background: #2c2c2e;
    border-color: #38383a;
}

[data-theme="dark"] .next-article-btn {
    background: var(--apple-purple);
    box-shadow: 0 4px 20px rgba(175, 82, 222, 0.3);
}

[data-theme="dark"] .next-article-btn:hover {
    box-shadow: 0 6px 25px rgba(175, 82, 222, 0.4);
    background: #9747d6;
}

/* Dark mode for widgets */
body.dark-theme .contact-section {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #333;
}

body.dark-theme .contact-card {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-theme .contact-section h2,
body.dark-theme .contact-section h3 {
    color: #667eea;
}

body.dark-theme .highlight-box {
    background: #2a2a3a;
    border-color: #667eea;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-bottom: 100px;
    width: 100%;
    max-width: 100vw;
}

/* Clean Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(37, 244, 238, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   3. SCROLLBAR STYLES
   ============================================ */

/* Apple-style Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ============================================
   4. HEADER STYLES
   ============================================ */

/* Header - Fixed */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease-in-out;
}

/* Header Hidden State */
.main-header.header-hidden {
    transform: translateY(-100%);
}

.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-header {
    display: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: 700;
    background: var(--apple-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.logo i {
    margin-right: 12px;
    font-size: 36px;
    background: var(--apple-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
    display: flex;
    justify-content: center;
}

.search-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
}

.search-icon-btn:hover {
    transform: scale(1.1);
    background: var(--bg-tertiary);
    box-shadow: var(--glass-shadow);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    position: relative;
    text-decoration: none;
}

.action-btn:hover {
    transform: scale(1.1);
    background: var(--bg-tertiary);
    box-shadow: var(--glass-shadow);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--glass-shadow);
}

.theme-toggle i {
    font-size: 20px;
    transition: all 0.3s ease;
}

[data-theme="light"] .theme-toggle .light-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .dark-icon {
    display: none;
}

/* Notification Badge */
.action-btn.notification {
    position: relative;
}

.action-btn.notification::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--tiktok-pink);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.action-btn.notification.has-notifications::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--tiktok-pink);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.saved-count,
.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--tiktok-pink);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

/* Desktop Weather Icon Style */
.header-actions .weather-icon {
    display: flex !important;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    position: relative;
}

.header-actions .weather-icon:hover {
    transform: scale(1.1);
    background: var(--bg-tertiary);
    box-shadow: var(--glass-shadow);
}

/* ============================================
   5. MENU DROPDOWN STYLES
   ============================================ */

.menu-btn {
    position: relative;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 270px;
    overflow: hidden;
    z-index: 999 !important;
    padding: 15px;
}

.menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.menu-dropdown-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
    font-size: 15px;
    border-radius: 12px;
}

.menu-dropdown-item:last-child {
    border-bottom: none;
}

.menu-dropdown-item:hover {
    background: var(--bg-tertiary);
    padding-left: 25px;
    color: var(--apple-blue);
    text-decoration: none;
}

.menu-dropdown-item i {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tiktok-pink);
    text-align: center;
}

/* ============================================
   6. PROGRESS BAR STYLES
   ============================================ */

.reading-progress-bar {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    z-index: 1001;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.reading-progress-bar.progress-as-header {
    top: 0;
    height: 4px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reading-progress-fill {
    height: 100%;
    background: var(--tiktok-pink);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(254, 44, 85, 0.6);
    position: relative;
}

.reading-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    animation: shimmer 1.5s infinite;
}

/* ============================================
   7. MODAL STYLES
   ============================================ */

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--glass-shadow);
    max-height: 80vh;
    overflow-y: auto;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.search-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.search-form {
    position: relative;
    margin-bottom: 20px;
}

.search-box {
    width: 100%;
    padding: 16px 60px 16px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.search-box:focus {
    border-color: var(--tiktok-pink);
    box-shadow: 0 0 20px rgba(254, 44, 85, 0.2);
}

.search-box::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tiktok-pink);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.search-btn:hover {
    background: #e02547;
    transform: translateY(-50%) scale(1.1);
}

/* Search Results */
.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.search-results-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.search-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.search-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--tiktok-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-result-item {
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.search-result-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--tiktok-pink);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.search-result-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
    flex: 1;
}

.search-result-category {
    background: var(--apple-blue);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.search-result-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.search-result-meta i {
    font-size: 10px;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.search-no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.search-no-results h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.search-no-results p {
    font-size: 14px;
    margin: 0;
}

/* Quick Search */
.quick-search-suggestion {
    margin-bottom: 20px;
}

.quick-search-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--apple-blue);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.quick-search-btn:hover {
    background: var(--apple-purple);
    transform: scale(1.02);
}

/* Mobile Menu Modal */
.mobile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-menu-modal.active {
    display: flex;
}

.mobile-menu-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--apple-blue);
    transform: translateX(5px);
    text-decoration: none;
    color: var(--apple-blue);
}

.mobile-menu-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

/* Unread News Modal */
.unread-news-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.unread-news-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.unread-news-content {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.unread-news-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unread-news-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary);
}

.unread-news-close {
    background: var(--apple-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.unread-news-close:hover {
    background: #0056d2;
    transform: scale(1.05);
}

.unread-news-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.unread-news-item {
    display: block;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-primary);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.unread-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--apple-blue);
    text-decoration: none;
}

.unread-news-item h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.4;
}

.unread-news-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   8. MAIN LAYOUT STYLES
   ============================================ */

/* Homepage Specific - Main Layout */
.main-container {
    margin-top: 100px;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    padding-top: 35px;
    min-height: calc(100vh - 180px);
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

/* Article Page Specific Styles */
.article-container {
    margin-top: 100px;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 20px;
    min-height: calc(100vh - 180px);
    width: 100%;
    box-sizing: border-box;
    align-items: start !important;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

/* ============================================
   9. SIDEBAR STYLES
   ============================================ */

/* Left Sidebar */
.left-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--glass-shadow);
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--apple-blue);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Menu Widget - For Article Page */
.nav-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--glass-shadow);
}

/* Right Sidebar */
.right-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

/* Article Sidebars */
.article-container .left-sidebar {
    grid-column: 1;
    position: sticky;
    top: 110px;
    height: fit-content;
    align-self: start !important;
}

.article-container .right-sidebar {
    grid-column: 3;
    position: sticky;
    top: 110px;
    height: fit-content;
    align-self: start !important;
}

/* ============================================
   10. MAIN FEED STYLES
   ============================================ */

/* Main Feed */
.main-feed {
    position: relative;
    padding: 0;
    margin: 0;
}

/* Regular posts grid for large screens */
.regular-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* 2 columns for screens 1200px and up */
@media (min-width: 1200px) {
    .regular-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .regular-posts-grid .post-card {
        margin-bottom: 0;
    }
}

/* Post Card Styles */
.post-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow);
    contain: layout style paint;
    will-change: transform;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.post-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: var(--apple-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 600;
    color: white;
    position: relative;
    overflow: hidden;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.author-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.post-menu {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.post-menu:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.post-content {
    padding: 0 20px 20px;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-decoration: none;
}

.post-title:hover {
    color: var(--tiktok-pink);
    text-decoration: none;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--tiktok-pink);
    text-decoration: none;
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 15px;
}

.post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.bn-image {
    width: 100%;
  
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.post-image:hover {
    transform: scale(1.02);
}

.post-actions {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.action-button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
    height: 44px;
}

.action-button:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: scale(1.05);
    border-color: var(--text-secondary);
    text-decoration: none;
}

.action-button.read-btn:hover {
    background: var(--apple-blue);
    color: white;
    border-color: transparent;
}

.action-button.share-btn:hover {
    background: var(--apple-green);
    color: white;
    border-color: transparent;
}

.action-button.save-btn:hover {
    background: var(--apple-orange);
    color: white;
    border-color: transparent;
}

/* ============================================
   11. BREAKING NEWS STYLES
   ============================================ */

/* Breaking News Special Style */
.breaking-news-section {
    margin-bottom: 30px;
}

.breaking-news-section .author-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.breaking-news.main-breaking {
    position: relative;
    background: #214b7d;
    color: white;
    animation: float 6s ease-in-out infinite;
    margin-bottom: 20px;
    border-left: 4px solid #667eea !important;
}

.breaking-news.main-breaking .post-title,
.breaking-news.main-breaking .post-excerpt,
.breaking-news.main-breaking .author-info h4,
.breaking-news.main-breaking .author-info p {
    color: white;
}

.breaking-news.main-breaking .action-button {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.breaking-news.main-breaking .action-button:hover {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.breaking-news.main-breaking::before {
    content: 'BREAKING';
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* Breaking News Grid */
.breaking-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.breaking-news-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow);
    position: relative;
}

.breaking-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px var(--shadow-medium);
}

.breaking-news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tiktok-pink), var(--tiktok-blue));
}

.breaking-item-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.breaking-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.breaking-news-item:hover .breaking-item-image img {
    transform: scale(1.05);
}

.breaking-item-content {
    padding: 16px;
}

.breaking-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.breaking-badge {
    background: var(--tiktok-pink);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    animation: pulse 2s infinite;
}

.breaking-time {
    font-size: 12px;
    color: var(--text-muted);
}

.breaking-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.breaking-item-excerpt {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.breaking-item-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.breaking-action-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    min-width: 0;
}

.breaking-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: scale(1.02);
    text-decoration: none;
}

.breaking-action-btn i {
    font-size: 9px;
}

/* ============================================
   12. WIDGET STYLES
   ============================================ */

/* Trending & Widgets */
.trending-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--glass-shadow);
}

.trending-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    background: var(--apple-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trending-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.trending-item:hover {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 12px;
    margin: 0 -12px;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-number {
    font-weight: 700;
    color: var(--tiktok-pink);
    margin-right: 12px;
    min-width: 20px;
}

.trending-text {
    flex: 1;
}

.trending-text h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.trending-text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Trending Image */
.trending-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 12px;
    display: none;
}

/* Weather Widget */
.weather-widget {
    text-align: center;
    background: var(--apple-blue);
    color: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.weather-temp {
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 8px;
}

.weather-location {
    font-size: 16px;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    color: white;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* Related Articles Widget */
.related-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--glass-shadow);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 8px;
    background: var(--apple-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-article {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.related-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-content {
    flex: 1;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--text-primary);
    text-decoration: none;
}

.related-title:hover {
    color: var(--tiktok-pink);
    text-decoration: none;
}

.related-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sidebar Widgets General */
.sidebar-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--glass-shadow);
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--apple-blue);
    color: white;
    text-align: center;
}

.newsletter-widget .widget-title {
    color: white;
}

.newsletter-form {
    margin-top: 16px;
}

.newsletter-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 25px;
    margin-bottom: 12px;
    font-size: 14px;
    outline: none;
}

.newsletter-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: var(--tiktok-pink);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: scale(1.02);
    background: #f8f9fa;
}

/* Trending Widget for Article Page */
.trending-content {
    flex: 1;
}

.trending-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--text-primary);
    text-decoration: none;
}

.trending-title:hover {
    color: var(--tiktok-pink);
    text-decoration: none;
}

.trending-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sponsored Widget */
.sponsored-widget {
    text-align: center;
}

.sponsored-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.sponsored-ad {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sponsored-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   13. ARTICLE PAGE SPECIFIC STYLES
   ============================================ */

/* Main Article Content */
.article-main {
    grid-column: 2;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    align-self: start !important;
    height: auto !important;
    min-height: auto !important;
}

/* Social Share Sidebar */
.share-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--glass-shadow);
}

.share-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-align: center;
}

.share-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
}

.share-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.02);
    color: var(--text-primary);
    text-decoration: none;
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-btn.messenger:hover {
    background: #0084ff;
    color: white;
    border-color: #0084ff;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.share-btn.email:hover {
    background: #ea4335;
    color: white;
    border-color: #ea4335;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 30px 0;
    font-size: 14px;
    background: transparent;
}

.breadcrumb-item {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item:hover {
    color: var(--tiktok-pink);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--text-muted);
}

/* Article Header */
.article-header {
    padding: 20px 30px;
    position: relative;
    background: transparent;
    color: var(--text-primary);
}

.article-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.article-category {
    display: inline-block;
    background: var(--apple-blue);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.save-article-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.save-article-btn:hover {
    background: var(--apple-orange);
    color: white;
    border-color: transparent;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.meta-item i {
    color: var(--tiktok-pink);
}

/* Article Author Avatar */
.article-header .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--apple-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Hero Image */
.article-hero {
    position: relative;
    width: 100%;
    height: 600px;
    margin-bottom: 30px;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px 30px;
    font-size: 14px;
}

/* Article Content */
.article-content {
    padding: 0 30px 30px;
    background: transparent;
    color: var(--text-primary);
    contain: layout style;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-primary);
    scroll-margin-top: 120px;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-primary);
    scroll-margin-top: 120px;
}

.article-content p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-content blockquote {
    border-left: 4px solid var(--tiktok-pink);
    padding: 20px;
    margin: 24px 0;
    background: var(--bg-primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content ul, .article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Article Content Media */
.article-content video,
.article-content iframe[src*="youtube"],
.article-content iframe[src*="youtu.be"],
.article-content iframe[src*="vimeo"],
.article-content .video-wrapper {
    max-height: 500px !important;
    height: auto !important;
    width: 100% !important;
}

.article-content video {
    object-fit: contain !important;
    background: #000;
}

.article-content img,
.article-content video,
.article-content iframe,
.article-content embed {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
}

/* Mobile Share Section */
.mobile-share-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin: 20px 30px;
    box-shadow: var(--glass-shadow);
    display: none;
}

.mobile-share-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.mobile-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-share-row {
    display: flex;
    gap: 12px;
}

.mobile-share-row .share-btn {
    flex: 1;
    margin-bottom: 0;
}

.mobile-share-row.full .share-btn {
    width: 100%;
}

/* Bottom sections în interiorul coloanei principale */
.bottom-sections-wrapper {
    margin-top: 50px;
    margin-left: -40px;
    margin-right: -40px;
    padding: 0 40px;
}

/* Similar Articles Carousel */
.similar-articles-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.similar-articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.similar-articles-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.similar-articles-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.similar-articles-carousel::-webkit-scrollbar {
    display: none;
}

.similar-article-card {
    flex: 0 0 calc(25% - 15px);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.similar-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px var(--shadow-medium);
}

.similar-article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.similar-article-content {
    padding: 16px;
}

.similar-article-category {
    display: inline-block;
    background: var(--apple-blue);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.similar-article-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: var(--glass-shadow);
    font-size: 24px;
    color: var(--text-primary);
}

.carousel-nav:hover {
    background: var(--bg-tertiary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-nav.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comments Section */
.comments-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.comments-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
}

.comments-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.comment-form {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--apple-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-input-container {
    flex: 1;
}

.comment-name-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    margin-bottom: 12px;
}

.comment-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
}

.comment-input:focus,
.comment-name-input:focus {
    border-color: var(--tiktok-pink);
    box-shadow: 0 0 10px rgba(254, 44, 85, 0.2);
}

.comment-checkboxes {
    margin: 12px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    user-select: none;
}

.checkbox-item a {
    color: var(--tiktok-pink);
    text-decoration: none;
}

.checkbox-item a:hover {
    text-decoration: underline;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.comment-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-btn.primary {
    background: var(--tiktok-pink);
    color: white;
    border-color: var(--tiktok-pink);
}

.comment-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.comment-btn.primary:hover {
    background: #e02547;
}

.comments-list {
    padding: 24px 30px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.comment-reactions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reaction-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.reaction-btn:hover {
    color: var(--tiktok-pink);
}

.reaction-btn.liked {
    color: var(--tiktok-pink);
}



/* Gallery Styles */
.gallery {
    display: block;
    margin: 1.5rem 0;
}

.gallery-item {
    margin-bottom: 1rem;
}

.gallery-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.25rem;
    display: block;
    margin: 0 auto;
}

/* Article Image */
.article-image-container {
    width: 100%;
    max-width: 100%;
}

.article-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Bootstrap Overrides */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ============================================
   15. FLOATING ACTION BUTTONS
   ============================================ */

/* Floating Action Buttons - HIDDEN ON MOBILE AND TABLET */
.floating-actions {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hide floating buttons on mobile and tablet */
@media (max-width: 1024px) {
    .floating-actions {
        display: none !important;
    }
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
}

.floating-btn.comment-btn:hover {
    background: var(--tiktok-pink);
    color: white;
}

.floating-btn.share-btn:hover {
    background: var(--apple-blue);
    color: white;
}

/* Next Article Button */
.next-article-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--apple-blue);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.next-article-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
    background: #0056d2;
    color: white;
    text-decoration: none;
}

.next-article-btn i {
    font-size: 18px;
}

/* ============================================
   16. MOBILE NAVIGATION
   ============================================ */

/* Mobile Bottom Navigation - NOW VISIBLE ON ALL DEVICES */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 12px 0 env(safe-area-inset-bottom, 12px) 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px var(--shadow-light);
    display: block;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 60px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--tiktok-pink);
    background: rgba(254, 44, 85, 0.1);
    text-decoration: none;
}

.mobile-nav-item.center {
    background: var(--apple-pink);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    margin-top: -20px;
    box-shadow: 0 4px 20px rgba(254, 44, 85, 0.4);
    color: white;
}

.mobile-nav-item.center:hover {
    background: var(--apple-purple);
    transform: scale(1.1);
    color: white;
}

.mobile-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Mobile Sidebars Container */
.mobile-sidebars {
    display: none;
    margin-top: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

/* ============================================
   17. CONTACT PAGE STYLES
   ============================================ */

/* Contact Page Specific */
.contact-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.contact-header h1 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.contact-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.contact-section {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.contact-section h2 {
    color: #667eea;
    font-size: 1.6rem;
    margin: 0 0 18px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.contact-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.contact-card p {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.contact-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    font-size: 15px;
}

.social-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.whatsapp:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.social-btn.email {
    background: #ea4335;
}

.social-btn.email:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.3);
}

.highlight-box {
    background: #f0f4ff;
    border: 1px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.highlight-box h3 {
    color: #667eea;
    margin: 0 0 10px 0;
}

.contact-hours {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
}

.contact-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-hours li {
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
}

.contact-map {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   18. PERFORMANCE & UTILITY STYLES
   ============================================ */

/* Loading spinner styles */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.text-primary {
    color: #667eea !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Lazy loading pentru imagini */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Performance optimizations */
.post-card, .breaking-news-item {
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}

/* Blue theme overrides */
.post-card .author-avatar {
    background: #667eea;
}

.action-button:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
}

.read-btn:hover {
    background: #667eea !important;
    color: white !important;
}

/* Prevent horizontal overflow */
.main-container,
.main-feed,
.post-card,
.post-header,
.post-content,
.post-actions,
.sidebar-card,
.trending-card,
.article-container,
.article-main,
.article-content,
.comments-section,
.sidebar-widget,
.similar-articles-section {
    max-width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.post-title,
.post-excerpt,
.author-info h4,
.author-info p,
.article-title,
.article-subtitle,
.article-content p,
.comment-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ============================================
   19. ANIMATIONS
   ============================================ */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ============================================
   20. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1440px) and (min-width: 1025px) {
    .breaking-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Tablet Layout - 769px to 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Homepage Layout */
    .main-container {
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .left-sidebar {
        grid-column: 1;
        grid-row: 1;
        display: block !important;
        position: sticky;
        top: 120px;
    }
    
    .main-feed {
        grid-column: 2;
        grid-row: 1;
    }
    
    .right-sidebar {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        position: relative;
        top: auto;
        display: block !important;
    }
    
    /* Article Page Layout */
    .article-container {
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        padding: 20px 15px;
        display: block !important;
    }
    
    .article-sidebar-left {
        grid-column: 1;
        grid-row: 1;
        display: block !important;
        position: sticky;
        top: 110px;
    }
    
    .article-main {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .article-sidebar-right {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        position: relative;
        top: auto;
        margin-top: 30px;
        display: block !important;
    }
    
    /* Right Sidebar Modifications for Tablet */
    .right-sidebar .trending-card,
    .article-sidebar-right .sidebar-widget {
        display: flex;
        flex-direction: column;
    }
    
    /* Newsletter full width on tablet */
    .newsletter-widget {
        width: 100%;
        max-width: 100%;
    }
    
    /* Show trending images on tablet */
    .trending-image {
        display: block !important;
    }
    
    /* Trending items with images - tablet style */
    .right-sidebar .trending-item {
        display: flex;
        gap: 15px;
        align-items: center;
        padding: 12px 0;
        position: relative;
    }
    
    .right-sidebar .trending-item:hover {
        background: var(--bg-tertiary);
        border-radius: 12px;
        padding: 12px;
        margin: 0 -12px;
    }
    
    /* For article page trending items - they already have images */
    .article-sidebar-right .trending-item {
        gap: 12px;
    }
    
    .article-sidebar-right .trending-item img {
        display: block !important;
        width: 80px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
        margin-right: 0;
    }
    
    .trending-content {
        flex: 1;
    }
    
    /* Breaking news grid */
    .breaking-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Similar articles carousel */
    .similar-article-card {
        flex: 0 0 calc(50% - 10px);
    }
    
    .carousel-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    /* Regular posts grid */
    .regular-posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile sidebars should not appear on tablet */
    .mobile-sidebars {
        display: none !important;
    }
    
    /* Bottom sections on tablet */
    .bottom-sections-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    
    .similar-articles-section,
    .comments-section {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
    }
    
    .carousel-nav {
        display: none;
    }
}

@media (max-width: 1024px) {
    .breaking-item-image {
        height: 120px;
    }

    .breaking-item-title {
        font-size: 15px;
    }

    .breaking-item-excerpt {
        font-size: 13px;
    }

    .breaking-item-actions {
        display: flex;
        gap: 5px;
        flex-wrap: nowrap;
    }

    .breaking-action-btn {
        font-size: 9px;
        padding: 4px 6px;
        gap: 2px;
    }

    /* Ensure action buttons stay in one row on tablet */
    .post-actions {
        display: flex;
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .action-button {
        flex: 1;
        min-width: 0;
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
    /* Hide desktop header */
    .main-header:not(.mobile-header) {
        display: none !important;
    }
    
    /* Show mobile header */
    .main-header.mobile-header {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--glass-shadow);
        padding: 0;
    }
    
    .main-header.mobile-header .header-container {
        display: block !important;
        padding: 0;
        max-width: 100%;
    }
    
    .header-top-row,
    .header-bottom-row {
        display: flex !important;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        padding: 0 12px;
    }
    
    .header-top-row {
        padding-top: 12px;
        padding-bottom: 8px;
    }
    
    /* Mobile Header Layout - Fixed Flexible Spacing */
    .header-bottom-row {
        padding-top: 8px;
        padding-bottom: 12px;
        border-top: 1px solid var(--border-color);
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .mobile-header .header-actions {
        display: none !important;
    }
    
    .mobile-header .search-container {
        display: none !important;
    }
    
    /* Toate iconurile pe al doilea rând cu același stil */
    .header-bottom-row .action-btn,
    .header-bottom-row .search-icon-btn,
    .header-bottom-row .weather-icon,
    .header-bottom-row .theme-toggle {
        display: flex !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
        border-radius: 19px !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .header-bottom-row .action-btn:hover,
    .header-bottom-row .search-icon-btn:hover,
    .header-bottom-row .weather-icon:hover,
    .header-bottom-row .theme-toggle:hover {
        background: var(--bg-tertiary) !important;
        transform: scale(1.1) !important;
    }
    
    .logo-container {
        flex: 1;
        width: 60%;
    }
    
    .menu-container {
        flex-shrink: 0;
        width: 40%;
        display: flex;
        justify-content: flex-end;
    }
    
    /* MOBILE LOGO AND MENU - OPTIMIZED */
    .mobile-header .logo {
        display: flex !important;
        align-items: center;
        font-size: 24px;
        font-weight: 700;
    }
    
    .mobile-header .logo i {
        display: inline-block !important;
        margin-right: 8px;
        font-size: 28px;
    }
    
    .mobile-header .logo img {
        height: 50px;
    }
    
    .mobile-header .action-btn {
        display: flex !important;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    /* Pe mobil să fie mai sus pentru că header-ul e mai jos */
    .menu-dropdown {
        z-index: 1001 !important;
        right: 10px;
        left: auto;
        width: calc(100vw - 20px);
        max-width: 300px;
        display: none !important;
    }
    
    /* Progress bar position on mobile */
    .reading-progress-bar {
        top: 112px;
    }

    /* MOBILE LAYOUT FIXES - APPLY CALC(100VW - 20PX) UNIFORMLY */
    
    /* Homepage mobile layout */
    .main-container {
        display: block !important;
        grid-template-columns: none !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 127px 0 80px 0 !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .main-feed {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin: 0 10px !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
    
    /* Article page mobile layout */
    .article-container {
        display: block !important;
        grid-template-columns: none !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 127px 0 80px 0 !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .article-main {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin: 0 10px !important;
        padding: 0 !important;
        box-sizing: border-box;
        border-radius: 16px;
    }
    
    /* Bottom sections wrapper - FIXED OVERFLOW */
    .bottom-sections-wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* Mobile Share Section - FIXED MARGINS */
    .mobile-share-section {
        display: block;
        width: calc(100% - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin: 20px auto !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Similar Articles Section - FIXED MARGINS */
    .similar-articles-section {
        width: calc(100% - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin: 20px auto !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        background: var(--bg-secondary) !important;
        border-radius: 16px !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--glass-shadow) !important;
        overflow: hidden !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Comments Section - FIXED MARGINS */
    .comments-section {
        width: calc(100% - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin: 20px auto 30px auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        background: var(--bg-secondary) !important;
        border-radius: 16px !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--glass-shadow) !important;
        overflow: hidden !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Mobile Sidebars - uniform margins */
    .mobile-sidebars {
        display: block !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 30px 0 0 0 !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .mobile-sidebar-section {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin: 0 10px 20px 10px !important;
        box-sizing: border-box;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: none !important;
    }

    .breadcrumbs {
        padding: 16px 20px 0;
        font-size: 12px;
    }

    .article-header {
        padding: 16px 20px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-subtitle {
        font-size: 16px;
    }

    .article-meta {
        gap: 12px;
    }

    .article-hero {
        height: 250px;
    }

    .image-caption {
        padding: 16px 20px;
        font-size: 12px;
    }

    .article-content {
        padding: 0 20px 20px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-content p {
        font-size: 16px;
    }

    .similar-article-card {
        flex: 0 0 calc(85%);
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }

    .comments-header {
        padding: 20px;
    }

    .comments-title {
        font-size: 20px;
    }

    .comments-list {
        padding: 20px;
    }

    /* Hide trending images on mobile */
    .trending-image {
        display: none !important;
    }

    /* Mobile Text Sizes - Increased by 25% */
    .post-title {
        font-size: 25px;
        line-height: 1.3;
    }

    .post-excerpt {
        font-size: 19px;
        line-height: 1.5;
    }

    .author-info h4 {
        font-size: 20px;
    }

    .author-info p {
        font-size: 18px;
    }

    .action-button {
        font-size: 18px;
        padding: 14px 18px;
        box-sizing: border-box;
    }

    .trending-text h5 {
        font-size: 18px;
    }

    .trending-text p {
        font-size: 15px;
    }

    .mobile-nav-text {
        font-size: 13px;
    }

    .mobile-nav-icon {
        font-size: 24px;
    }

    /* Breaking News Mobile Layout */
    .breaking-news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .breaking-news-item {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        min-height: 120px;
        border-radius: 12px;
    }

    .breaking-item-image {
        width: 35%;
        min-width: 35%;
        height: auto;
        min-height: 120px;
        flex-shrink: 0;
    }

    .breaking-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .breaking-item-content {
        width: 65%;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .breaking-item-meta {
        margin-bottom: 8px;
    }

    .breaking-badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    .breaking-time {
        font-size: 11px;
    }

    .breaking-item-title {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }

    .breaking-item-excerpt {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }

    .breaking-item-actions {
        gap: 6px;
        margin-top: auto;
    }

    .breaking-action-btn {
        font-size: 12px;
        padding: 8px 10px;
        border-radius: 12px;
    }
    
    /* Comments on mobile */
    .comments-section {
        padding: 20px;
    }
    
    .comment-form {
        flex-direction: column;
    }
    
    /* Search Modal on Mobile */
    .search-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
    
    .search-modal-title {
        font-size: 20px;
    }
    
    .search-box {
        font-size: 16px;
        padding: 14px 50px 14px 16px;
    }
    
    .search-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .search-result-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-result-image {
        width: 100%;
        height: 120px;
        align-self: center;
    }
    
    .search-result-title {
        font-size: 15px;
    }
    
    .search-result-excerpt {
        font-size: 13px;
    }
    
    /* Mobile Menu Modal */
    .menu-dropdown {
        display: none !important;
    }
    
    /* Contact Page Mobile */
    .contact-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .contact-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-section {
        padding: 18px;
        margin-bottom: 20px;
    }
    
    .contact-section h2 {
        font-size: 1.4rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Next Article Button - Mobile only */
    .next-article-btn {
        display: flex !important;
    }
    
    /* Fix pentru marginile pe mobil */
    .mobile-share-section,
    .similar-articles-section,
    .comments-section {
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: hidden;
    }
    
    .similar-articles-carousel {
        padding-right: 10px;
    }
    
    .comment-form,
    .comments-list {
        padding-right: 10px;
    }
    
    /* Header container mobile */
    .header-container {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Unread news modal mobile */
    .unread-news-content {
        width: 95%;
        max-height: 90vh;
    }
}

@media (max-width: 576px) {
    .youtube-embed iframe {
        aspect-ratio: 16 / 9;
    }
    .youtube-embed.shorts iframe {
        aspect-ratio: 9 / 16;
    }
    .social-embed {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px 8px;
        width: 100%;
        max-width: 100%;
    }

    .main-header {
        padding: 8px 6px;
    }

    .header-container {
        gap: 4px;
        padding: 0;
    }

    .logo {
        font-size: 14px;
    }

    .logo i {
        font-size: 18px;
    }

    .search-icon-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .action-btn,
    .theme-toggle {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .article-container {
        padding: 10px 8px;
    }

    .article-header {
        padding: 12px 16px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-content {
        padding: 0 16px 16px;
    }

    .article-content p {
        font-size: 15px;
    }

    .comments-header {
        padding: 16px;
    }

    .comments-list {
        padding: 16px;
    }

    .similar-article-card {
        flex: 0 0 calc(90%);
    }

    .similar-articles-section {
        padding: 16px;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .carousel-nav.prev {
        left: 2px;
    }
    
    .carousel-nav.next {
        right: 2px;
    }

    .post-card {
        border-radius: 12px;
        margin-bottom: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .post-header {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .post-content {
        padding: 0 10px 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .post-actions {
        padding: 10px;
        flex-direction: row;
        gap: 4px;
        width: 100%;
        box-sizing: border-box;
    }

    .action-button {
        padding: 10px 6px;
        font-size: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex: 1;
        min-width: 0;
    }

    .action-button i {
        font-size: 9px;
    }

    .post-title {
        font-size: 16px;
        line-height: 1.2;
    }

    .post-excerpt {
        font-size: 12px;
        line-height: 1.4;
    }

    .author-info h4 {
        font-size: 13px;
    }

    .author-info p {
        font-size: 11px;
    }

    .breaking-news-item {
        min-height: 90px;
        margin-bottom: 8px;
    }

    .breaking-item-image {
        width: 35%;
        min-width: 35%;
        min-height: 90px;
    }

    .breaking-item-content {
        width: 65%;
        padding: 8px;
    }

    .breaking-item-title {
        font-size: 13px;
        margin-bottom: 3px;
        -webkit-line-clamp: 2;
    }

    .breaking-item-excerpt {
        font-size: 10px;
        margin-bottom: 6px;
        -webkit-line-clamp: 1;
    }

    .breaking-action-btn {
        font-size: 8px;
        padding: 4px 6px;
        gap: 1px;
    }

    .breaking-action-btn i {
        font-size: 7px;
    }

    .breaking-badge {
        font-size: 7px;
        padding: 1px 4px;
    }

    .breaking-time {
        font-size: 8px;
    }

    .mobile-nav-container {
        padding: 0 6px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mobile-nav-item {
        min-width: 45px;
        padding: 4px 6px;
    }

    .mobile-nav-item.center {
        width: 42px;
        height: 42px;
        margin-top: -14px;
    }

    .mobile-nav-icon {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .mobile-nav-text {
        font-size: 8px;
    }

    /* FIX pentru ecrane foarte mici */
    .mobile-share-section,
    .similar-articles-section,
    .comments-section {
        width: calc(100% - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        margin: 15px auto !important;
        padding: 15px !important;
        border-radius: 12px !important;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-image {
        height: 100px;
    }
}

/* Desktop only styles */
@media (min-width: 769px) {
    .main-header:not(.mobile-header) {
        display: block !important;
    }
    
    .main-header.mobile-header {
        display: none !important;
    }
    
    .next-article-btn {
        display: none !important;
    }
}

/* ============================================
   21. ACCESSIBILITY & REDUCED MOTION
   ============================================ */

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .spinner-border {
        animation: none;
    }
}

/* ============================================
   22. FIX-URI FINALE
   ============================================ */

/* PROBLEMA 1: SPACING CONSISTENT ÎNTRE WIDGET-URI ÎN LEFT SIDEBAR */
.sidebar-card,
.weather-widget,
.related-widget,
.share-sidebar,
.trending-card {
    margin-bottom: 20px !important;
}

/* PROBLEMA 2: DARK MODE FIX PENTRU ARTICOL - Simplificat */
.article-main,
.breadcrumbs,
.article-header,
.article-content {
    background: transparent;
}

.article-main {
    background: var(--bg-elevated);
}

.similar-articles-section,
.comments-section {
    background: var(--bg-secondary);
}

.comment-input,
.comment-name-input,
.comment-item {
    background: var(--bg-primary);
}

.mobile-share-section {
    background: var(--bg-secondary);
}