/**
 * News Marquee Pro - Frontend Styles
 * Professional and responsive design for news display
 */

/* CSS Variables for consistent theming */
:root {
    --nmp-primary-color: #2563eb;
    --nmp-secondary-color: #64748b;
    --nmp-accent-color: #f59e0b;
    --nmp-success-color: #10b981;
    --nmp-error-color: #ef4444;
    --nmp-warning-color: #f59e0b;
    --nmp-info-color: #3b82f6;
    
    --nmp-text-primary: #1e293b;
    --nmp-text-secondary: #64748b;
    --nmp-text-muted: #94a3b8;
    --nmp-text-light: #ffffff;
    
    --nmp-bg-primary: #ffffff;
    --nmp-bg-secondary: #f8fafc;
    --nmp-bg-muted: #f1f5f9;
    --nmp-bg-dark: #1e293b;
    
    --nmp-border-color: #e2e8f0;
    --nmp-border-light: #f1f5f9;
    --nmp-border-dark: #cbd5e1;
    
    --nmp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --nmp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --nmp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --nmp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --nmp-radius-sm: 0.25rem;
    --nmp-radius-md: 0.375rem;
    --nmp-radius-lg: 0.5rem;
    --nmp-radius-xl: 0.75rem;
    
    --nmp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nmp-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    
    --nmp-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --nmp-font-mono: "SF Mono", Monaco, Inconsolata, "Roboto Mono", Consolas, "Courier New", monospace;
}

/* Reset and base styles */
.nmp-marquee-container *,
.nmp-news-archive *,
.nmp-single-page *,
.nmp-archive-page * {
    box-sizing: border-box;
}

/* Container styles */
.nmp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================================================
   MARQUEE STYLES
   ========================================================================== */

.nmp-marquee-container {
    position: relative;
    background: transparent;
    border: none;
    border-radius: var(--nmp-radius-lg);
    overflow: hidden;
    box-shadow: none;
    margin: 1.5rem 0;
    transition: var(--nmp-transition);
    min-height: 60px;
    padding: 15px 0;
    display: flex;
    align-items: center;
}

.nmp-marquee-container:hover {
    /* Removed box-shadow for transparent design */
}

.nmp-marquee-content {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
}

.nmp-marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    /* Remove any initial spacing/margin */
    margin: 0;
    padding: 0;
}

.nmp-marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    font-family: var(--nmp-font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--nmp-text-primary);
    transition: var(--nmp-transition-fast);
    /* Remove any margins that could cause spacing */
    margin: 0;
    /* Ensure no minimum width that could cause gaps */
    min-width: auto;
}

.nmp-marquee-item:first-child {
    /* Remove left padding from first item to start immediately */
    padding-left: 0;
}

.nmp-marquee-item:hover {
    transform: scale(1.02);
}

