/* BL News CMS - Frontend Styles */
/* Inspiracja: The Daily Post */

:root {
    --primary-color: #0B132B;
    --secondary-color: #34495e;
    --accent-color: #2EAAE6;
    --text-color: #0B132B;
    --text-light: #6c757d;
    --border-color: #e1e8ed;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --placeholder-bg: #e9ecef;
}

/* Dark mode colors */
body.dark-mode {
    --primary-color: #F7F5FA;
    --text-color: #F7F5FA;
    --bg-white: #1a1d2e;
    --bg-light: #0B132B;
    --border-color: #2a2e45;
    --placeholder-bg: #1f2338;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    font-weight: 700;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 2000;
    transition: background-color 0.3s ease;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 30px;
}

.site-logo-left {
    flex-shrink: 0;
    margin-left: 0px;
}

.site-logo-left a {
    text-decoration: none;
    display: block;
}

.logo-image {
    height: 52px;
    width: auto;
    transition: opacity 0.3s;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block;
}

/* Responsive - na mobile bez przesunięcia */
@media (max-width: 768px) {
    .site-logo-left {
        margin-left: 0;
    }
    
    .logo-image {
        height: 40px;
    }
}

.header-meta-center {
    flex: 1;
    text-align: center;
}

.date-weather {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.date-weather .separator {
    color: var(--border-color);
}

.temp {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
}

.weather-loader {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

#weather[data-loading="false"] .weather-loader {
    display: none;
}

.article-types {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.type-btn {
    padding: 8px 16px;
    background: var(--bg-light);
    border: none;
    border-radius: 6px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.type-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.type-btn.active {
    background: var(--accent-color);
    color: white;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: relative;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle svg {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dark-mode-toggle .icon-moon {
    display: none;
    opacity: 0;
}

.dark-mode-toggle .icon-sun {
    display: block;
    opacity: 1;
}

/* Dark mode active state */
body.dark-mode .dark-mode-toggle .icon-moon {
    display: block;
    opacity: 1;
}

body.dark-mode .dark-mode-toggle .icon-sun {
    display: none;
    opacity: 0;
}

.dark-mode-toggle.dark-active {
    background: var(--accent-color);
    color: white;
}


/* Category Navigation - COMPLETE FIX */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 12px 0;
    overflow: visible; /* FIXED: było overflow-x: auto */
    white-space: nowrap;
    position: relative;
    z-index: 100;
}

.category-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.category-nav a:hover,
.category-nav a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.category-nav-item {
    position: relative;
    display: inline-block;
}

.category-nav-item.has-submenu > a::after {
    content: '▾';
    margin-left: 4px;
    font-size: 10px;
    opacity: 0.7;
}



/* Submenu dropdown - FORCED FIX */
.submenu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important; /* HARDCODED biały */
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important; /* Ciemniejszy cień */
    min-width: 200px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    padding: 4px 0 !important;
    margin-top: 15px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999 !important;
}

/* Dark mode - HARDCODED */
body.dark-mode .submenu {
    background: #1a1d2e !important; /* Ciemny niebieski */
    border-color: #2a2e45 !important;
}

.category-nav-item:hover .submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.submenu a {
    display: block !important;
    padding: 8px 20px !important;
    color: var(--text-color) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
    border-bottom: none !important;
    background: transparent !important;
}

.submenu a:hover {
    background: var(--bg-light) !important;
    border-left-color: var(--accent-color) !important;
    padding-left: 23px !important;
}

.submenu a.active {
    background: var(--bg-light) !important;
    border-left-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    font-weight: 600 !important;
}









/* Mobile submenu */
.mobile-submenu {
    padding-left: 20px;
    margin-top: 5px;
    border-left: 2px solid var(--border-color);
    margin-left: 10px;
}

.mobile-submenu a {
    padding: 8px 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.category-nav .category-type-label {
    background: #1A8DD3;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    border-bottom: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.category-nav .category-type-label:hover {
    background: #1578b8;
    color: white;
    border-bottom: none;
}

.category-nav .category-type-label.active {
    background: #1A8DD3;
    color: white;
    border-bottom: none;
}




/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    padding: 30px 0;
}

/* Hero Article (Center) */
.hero-article {
    position: relative;
}

.hero-category-badge {
    display: inline-block;
    background: #2EAAE6;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

body.dark-mode .hero-category-badge {
    color: #0B132B;
}

.hero-article h2 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero-author-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    color: var(--text-light);
}

.hero-author-date .separator {
    color: var(--text-light);
}

.publish-datetime {
    color: var(--text-light);
}

.article-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.article-meta a {
    color: var(--accent-color);
    text-decoration: none;
}

.hero-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--placeholder-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-related {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 0;
}

.related-item a {
    text-decoration: none;
    display: block;
}

.related-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px 0;
    line-height: 1.3;
    transition: color 0.3s;
}

.related-item a:hover h4 {
    color: var(--accent-color);
}

.related-date {
    font-size: 12px;
    color: var(--text-light);
}

.article-lead {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

body.dark-mode .article-lead {
    color: #B8C5D0; /* Jasny niebieskoszary */
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 14px;
}

.video-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    padding: 8px 15px;
    border-radius: 6px;
    color: white;
    font-size: 12px;
}

/* Live Updates (Left Sidebar) */
.live-updates {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
}

.live-updates h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.update-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

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

.update-bullet {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
    position: relative;
}

/* Animacja pulsowania dla pierwszej kropki */
.update-item.first-item .update-bullet {
    animation: pulse-dot 2s ease-in-out infinite;
}

.update-item.first-item .update-bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
    opacity: 0;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.update-content {
    flex: 1;
}

.update-time {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-content a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    font-weight: 500;
}

.update-content a:hover {
    color: var(--accent-color);
}

/* Latest News (Right Sidebar) */
.latest-news h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Quote Box "W PUNKT!" */
.quote-box {
    background: #CAF0F8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    transition: background-color 0.3s;
    position: relative;
    overflow: hidden;
}

/* Animowana plama w tle */
.quote-box::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    top: -50px;
    left: -50px;
    animation: float-blob 15s ease-in-out infinite;
    pointer-events: none;
    filter: blur(40px);
}

.quote-box::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    bottom: -40px;
    right: -40px;
    animation: float-blob 12s ease-in-out infinite reverse;
    pointer-events: none;
    filter: blur(35px);
}

