/*
Theme Name: BeautyAGD
Description: Motyw WordPress dla strony o urządzeniach beauty - rankingi, testy, porównania suszarek, prostownic, lokówek i epilatorów
Version: 1.0.0
Author: BeautyAGD Team
Author URI: https://beautyagd.pl
Text Domain: beautyagd
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

BeautyAGD WordPress Theme - Modern Premium Design
*/

/* ZMIENNE KOLORÓW - NOWOCZESNE I ŚWIEŻE */
:root {
    --primary: #6366f1;           /* Indigo - nowoczesny */
    --primary-light: #818cf8;     /* Lighter indigo */
    --primary-dark: #4f46e5;      /* Darker indigo */
    --secondary: #06b6d4;         /* Cyan */
    --accent: #f59e0b;            /* Amber */
    --success: #10b981;           /* Emerald */
    --error: #ef4444;             /* Red */
    --warning: #f59e0b;           /* Amber */
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --white: #ffffff;
    --black: #000000;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.main-menu a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.main-menu a:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.search-toggle .search-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--gray-600);
}

.search-toggle .search-button:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.search-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

/* Main */
main {
    margin-top: 80px;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Categories */
.categories {
    background: var(--white);
    margin: 4rem 0;
    padding: 4rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    border-radius: var(--radius);
    padding: 2rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-card.gradient-1 { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); 
}
.category-card.gradient-2 { 
    background: linear-gradient(135deg, var(--secondary) 0%, #0891b2 100%); 
}
.category-card.gradient-3 { 
    background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%); 
}
.category-card.gradient-4 { 
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%); 
}
.category-card.gradient-5 { 
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); 
}
.category-card.gradient-6 { 
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); 
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 1;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.category-card p {
    opacity: 0.9;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

/* Latest Articles */
.latest-articles {
    background: var(--white);
    padding: 4rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.latest-articles h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.article-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-content h3 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content h3 a:hover {
    color: var(--primary);
}

.article-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-category {
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Features */
.features {
    padding: 4rem 0;
    background: var(--gray-50);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-weight: 600;
}

.feature p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-600);
    border-radius: 8px;
    background: var(--gray-800);
    color: var(--white);
}

.newsletter-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-500);
}

/* Modal */
.beauty-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-articles {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-article {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-article:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.modal-article h3 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    font-weight: 600;
}

.modal-article p {
    margin-bottom: 1rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.modal-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-article-category {
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.load-more-section {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
}

.load-more-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Style dla obrazków kategorii */
.category-image {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    margin: 0 auto 1rem auto;
    display: block;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Fallback dla ikon emoji gdy nie ma obrazka */
.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

/* ===== STYLES FOR SINGLE ARTICLE PAGE ===== */

.single-article {
    background: var(--gray-50);
    min-height: 100vh;
    padding: 0;
}

.article-content {
    max-width: 900px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.article-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
    text-align: center;
    position: relative;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    opacity: 0.7;
}

.breadcrumb-current {
    opacity: 0.8;
    font-weight: 500;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.article-category a {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.article-category a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.article-date,
.read-time {
    color: rgba(255, 255, 255, 0.9);
}

.article-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.article-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 1rem;
    font-style: italic;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.article-featured-image {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    padding: 3rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-800);
}

.article-body h2 {
    color: var(--gray-900);
    font-size: 1.875rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
    position: relative;
}

.article-body h2:before {
    content: "📍";
    color: var(--primary);
    margin-right: 0.75rem;
}

.article-body h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
    background: var(--gray-50);
    border-radius: var(--radius);
}

.article-body h4 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.article-body ul li {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

.article-body ul li:before {
    content: "✅";
    color: var(--success);
    position: absolute;
    left: 0;
    top: 0;
}

.article-body blockquote {
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--radius);
    font-style: italic;
    font-size: 1.125rem;
}

.article-body strong {
    color: var(--primary);
    font-weight: 700;
    background: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.page-links {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.page-links a {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    margin: 0 0.25rem;
    font-weight: 500;
}

.article-footer {
    padding: 2rem 3rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.article-brands {
    margin-bottom: 2rem;
    text-align: center;
}

.article-brands strong {
    color: var(--gray-900);
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.brand-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    margin: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.brand-tag:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.article-share {
    text-align: center;
}

.article-share h4 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-size: 1.25rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-buttons a,
.share-buttons button {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.share-buttons a:hover,
.share-buttons button:hover {
    transform: translateY(-1px);
}

.share-facebook { background: #1877f2; color: var(--white); }
.share-twitter { background: #1da1f2; color: var(--white); }
.share-linkedin { background: #0a66c2; color: var(--white); }
.share-copy { background: var(--primary); color: var(--white); }

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.nav-previous,
.nav-next {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.nav-title {
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
}

.nav-title:hover {
    color: var(--primary);
}

.related-articles {
    margin: 4rem 0;
}

.related-articles h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-article {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.related-article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-content h4 {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.related-content h4 a {
    color: var(--gray-900);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
}

.related-content h4 a:hover {
    color: var(--primary);
}

.related-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.related-date {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
}

/* NEGATYWNE LISTY Z CZERWONYMI X */
.negative-list li:before {
    content: "❌" !important;
    color: var(--error) !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { 
        font-size: 2.5rem; 
    }
    
    .category-grid { 
        grid-template-columns: 1fr; 
    }
    
    .features-grid { 
        grid-template-columns: 1fr; 
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .main-menu {
        display: none;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    nav {
        padding: 1rem;
    }
    
    .category-image {
        width: 60px;
        height: 60px;
    }
    
    .article-content {
        margin: 1rem !important;
        width: calc(100% - 2rem) !important;
    }
    
    .article-body {
        padding: 2rem !important;
        font-size: 1rem !important;
    }
    
    .article-footer {
        padding: 2rem !important;
    }
    
    .container {
        padding: 0 1rem !important;
    }
    
    .article-title {
        font-size: 1.875rem !important;
    }
    
    .article-body h2 {
        font-size: 1.5rem !important;
    }
    
    .article-body h3 {
        font-size: 1.25rem !important;
    }
    
    .article-meta {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .article-navigation {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .nav-next {
        text-align: left !important;
    }
    
    .share-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .share-buttons a,
    .share-buttons button {
        width: 100% !important;
        max-width: 280px !important;
    }
    
    .related-grid {
        grid-template-columns: 1fr !important;
    }
    
    .breadcrumb {
        font-size: 0.75rem !important;
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    .article-content {
        margin: 0.5rem !important;
        width: calc(100% - 1rem) !important;
    }
    
    .article-body {
        padding: 1.5rem !important;
    }
    
    .article-header {
        padding: 1rem !important;
    }
}