/* Enhanced color variations for different news items */
.nmp-marquee-item:nth-child(10n+1) .nmp-news-link {
    color: #dc2626 !important; /* Red */
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

.nmp-marquee-item:nth-child(10n+2) .nmp-news-link {
    color: #2563eb !important; /* Blue */
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.nmp-marquee-item:nth-child(10n+3) .nmp-news-link {
    color: #059669 !important; /* Green */
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

.nmp-marquee-item:nth-child(10n+4) .nmp-news-link {
    color: #7c3aed !important; /* Purple */
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

.nmp-marquee-item:nth-child(10n+5) .nmp-news-link {
    color: #ea580c !important; /* Orange */
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(234, 88, 12, 0.4);
}

.nmp-marquee-item:nth-child(10n+6) .nmp-news-link {
    color: #0891b2 !important; /* Cyan */
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(8, 145, 178, 0.4);
}

.nmp-marquee-item:nth-child(10n+7) .nmp-news-link {
    color: #e11d48 !important; /* Pink */
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(225, 29, 72, 0.4);
}

.nmp-marquee-item:nth-child(10n+8) .nmp-news-link {
    color: #f59e0b !important; /* Amber */
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.nmp-marquee-item:nth-child(10n+9) .nmp-news-link {
    color: #8b5cf6 !important; /* Violet */
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.nmp-marquee-item:nth-child(10n+10) .nmp-news-link {
    color: #06b6d4 !important; /* Sky */
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

/* Enhanced hover effects for colorful titles */
.nmp-marquee-item:nth-child(10n+1) .nmp-news-link:hover {
    text-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
    transform: scale(1.05);
}

.nmp-marquee-item:nth-child(10n+2) .nmp-news-link:hover {
    text-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
    transform: scale(1.05);
}

.nmp-marquee-item:nth-child(10n+3) .nmp-news-link:hover {
    text-shadow: 0 0 12px rgba(5, 150, 105, 0.5);
    transform: scale(1.05);
}

.nmp-marquee-item:nth-child(10n+4) .nmp-news-link:hover {
    text-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
    transform: scale(1.05);
}

.nmp-marquee-item:nth-child(10n+5) .nmp-news-link:hover {
    text-shadow: 0 0 12px rgba(234, 88, 12, 0.5);
    transform: scale(1.05);
}

.nmp-marquee-item:nth-child(10n+6) .nmp-news-link:hover {
    text-shadow: 0 0 12px rgba(8, 145, 178, 0.5);
    transform: scale(1.05);
}

.nmp-marquee-item:nth-child(10n+7) .nmp-news-link:hover {
    text-shadow: 0 0 12px rgba(225, 29, 72, 0.5);
    transform: scale(1.05);
}

.nmp-marquee-item:nth-child(10n+8) .nmp-news-link:hover {
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    transform: scale(1.05);
}

.nmp-marquee-item:nth-child(10n+9) .nmp-news-link:hover {
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.nmp-marquee-item:nth-child(10n+10) .nmp-news-link:hover {
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
    transform: scale(1.05);
}

.nmp-news-link {
    text-decoration: none;
    color: inherit;
    transition: var(--nmp-transition-fast);
    position: relative;
}

.nmp-news-link:hover {
    color: var(--nmp-primary-color);
}

.nmp-news-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nmp-primary-color);
    transition: width 0.3s ease;
}

.nmp-news-link:hover::after {
    width: 100%;
}

.nmp-category-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
    opacity: 0.8;
}

.nmp-news-separator {
    margin: 0 1rem;
    color: var(--nmp-text-muted);
    font-weight: 300;
}

.nmp-news-date {
    font-size: 0.85rem;
    color: var(--nmp-text-secondary);
    margin-left: 0.75rem;
    opacity: 0.8;
}

/* Marquee "View More" button */
.nmp-marquee-more {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, transparent 0%, var(--nmp-bg-primary) 30%);
    padding: 0 1.5rem;
    z-index: 10;
}

/* Additional marquee states */
.nmp-marquee-container.nmp-marquee-loaded {
    opacity: 1;
}

.nmp-marquee-container.nmp-no-animation .nmp-marquee-track {
    animation: none !important;
    transform: none !important;
}

.nmp-marquee-container.nmp-reduced-motion .nmp-marquee-track,
.nmp-marquee-container.nmp-reduced-motion .nmp-marquee-clone {
    animation: none !important;
    transform: none !important;
}

.nmp-marquee-clone {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
}

.nmp-view-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--nmp-primary-color);
    color: var(--nmp-text-light);
    text-decoration: none;
    border-radius: var(--nmp-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--nmp-transition);
    box-shadow: var(--nmp-shadow-sm);
    border: none;
    cursor: pointer;
}

.nmp-view-more-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: var(--nmp-shadow-md);
    color: var(--nmp-text-light);
}

.nmp-view-more-btn:active {
    transform: translateY(0);
}

/* Button interaction states */
.nmp-button-pressed {
    transform: scale(0.95) !important;
}

.nmp-view-more-btn.clicked {
    transform: scale(0.98);
    box-shadow: var(--nmp-shadow-sm);
}

.nmp-item-hover {
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--nmp-radius-sm);
}

/* Marquee animations - updated to start immediately */
@keyframes nmpMarqueeLeft {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes nmpMarqueeRight {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ==========================================================================
   NEWS ARCHIVE STYLES
   ========================================================================== */

.nmp-news-archive {
    margin: 2rem 0;
}

.nmp-archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.nmp-archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nmp-text-primary);
    margin: 0 0 1rem 0;
    font-family: var(--nmp-font-sans);
    line-height: 1.2;
}