@keyframes float-blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -20px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

body.dark-mode .quote-box {
    background: #0096C7;
}

body.dark-mode .quote-box::before {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

body.dark-mode .quote-box::after {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

.quote-box-title {
    font-size: 20px;
    font-weight: 900;
    color: #023E8A;
    text-align: center;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

body.dark-mode .quote-box-title {
    color: #CAF0F8;
}

.quote-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.quote-author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    align-self: center;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 13px;
    line-height: 1.6;
    font-style: italic;
    color: #023E8A;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    text-align: center;
    font-weight: 500;
}

body.dark-mode .quote-text {
    color: #F0F0F0;
}

.quote-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.quote-author strong {
    font-size: 14px;
    font-weight: 700;
    color: #023E8A;
}

body.dark-mode .quote-author strong {
    color: #CAF0F8;
}

.quote-position {
    font-size: 12px;
    color: #0077B6;
    text-align: center;
}

body.dark-mode .quote-position {
    color: #90E0EF;
}

.quote-source {
    font-size: 11px;
    color: #0077B6;
    text-align: center;
    font-style: italic;
}

body.dark-mode .quote-source {
    color: #90E0EF;
}

.news-item {
    margin-bottom: 20px;
}

.news-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--placeholder-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2EAAE6;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    transition: color 0.3s;
}

body.dark-mode .category-badge {
    color: #0B132B;
}

.news-item h4 {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 5px;
}

.news-item h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.news-item h4 a:hover {
    color: var(--accent-color);
}

.news-item .article-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* Dictionary Section */




/* Dictionary Section - DOPASOWANY DO LIVE-UPDATES */
.dictionary-header {
    margin-bottom: 20px;
}

.dictionary-header .dictionary-title {
    margin: 0;
    font-size: 18px !important; /* ZMNIEJSZONE: było 24px - teraz jak .live-updates h3 */
    font-weight: 700 !important;
    color: var(--text-color) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
}

.dictionary-link-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: var(--text-light) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    opacity: 0.7 !important;
    line-height: 1 !important;
}

