/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Loading Screen - Optimized */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-spinner-small {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.theme-toggle:hover {
    background: var(--surface-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    transition: left 0.2s ease;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.sidebar.open {
    left: 0;
    transform: translateX(0);
}

/* Sidebar backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.025em;
    margin: 0;
}

.sidebar-close {
    background: rgba(100, 116, 139, 0.1);
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.sidebar-close:hover {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-color);
    transform: scale(1.05);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
    gap: 0.25rem;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 0.75rem;
    transition: background 0.1s ease, color 0.1s ease;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    margin: 0.125rem 0;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.sidebar-link.active {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 1rem 1.5rem;
    position: relative;
}

.sidebar-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--border-color);
    border-radius: 50%;
}

/* Mobile menu toggle button enhancement */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(37, 99, 235, 0.2);
}

.mobile-menu-toggle i {
    font-size: 1.125rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Enhanced scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.5);
}

/* Sidebar opens instantly - no animations */

/* Main Content */
.main {
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.category-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.category-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* News Loading */
.news-loading {
    text-align: center;
    padding: 4rem 1rem;
}

.news-loading p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* News Error */
.news-error {
    text-align: center;
    padding: 4rem 1rem;
}

.error-content {
    max-width: 400px;
    margin: 0 auto;
}

.error-content i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.retry-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.retry-button:hover {
    background: #1d4ed8;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

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

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-source {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.text-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-color);
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px dashed var(--border-color);
}

.news-content {
    padding: 1.25rem;
}

.news-title {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    /* Removed line-clamp to allow full title display */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-description {
    color: var(--text-color);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    /* Removed line-clamp to allow full description display */
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0.9;
    font-weight: 400;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.news-category {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.news-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: #1d4ed8;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.share-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-btn:active {
    transform: translateY(0);
}

/* Platform-specific colors on hover */
.share-btn:hover .fa-facebook-f {
    color: #1877f2;
}

.share-btn:hover .fa-twitter {
    color: #1da1f2;
}

.share-btn:hover .fa-whatsapp {
    color: #25d366;
}

.share-btn:hover .fa-link {
    color: var(--primary-color);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-button:hover {
    background: #1d4ed8;
}

.load-more-button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

/* Theme Modal */
.theme-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.theme-modal.open {
    display: flex;
}

.theme-modal-content {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.theme-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.theme-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.theme-option {
    position: relative;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.theme-option:hover,
.theme-option.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.theme-preview {
    width: 60px;
    height: 40px;
    border-radius: var(--radius-sm);
    margin: 0 auto 0.5rem;
}

.theme-preview-default {
    background: linear-gradient(45deg, #ffffff 50%, #2563eb 50%);
}

.theme-preview-dark {
    background: linear-gradient(45deg, #1e293b 50%, #3b82f6 50%);
}

.theme-preview-blue {
    background: linear-gradient(45deg, #0ea5e9 50%, #0284c7 50%);
}

.theme-preview-green {
    background: linear-gradient(45deg, #10b981 50%, #059669 50%);
}

.theme-preview-purple {
    background: linear-gradient(45deg, #8b5cf6 50%, #7c3aed 50%);
}

.theme-preview-orange {
    background: linear-gradient(45deg, #f97316 50%, #ea580c 50%);
}

.theme-preview-rose {
    background: linear-gradient(45deg, #f43f5e 50%, #e11d48 50%);
}

.theme-preview-emerald {
    background: linear-gradient(45deg, #059669 50%, #047857 50%);
}

.theme-preview-indigo {
    background: linear-gradient(45deg, #6366f1 50%, #4f46e5 50%);
}

.theme-preview-amber {
    background: linear-gradient(45deg, #f59e0b 50%, #d97706 50%);
}

.theme-preview-teal {
    background: linear-gradient(45deg, #14b8a6 50%, #0f766e 50%);
}

.theme-preview-crimson {
    background: linear-gradient(45deg, #dc2626 50%, #b91c1c 50%);
}

.theme-preview-midnight-neon {
    background: linear-gradient(45deg, #0D0D0D 50%, #00FFC6 50%);
}

.theme-preview-sunset-horizon {
    background: linear-gradient(45deg, #2D132C 50%, #FF6B6B 50%);
}

.theme-preview-arctic-light {
    background: linear-gradient(45deg, #F4F9F9 50%, #00B4D8 50%);
}

.theme-preview-cyber-purple {
    background: linear-gradient(45deg, #1A1B41 50%, #6C63FF 50%);
}

.theme-preview-forest-glow {
    background: linear-gradient(45deg, #0B3D2E 50%, #06D6A0 50%);
}

.theme-info {
    margin-top: 0.5rem;
}

.theme-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.theme-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.theme-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.theme-option.active .theme-check {
    opacity: 1;
    transform: scale(1);
}

.theme-check i {
    color: white;
    font-size: 0.75rem;
}



/* Footer */
.footer {
    position: relative;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--background-color) 100%);
    margin-top: 4rem;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(37, 99, 235, 0.02) 50%, transparent 51%);
    background-size: 60px 60px;
    animation: footerPattern 20s linear infinite;
}

@keyframes footerPattern {
    0% { transform: translateX(-60px); }
    100% { transform: translateX(0px); }
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    animation: footerGlow 3s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding: 6rem 0 3rem;
    z-index: 2;
}

.footer-brand {
    position: relative;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-icon {
    font-size: 1.8rem;
    animation: footerIconPulse 2s ease-in-out infinite;
}

@keyframes footerIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.footer-tagline {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h4 i {
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(5px);
}

.footer-link i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: transparent;
}

.social-link.whatsapp:hover {
    background: linear-gradient(45deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-color: transparent;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.social-platform {
    font-weight: 600;
    font-size: 0.9rem;
}

.social-handle {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-newsletter {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.footer-newsletter h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--background-color);
    color: var(--text-color);
    font-size: 0.875rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.footer-bottom {
    position: relative;
    background: rgba(37, 99, 235, 0.05);
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    padding: 1.5rem 0;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.footer-heart {
    color: #e11d48;
    animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.05); }
}

.footer-links-bottom {
    display: flex;
    gap: 1.5rem;
}

.footer-links-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links-bottom a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar {
        width: 280px;
        left: -280px;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .category-header h2 {
        font-size: 1.5rem;
    }
    
    .category-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-image {
        height: 180px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Share buttons responsive */
    .news-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .share-buttons {
        align-self: stretch;
        justify-content: flex-end;
    }
    
    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 0 2rem;
    }
    
    .footer-stats {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 100vw;
        left: -100vw;
    }
    
    .sidebar-content {
        padding: 0;
    }
    
    .sidebar-header {
        padding: 1.25rem 1rem 0.75rem;
    }
    
    .sidebar-nav {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .news-content {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1.125rem;
    }
    
    .news-description {
        font-size: 1rem;
    }
    
    .theme-modal-content {
        padding: 1rem;
    }
    
    /* Smaller share buttons on mobile */
    .share-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .share-buttons {
        gap: 0.375rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #1d4ed8);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Copy Link Button */
.copy-link-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
    z-index: 10;
}

.news-card:hover .copy-link-btn {
    opacity: 1;
    transform: scale(1);
}

.copy-link-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.copy-link-btn.copied {
    background: #10b981;
    color: white;
}

/* Reading Time Badge */
.reading-time {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .copy-link-btn {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.375rem;
        font-size: 0.75rem;
    }
    
    .reading-time {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}