.nmp-archive-description {
    font-size: 1.125rem;
    color: var(--nmp-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* News Grid */
.nmp-news-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* News Card */
.nmp-news-card {
    background: transparent;
    border-radius: var(--nmp-radius-xl);
    overflow: hidden;
    box-shadow: var(--nmp-shadow-md);
    transition: var(--nmp-transition);
    position: relative;
    height: fit-content;
}

.nmp-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nmp-shadow-xl);
}

.nmp-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.nmp-card-image a {
    display: block;
    height: 100%;
}

.nmp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--nmp-transition);
}

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

.nmp-card-categories {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nmp-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--nmp-primary-color);
    color: var(--nmp-text-light);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--nmp-radius-md);
    text-decoration: none;
    transition: var(--nmp-transition-fast);
    backdrop-filter: blur(8px);
    box-shadow: var(--nmp-shadow-sm);
}

.nmp-category-badge:hover {
    transform: scale(1.05);
    color: var(--nmp-text-light);
}

.nmp-card-content {
    padding: 1.5rem;
}

.nmp-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.nmp-card-title a {
    color: var(--nmp-text-primary);
    text-decoration: none;
    transition: var(--nmp-transition-fast);
}

.nmp-card-title a:hover {
    color: var(--nmp-primary-color);
}

.nmp-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--nmp-text-secondary);
}

.nmp-card-date {
    display: flex;
    align-items: center;
}

.nmp-card-date::before {
    content: '📅';
    margin-right: 0.5rem;
}

.nmp-card-author {
    display: flex;
    align-items: center;
}

.nmp-card-author::before {
    content: '👤';
    margin-right: 0.5rem;
}

.nmp-card-excerpt {
    color: var(--nmp-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.nmp-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--nmp-primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--nmp-transition-fast);
}

.nmp-read-more:hover {
    color: #1d4ed8;
    transform: translateX(2px);
}

.nmp-read-more-arrow {
    margin-left: 0.5rem;
    transition: var(--nmp-transition-fast);
}

.nmp-read-more:hover .nmp-read-more-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   PAGINATION STYLES
   ========================================================================== */

.nmp-archive-pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.nmp-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.25rem;
    padding: 0 0.75rem;
    background: transparent;
    color: var(--nmp-text-primary);
    text-decoration: none;
    border: 1px solid var(--nmp-border-color);
    border-radius: var(--nmp-radius-md);
    font-weight: 500;
    transition: var(--nmp-transition-fast);
}

.nmp-archive-pagination .page-numbers:hover,
.nmp-archive-pagination .page-numbers.current {
    background: var(--nmp-primary-color);
    color: var(--nmp-text-light);
    border-color: var(--nmp-primary-color);
    transform: translateY(-1px);
}

.nmp-archive-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.nmp-archive-pagination .page-numbers.dots:hover {
    background: transparent;
    color: var(--nmp-text-primary);
    transform: none;
}

/* Load More Button */
.nmp-load-more-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.nmp-load-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: var(--nmp-primary-color);
    color: var(--nmp-text-light);
    border: none;
    border-radius: var(--nmp-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--nmp-transition);
    box-shadow: var(--nmp-shadow-md);
}

.nmp-load-more-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--nmp-shadow-lg);
}

.nmp-load-more-btn:active {
    transform: translateY(0);
}

.nmp-load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.nmp-load-more-btn.loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   SIDEBAR STYLES
   ========================================================================== */

.nmp-archive-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.nmp-archive-sidebar {
    position: sticky;
    top: 2rem;
}

.nmp-widget {
    background: transparent;
    border-radius: var(--nmp-radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--nmp-shadow-md);
    border: 1px solid var(--nmp-border-color);
}

.nmp-widget-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--nmp-text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--nmp-border-light);
}

.nmp-category-filter .nmp-category-list,
.nmp-recent-list,
.nmp-popular-categories-widget .nmp-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nmp-category-filter .nmp-category-list li,
.nmp-recent-item,
.nmp-category-item {
    margin-bottom: 0.75rem;
}

.nmp-category-filter .nmp-category-list a,
.nmp-recent-item a,
.nmp-category-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    color: var(--nmp-text-primary);
    text-decoration: none;
    border-radius: var(--nmp-radius-md);
    transition: var(--nmp-transition-fast);
    font-weight: 500;
}