.dictionary-link-inline:hover {
    color: #0066cc !important;
    opacity: 1 !important;
}

.dictionary-link-inline svg {
    width: 14px !important;
    height: 14px !important;
    transition: transform 0.3s ease !important;
    opacity: 0.6 !important;
}

.dictionary-link-inline:hover svg {
    transform: translateX(3px) !important;
    opacity: 1 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .dictionary-header .dictionary-title {
        font-size: 20px !important; /* Na mobile większy */
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    .dictionary-link-inline {
        font-size: 12px !important;
    }
}




/* Mobile Dictionary - update existing styles */
.mobile-dictionary .dictionary-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border: 1px solid #0066cc;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: transparent;
    margin-top: 15px;
}

.mobile-dictionary .dictionary-view-all:hover {
    background: #0066cc;
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dictionary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dictionary-all-link {
        font-size: 14px;
        padding: 8px 14px;
    }
}


.dictionary-section {
    margin: 10px 0;
}

.dictionary-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: left;
}

.dictionary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: #2EAAE6;
    border-radius: 12px;
    padding: 15px;
    transition: background-color 0.3s;
}

body.dark-mode .dictionary-grid {
    background: #1578b8;
}

.dictionary-item {
    background: transparent;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
}

.dictionary-item:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.dictionary-item h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.dictionary-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.dictionary-item .read-more {
    display: block;
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.dictionary-item:hover .read-more {
    opacity: 1;
    transform: translateY(0);
}

/* Featured Section */
.featured-section {
    margin-top: 40px;
    padding-top: 0;
}

.featured-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 700;
}

.featured-grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.featured-column {
    display: flex;
    flex-direction: column;
}

.featured-item-main {
    margin-bottom: 20px;
}