.nmp-category-filter .nmp-category-list a:hover,
.nmp-recent-item a:hover,
.nmp-category-item a:hover,
.nmp-category-filter .nmp-category-list a.active {
    background: var(--nmp-bg-muted);
    color: var(--nmp-primary-color);
    transform: translateX(4px);
}

.nmp-category-count {
    font-size: 0.75rem;
    color: var(--nmp-text-muted);
    background: var(--nmp-bg-muted);
    padding: 0.125rem 0.5rem;
    border-radius: var(--nmp-radius-sm);
}

.nmp-recent-date {
    font-size: 0.75rem;
    color: var(--nmp-text-muted);
    margin-top: 0.25rem;
}

/* Search Widget */
.nmp-search-form {
    position: relative;
}

.nmp-search-input-group {
    position: relative;
    display: flex;
}

.nmp-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 1px solid var(--nmp-border-color);
    border-radius: var(--nmp-radius-lg);
    font-size: 0.875rem;
    transition: var(--nmp-transition-fast);
    background: transparent;
}

.nmp-search-input:focus {
    outline: none;
    border-color: var(--nmp-primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.nmp-search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--nmp-primary-color);
    color: var(--nmp-text-light);
    border: none;
    border-radius: var(--nmp-radius-md);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--nmp-transition-fast);
}

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

/* ==========================================================================
   SINGLE NEWS PAGE STYLES
   ========================================================================== */

.nmp-single-page {
    margin: 2rem 0;
}

.nmp-single-news {
    max-width: 800px;
    margin: 0 auto;
}

.nmp-single-header {
    text-align: center;
    margin-bottom: 2rem;
}

.nmp-single-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.nmp-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--nmp-text-primary);
    margin: 0 0 1.5rem 0;
}

.nmp-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--nmp-text-secondary);
    flex-wrap: wrap;
}

.nmp-single-featured-image {
    margin: 2rem 0;
    border-radius: var(--nmp-radius-xl);
    overflow: hidden;
    box-shadow: var(--nmp-shadow-lg);
}

.nmp-single-img {
    width: 100%;
    height: auto;
    display: block;
}

.nmp-image-caption {
    padding: 1rem;
    background: var(--nmp-bg-muted);
    font-size: 0.875rem;
    color: var(--nmp-text-secondary);
    text-align: center;
    font-style: italic;
}

.nmp-single-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--nmp-text-primary);
    margin: 2rem 0;
}

.nmp-single-content p {
    margin-bottom: 1.5rem;
}

.nmp-single-content h2,
.nmp-single-content h3,
.nmp-single-content h4 {
    margin: 2rem 0 1rem 0;
    color: var(--nmp-text-primary);
    font-weight: 600;
}

.nmp-single-content h2 {
    font-size: 1.875rem;
}

.nmp-single-content h3 {
    font-size: 1.5rem;
}

.nmp-single-content h4 {
    font-size: 1.25rem;
}

.nmp-single-footer {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--nmp-border-color);
}

.nmp-single-tags {
    margin-bottom: 2rem;
}

.nmp-tags-label {
    font-weight: 600;
    color: var(--nmp-text-primary);
    margin-right: 1rem;
}

.nmp-tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    background: var(--nmp-bg-muted);
    color: var(--nmp-text-secondary);
    text-decoration: none;
    border-radius: var(--nmp-radius-md);
    font-size: 0.875rem;
    transition: var(--nmp-transition-fast);
}

.nmp-tag-link:hover {
    background: var(--nmp-primary-color);
    color: var(--nmp-text-light);
}

/* Social Share */
.nmp-social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nmp-share-label {
    font-weight: 600;
    color: var(--nmp-text-primary);
}

.nmp-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.nmp-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--nmp-radius-md);
    text-decoration: none;
    transition: var(--nmp-transition-fast);
    border: none;
    cursor: pointer;
}

.nmp-share-twitter {
    background: #1da1f2;
    color: white;
}

.nmp-share-facebook {
    background: #1877f2;
    color: white;
}

.nmp-share-linkedin {
    background: #0a66c2;
    color: white;
}

.nmp-share-copy {
    background: var(--nmp-bg-muted);
    color: var(--nmp-text-primary);
}

.nmp-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--nmp-shadow-md);
}

/* Related News */
.nmp-related-news {
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--nmp-border-color);
}

.nmp-related-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--nmp-text-primary);
    margin: 0 0 2rem 0;
    text-align: center;
}

.nmp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.nmp-breadcrumbs {
    margin: 1rem 0 2rem 0;
}

.nmp-breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.nmp-breadcrumb-item {
    display: flex;
    align-items: center;
}

.nmp-breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.75rem;
    color: var(--nmp-text-muted);
}

.nmp-breadcrumb-item a {
    color: var(--nmp-text-secondary);
    text-decoration: none;
    transition: var(--nmp-transition-fast);
}

.nmp-breadcrumb-item a:hover {
    color: var(--nmp-primary-color);
}

.nmp-breadcrumb-item.active {
    color: var(--nmp-text-primary);
    font-weight: 500;
}

/* ==========================================================================
   MESSAGES AND NOTIFICATIONS
   ========================================================================== */

.nmp-message {
    padding: 1rem 1.5rem;
    border-radius: var(--nmp-radius-lg);
    margin: 1rem 0;
    font-weight: 500;
    position: relative;
    border-left: 4px solid;
}

.nmp-message-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left-color: var(--nmp-success-color);
}

.nmp-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left-color: var(--nmp-error-color);
}

.nmp-message-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left-color: var(--nmp-warning-color);
}

.nmp-message-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-left-color: var(--nmp-info-color);
}

/* Empty states */
.nmp-marquee-empty,
.nmp-archive-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--nmp-text-secondary);
}

.nmp-archive-empty h3 {
    font-size: 1.5rem;
    color: var(--nmp-text-primary);
    margin: 0 0 1rem 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet styles */
@media (max-width: 1024px) {
    .nmp-container {
        padding: 0 1.5rem;
    }
    
    .nmp-archive-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nmp-archive-sidebar {
        position: static;
        order: -1;
    }
    
    .nmp-single-title {
        font-size: 2rem;
    }
    
    .nmp-archive-title {
        font-size: 2rem;
    }
    
    .nmp-marquee-item {
        padding: 0 1.5rem;
        font-size: 0.9rem;
    }
    
    .nmp-news-separator {
        margin: 0 0.75rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .nmp-container {
        padding: 0 1rem;
    }
    
    .nmp-news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nmp-single-title {
        font-size: 1.75rem;
    }
    
    .nmp-archive-title {
        font-size: 1.75rem;
    }
    
    .nmp-single-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nmp-single-categories {
        justify-content: center;
    }
    
    .nmp-marquee-more {
        position: static;
        background: var(--nmp-bg-secondary);
        padding: 1rem;
        justify-content: center;
        border-top: 1px solid var(--nmp-border-color);
    }
    
    .nmp-marquee-container {
        flex-direction: column;
    }
    
    .nmp-marquee-item {
        padding: 0 1rem;
        font-size: 0.85rem;
    }
    
    .nmp-breadcrumb-list {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .nmp-social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .nmp-related-grid {
        grid-template-columns: 1fr;
    }
    
    .nmp-archive-pagination .page-numbers {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .nmp-widget {
        padding: 1rem;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .nmp-single-title {
        font-size: 1.5rem;
    }
    
    .nmp-archive-title {
        font-size: 1.5rem;
    }
    
    .nmp-card-content {
        padding: 1rem;
    }
    
    .nmp-single-content {
        font-size: 1rem;
    }
    
    .nmp-marquee-item {
        font-size: 0.8rem;
    }
    
    .nmp-view-more-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ==========================================================================
   ACCESSIBILITY AND MOTION
   ========================================================================== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .nmp-marquee-track {
        animation: none !important;
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --nmp-border-color: #000000;
        --nmp-text-secondary: #000000;
        --nmp-bg-muted: #ffffff;
    }
}

/* Focus styles for accessibility */
.nmp-news-link:focus,
.nmp-view-more-btn:focus,
.nmp-load-more-btn:focus,
.nmp-search-input:focus,
.nmp-search-button:focus,
.nmp-share-btn:focus {
    outline: 2px solid var(--nmp-primary-color);
    outline-offset: 2px;
}

/* Screen reader only text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .nmp-marquee-container,
    .nmp-social-share,
    .nmp-load-more-btn,
    .nmp-archive-pagination {
        display: none !important;
    }
    
    .nmp-news-card,
    .nmp-single-news {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .nmp-news-grid {
        grid-template-columns: 1fr !important;
    }
}