.featured-item-main .news-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--placeholder-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.featured-item-main h4 {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-item-main h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.featured-item-main h4 a:hover {
    color: var(--accent-color);
}

.featured-item-main .article-meta {
    font-size: 12px;
    color: var(--text-light);
}

.featured-related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-related-item a {
    text-decoration: none;
    display: block;
    padding: 8px 0;
}

.featured-related-item h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 6px 0;
    line-height: 1.3;
    transition: color 0.3s;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-related-item a:hover h5 {
    color: var(--accent-color);
}

.featured-related-item .related-date {
    font-size: 11px;
    color: var(--text-light);
}

/* Pusta kolumna */
.featured-empty-column {
    padding: 20px;
    text-align: center;
    background: var(--bg-light);
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-message {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

body.dark-mode .site-footer {
    background: #0B132B;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.dark-mode-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-align: left;
    font-family: inherit;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-mode-btn:hover {
    color: white;
}

.dark-mode-btn i {
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.dark-mode-btn .icon-moon {
    display: inline-block;
}

.dark-mode-btn .icon-sun {
    display: none;
}

body.dark-mode .dark-mode-btn .icon-moon {
    display: none;
}

body.dark-mode .dark-mode-btn .icon-sun {
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .featured-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dictionary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-nav {
        justify-content: flex-start;
    }
    
    .hero-article h2 {
        font-size: 28px;
    }
    
    .hero-related {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-grid-four {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .dictionary-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Article Page */
.single-article-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 30px;
}

.single-article-main {
    max-width: 800px;
}

.article-featured-image,
.article-abstract,
.article-body,
.article-tags,
.article-related {
    margin-left: 50px;
}

/* Reset margin na tablet/mobile */
@media (max-width: 1024px) {
    .article-featured-image,
    .article-abstract,
    .article-body,
    .article-tags,
    .article-related {
        margin-left: 0;
    }
}

.article-category-badge {
    display: inline-block;
    background: #2EAAE6;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    transition: color 0.3s;
}

body.dark-mode .article-category-badge {
    color: #0B132B;
}

.article-title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-color);
    margin: 20px 0 20px 0;
}

.article-author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.author-avatar-single {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name-single {
    font-weight: 600;
    color: var(--text-color);
}

.article-author-meta .separator {
    color: var(--text-light);
}

.publish-datetime-single {
    color: var(--text-light);
}

.article-featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--placeholder-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-abstract {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}
.article-abstract ul,
.article-abstract ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-abstract li {
    margin-bottom: 8px;
}


.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
}

.article-body h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: var(--text-color);
}

.article-body h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0 15px 0;
    color: var(--text-color);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: var(--accent-color);
    text-decoration: underline;
}

.article-body a:hover {
    text-decoration: none;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 00px 0;
}

.article-body blockquote,
.article-body cite {
    font-style: italic;
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 4px solid var(--accent-color);
    background: var(--bg-light);
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.share-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #2EAAE6;
    color: #2EAAE6;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    background: #2EAAE6;
    color: white;
    transform: translateY(-2px);
}

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

/* Article Tags - NOWY STYL */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.article-tag {
    display: inline-block;
    background: transparent;
    border: 1.5px solid #2FAAE6;
    color: #2FAAE6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-tag:hover {
    background: rgba(47, 170, 230, 0.3);
    color: #2FAAE6;
    border-color: #2FAAE6;
    transform: translateY(-2px);
}

body.dark-mode .article-tag {
    border-color: #2FAAE6;
    color: #2FAAE6;
    background: transparent;
}

body.dark-mode .article-tag:hover {
    background: rgba(47, 170, 230, 0.3);
}

/* Related Articles */
.article-related {
    margin-top: 40px;
}

.article-related h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-article-item a {
    text-decoration: none;
    display: block;
}

.related-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--placeholder-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    transition: color 0.3s;
}

.related-article-item a:hover h3 {
    color: var(--accent-color);
}

/* Right Sidebar - Single Page */
.single-sidebar {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.single-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Responsive - Single Page */
@media (max-width: 1024px) {
    .single-article-container {
        grid-template-columns: 1fr;
    }
    
    .single-sidebar {
        position: static;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-body {
        font-size: 16px;
    }
}

/* Category Page */
.category-page-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 30px;
}

.category-main {
    max-width: 1000px;
}

/* Category Header */
.category-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
}

.category-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 15px 0;
}

.category-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
    margin-left: 50px;
}

/* Filters */
.category-filters {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-group select:hover {
    border-color: var(--accent-color);
}

.reset-filters {
    padding: 8px 16px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.reset-filters:hover {
    background: #1578b8;
}

/* Articles Grid - 3 columns */
.category-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.category-article-item a {
    text-decoration: none;
    display: block;
}

.category-article-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--placeholder-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.category-article-item:hover .category-article-image img {
    transform: scale(1.05);
}

.category-article-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0 0 8px 0;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.category-article-item:hover h3 {
    color: var(--accent-color);
}

.article-datetime {
    font-size: 12px;
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination-btn,
.pagination-number {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-number:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination-number.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination-ellipsis {
    padding: 10px 8px;
    color: var(--text-light);
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-articles p {
    font-size: 18px;
}

/* Category Sidebar - Same as Single */
.category-sidebar {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.category-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Responsive - Category Page */
@media (max-width: 1024px) {
    .category-page-container {
        grid-template-columns: 1fr;
    }
    
    .category-sidebar {
        position: static;
    }
    
    .category-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .category-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header h1 {
        font-size: 28px;
    }
    
    .category-description {
        margin-left: 0;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Odnośnik w tytule hero - bez podkreślenia, z efektem hover */
.hero-article h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.hero-article h2 a:hover {
    color: #0066cc;
}

/* Odnośnik na zdjęciu hero */
.hero-image-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.hero-image-link .hero-image {
    transition: opacity 0.3s ease;
}

.hero-image-link:hover .hero-image {
    opacity: 0.9;
}

/* Zwiększenie długości teasera */
.hero-article .article-lead {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-top: 15px;
}

/* Zmniejszenie odstępów przed sekcją słownika - DESKTOP */
@media (min-width: 769px) {
    .dictionary-section.desktop-only {
        margin-top: 10px !important;
        padding-top: 10px !important;
    }
    
    /* Zmniejszenie dolnego marginesu głównej treści */
    .main-content {
        margin-bottom: 10px !important; /* zmniejszone z domyślnego ~60px */
    }
}

/* Zmniejszenie odstępów przed sekcją słownika - MOBILE */
@media (max-width: 768px) {
    .mobile-latest-four {
        margin-bottom: 30px !important; /* zmniejszone z domyślnego ~50px */
    }
    
    .dictionary-section.mobile-dictionary {
        margin-top: 30px !important; /* zmniejszone z domyślnego ~50px */
        padding-top: 20px !important;
    }
}

/* Dark mode - zachowanie czytelności odnośników */
@media (prefers-color-scheme: dark) {
    .hero-article h2 a:hover {
        color: #4d9fff;
    }
}



/* ========================================
   MOBILE STYLES - Dodaj na końcu frontend-style.css
   ======================================== */

/* ========================================
   HAMBURGER MENU - TYLKO MOBILE
   Dodaj na końcu frontend-style.css
   ======================================== */

/* Hamburger button - ukryty na desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color);
    margin-right: 10px;
}

/* Mobile dark mode toggle - ukryty na desktop */
.mobile-dark-mode-toggle {
    display: none;
    background: var(--bg-light);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Side Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-drawer.active {
    left: 0;
}

/* Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-color);
}

/* Menu Content */
.mobile-menu-content {
    padding: 10px 0;
}

.mobile-menu-section {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.mobile-menu-section:last-child {
    border-bottom: none;
}

.mobile-menu-section h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin: 0 0 10px 0;
    padding: 0 20px;
}

.mobile-menu-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-menu-item:hover {
    background: var(--bg-light);
}

.mobile-menu-item.active {
    background: var(--accent-color);
    color: white;
}

/* ========================================
   MOBILE BREAKPOINT - ≤768px
   ======================================== */

@media (max-width: 768px) {
    /* Pokaż hamburger button */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Pokaż mobile dark mode toggle */
    .mobile-dark-mode-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-dark-mode-toggle:hover {
        background: var(--secondary-color);
        color: white;
    }
    
    .mobile-dark-mode-toggle .icon-moon {
        display: none;
    }
    
    .mobile-dark-mode-toggle .icon-sun {
        display: block;
    }
    
    body.dark-mode .mobile-dark-mode-toggle .icon-moon {
        display: block;
    }
    
    body.dark-mode .mobile-dark-mode-toggle .icon-sun {
        display: none;
    }
    
    /* Ukryj desktop elementy */
    .header-meta-center,
    .article-types,
    .category-nav {
        display: none !important;
    }
    
    /* Dostosuj header top */
    .header-top {
        padding: 12px 0;
        gap: 10px;
    }
    
    /* Logo bez marginesu */
    .site-logo-left {
        flex: 1;
        margin-left: 0 !important;
    }
    
    /* Zapobiegaj scroll na body gdy menu otwarte */
    body.menu-open {
        overflow: hidden;
    }
}

/* ========================================
   BARDZO MAŁE EKRANY - ≤400px
   ======================================== */

@media (max-width: 400px) {
    .mobile-menu-drawer {
        width: 100%;
        left: -100%;
    }
}




/* Klasy do ukrywania/pokazywania elementów */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

/* ========================================
   4 NAJNOWSZE ARTYKUŁY - MOBILE
   ======================================== */

.mobile-latest-four {
    margin: 30px 0;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.latest-four-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.latest-four-item a {
    text-decoration: none;
    display: block;
}

.latest-four-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--placeholder-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.latest-four-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-four-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0 0 6px 0;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.latest-four-item a:hover h3 {
    color: var(--accent-color);
}

.latest-four-item .article-meta {
    font-size: 11px;
    color: var(--text-light);
}

/* ========================================
   SŁOWNIK - MOBILE (jedno hasło)
   ======================================== */

.mobile-dictionary {
    margin: 40px 0;
}

.dictionary-single-container {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.dictionary-single-box {
    background: #2EAAE6;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

body.dark-mode .dictionary-single-box {
    background: #1578b8;
}

/* Animowana plama w tle - tak jak w quote-box */
.dictionary-single-box::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    top: -40px;
    right: -40px;
    animation: float-blob 15s ease-in-out infinite;
    pointer-events: none;
    filter: blur(40px);
}

.dictionary-single-content {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.dictionary-single-box h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.dictionary-single-box p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.dictionary-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #2EAAE6;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.dictionary-view-all:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

.dictionary-view-all svg {
    transition: transform 0.3s ease;
}

.dictionary-view-all:hover svg {
    transform: translateX(3px);
}

/* ========================================
   POLECANE - MOBILE (jeden pod drugim)
   ======================================== */

.mobile-featured {
    margin: 40px 0;
}

.mobile-featured h2 {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.featured-mobile-stack {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.featured-mobile-group {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.featured-mobile-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.featured-mobile-group .featured-item-main {
    margin-bottom: 20px;
}

.featured-mobile-group .featured-item-main .news-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--placeholder-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.featured-mobile-group .featured-item-main .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-mobile-group .featured-item-main h4 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.featured-mobile-group .featured-item-main h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.featured-mobile-group .featured-item-main h4 a:hover {
    color: var(--accent-color);
}

.featured-mobile-group .featured-item-main .article-meta {
    font-size: 12px;
    color: var(--text-light);
}

.featured-mobile-group .featured-related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-mobile-group .featured-related-item a {
    text-decoration: none;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.featured-mobile-group .featured-related-item:last-child a {
    border-bottom: none;
}

.featured-mobile-group .featured-related-item h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 6px 0;
    line-height: 1.4;
    transition: color 0.3s;
}

.featured-mobile-group .featured-related-item a:hover h5 {
    color: var(--accent-color);
}

.featured-mobile-group .featured-related-item .related-date {
    font-size: 12px;
    color: var(--text-light);
}

/* ========================================
   GŁÓWNY LAYOUT - MOBILE OVERRIDE
   ======================================== */

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 20px 0;
    }
    
    .hero-article {
        padding: 0;
        width: 95%;
        margin: 0 auto;
    }
    
    .hero-article h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .hero-author-date {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .author-avatar {
        width: 20px;
        height: 20px;
    }
    
    .hero-image {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
    }
    
    .article-lead {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    /* Ukryj related articles pod hero na mobile */
    .hero-related {
        display: none;
    }
    
    /* Usuń marginesy sekcji na mobile */
    .dictionary-section {
        margin: 30px 0;
    }
    
    .featured-section {
        margin-top: 30px;
    }
}

/* ========================================
   BARDZO MAŁE EKRANY (< 400px)
   ======================================== */

@media (max-width: 400px) {
    .latest-four-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .latest-four-item h3 {
        font-size: 15px;
        min-height: auto;
    }
    
    .dictionary-single-box {
        padding: 20px;
    }
    
    .dictionary-single-box h3 {
        font-size: 18px;
    }
    
    .featured-mobile-group .featured-item-main h4 {
        font-size: 16px;
    }
}


/* ========================================
   NEWSLETTER
   ======================================== */

.article-newsletter-section {
    margin: 40px 0;
    width: 100%;
}

.article-newsletter-section .newsletter-hero-section {
    max-width: 100%;
    margin: 0;
}


/* =====================================================
   Article Views Badge Styling
   Wyświetlanie licznika odsłon z ikoną oka
   ===================================================== */

.article-views-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-secondary, #6c757d);
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-views-badge:hover {
    color: var(--text-primary, #1a1a1a);
}

.view-icon {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.article-views-badge:hover .view-icon {
    opacity: 1;
}

/* Separator między elementami meta */
.article-author-meta .separator {
    margin: 0 8px;
    color: var(--text-secondary, #6c757d);
    opacity: 0.5;
}

/* Responsywność - mobile */
@media (max-width: 768px) {
    .article-views-badge {
        font-size: 13px;
    }
    
    .view-icon {
        width: 14px;
        height: 14px;
    }
    
    .article-author-meta .separator {
        margin: 0 6px;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .article-views-badge {
        color: var(--text-secondary-dark, #b0b0b0);
    }
    
    .article-views-badge:hover {
        color: var(--text-primary-dark, #ffffff);
    }
    
    .article-author-meta .separator {
        color: var(--text-secondary-dark, #b0b0b0);
    }
}

/* Dodatkowa stylizacja dla bardziej widocznego badge */
.article-views-badge.highlighted {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 13px;
}

.article-views-badge.highlighted .view-icon {
    opacity: 1;
}

.article-views-badge.highlighted:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}


/* =====================================================
   Pay wall
   ===================================================== */

.article-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.article-member-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.article-member-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.article-category-badge {
    margin-bottom: 0; /* Usuń margin-bottom, bo teraz używamy .article-badges */
}


/* Member Paywall - ZAKTUALIZOWANY */
.member-paywall {
    position: relative;
    margin-top: 40px;
    margin-bottom: 30px; /* NOWE: Odstęp na dole */
    padding-top: 0;
}

.paywall-content {
    background: var(--bg-light);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(47, 170, 230, 0.15);
}

body.dark-mode .paywall-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(47, 170, 230, 0.25);
}

.paywall-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2FAAE6 0%, #168AAD 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.paywall-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.paywall-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.paywall-benefits {
    text-align: left;
    max-width: 450px;
    margin: 0 auto 30px;
}

.paywall-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paywall-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.paywall-benefits li svg {
    flex-shrink: 0;
    color: #28a745;
}

.paywall-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-subscribe {
    background: linear-gradient(135deg, #2FAAE6 0%, #168AAD 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 8px; /* ZMIENIONE: z 30px na 8px */
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 170, 230, 0.3);
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 170, 230, 0.4);
    color: white;
}

.btn-login {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 32px;
    border-radius: 8px; /* ZMIENIONE: z 30px na 8px */
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* NOWE: Informacja o prenumeracie grupowej */
.paywall-group-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.paywall-group-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.paywall-group-info a:hover {
    color: #168AAD;
    text-decoration: underline;
}

body.dark-mode .paywall-group-info a:hover {
    color: #3dc4f5;
}

/* Responsive */
@media (max-width: 768px) {
    .paywall-content {
        padding: 30px 20px;
    }
    
    .paywall-title {
        font-size: 1.5rem;
    }
    
    .paywall-actions {
        flex-direction: column;
    }
    
    .btn-subscribe,
    .btn-login {
        width: 100%;
        text-align: center;
    }
}



/* Responsive */
@media (max-width: 768px) {
    .paywall-content {
        padding: 30px 20px;
    }
    
    .paywall-title {
        font-size: 1.5rem;
    }
    
    .paywall-actions {
        flex-direction: column;
    }
    
    .btn-subscribe,
    .btn-login {
        width: 100%;
        text-align: center;
    }
}