:root {
    --content-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-round: 50%;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.8;
    
    --z-index-dropdown: 100;
    --z-index-sticky: 500;
    --z-index-modal: 1000;
    --z-index-notification: 1500;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-color);
    background-color: var(--body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--header-bg);
    border-bottom: var(--header-border);
    box-shadow: var(--header-shadow);
    z-index: var(--z-index-sticky);
    transition: all var(--transition-normal);
    will-change: transform;
}

@media (max-width: 768px) {
    .site-header {
        transition: none;
        will-change: auto;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.site-branding a {
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.site-branding a:hover {
    opacity: 0.8;
}

.site-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin: 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-lg);
}

.menu-list li {
    position: relative;
}

.menu-list a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--nav-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.menu-list a:hover,
.menu-list a:focus {
    color: var(--primary-color);
    background-color: var(--nav-hover-bg);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--nav-color);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-ad-wrapper {
    background-color: var(--ad-bg);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
}

.site-main {
    min-height: 60vh;
    padding: var(--spacing-xl) 0;
}

.homepage-hero {
    background: var(--hero-gradient);
    color: var(--hero-text-color);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
}

.hero-description {
    font-size: var(--font-size-xl);
    opacity: 0.95;
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-lg);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--cta-bg);
    color: var(--cta-text);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: var(--cta-hover-bg);
}

.page-header {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.page-header h1,
.page-header h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.page-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumbs {
    padding: var(--spacing-md) 0;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--font-size-sm);
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

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

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 var(--spacing-xs);
    color: var(--text-secondary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.post-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background-color: var(--image-placeholder-bg);
}

.post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.post-card-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    min-width: 0;
    overflow: hidden;
}

.post-card-category {
    margin-bottom: var(--spacing-sm);
}

.post-card-category a {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--category-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-card-category a:hover {
    color: var(--category-hover-color);
}

.post-card-title {
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.post-card-title {
    position: relative;
    z-index: 2;
}

.post-card-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 3;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-card-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.post-card-image a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

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

.post-card-category,
.post-card-link {
    position: relative;
    z-index: 2;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.meta-author,
.meta-date,
.meta-reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.post-card-excerpt {
    flex-grow: 1;
    color: var(--text-color);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
}

.post-card-link,
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.post-card-link:hover,
.read-more:hover {
    gap: 8px;
}

.single-post article {
    margin-bottom: var(--spacing-xxl);
}

.entry-header {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.entry-category {
    margin-bottom: var(--spacing-md);
}

.entry-category a {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--category-badge-bg);
    color: var(--category-badge-text);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.entry-category a:hover {
    background-color: var(--category-badge-hover-bg);
}

.entry-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
    font-weight: var(--font-weight-bold);
    color: var(--heading-color);
    margin: 0 auto var(--spacing-md);
    max-width: 900px;
    line-height: var(--line-height-tight);
}

.entry-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.entry-featured-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: var(--font-weight-bold);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
}

.entry-content h2 {
    font-size: var(--font-size-3xl);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-accent);
}

.entry-content h3 {
    font-size: var(--font-size-2xl);
}

.entry-content h4 {
    font-size: var(--font-size-xl);
}

.entry-content p {
    margin-bottom: var(--spacing-lg);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.entry-content li {
    margin-bottom: var(--spacing-sm);
}

.entry-content a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.entry-content a:hover {
    color: var(--link-hover-color);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.entry-content blockquote {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-left: 4px solid var(--primary-color);
    background-color: var(--blockquote-bg);
    font-style: italic;
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
}

.entry-content code {
    padding: 2px 6px;
    background-color: var(--code-bg);
    color: var(--code-text);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content pre {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background-color: var(--code-block-bg);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.entry-tags {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.entry-tags strong {
    color: var(--heading-color);
}

.entry-tags a {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--tag-bg);
    color: var(--tag-text);
    font-size: var(--font-size-sm);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.entry-tags a:hover {
    background-color: var(--tag-hover-bg);
    color: var(--tag-hover-text);
}

.share-buttons-wrapper {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background-color: var(--share-bg);
    border-radius: var(--radius-md);
    text-align: center;
}

.share-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--heading-color);
    margin-bottom: var(--spacing-md);
}

.share-buttons-list {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
}

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

.share-facebook:hover {
    background-color: #0c63d4;
    transform: translateY(-2px);
}

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

.share-twitter:hover {
    background-color: #0d8bd9;
    transform: translateY(-2px);
}

.share-linkedin {
    background-color: #0077b5;
    color: white;
}

.share-linkedin:hover {
    background-color: #005582;
    transform: translateY(-2px);
}

.related-posts {
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-xxl) 0;
    background-color: var(--related-bg);
}

.related-posts-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--heading-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.inline-related-posts,
.irp-related-post {
    display: inline-block;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--accent-color, #f8f9fa);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.inline-related-posts:hover,
.irp-related-post:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.inline-related-posts::before,
.irp-related-post::before {
    content: "→ Zobacz także: ";
    font-weight: 700;
    margin-right: 0.5rem;
    opacity: 0.8;
}

.author-box {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    background-color: var(--author-box-bg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-round);
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--heading-color);
    margin: 0 0 var(--spacing-sm);
}

.author-name a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.author-name a:hover {
    color: var(--primary-color);
}

.author-bio {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-color);
    margin: var(--spacing-md) 0;
}

.author-bio p {
    margin: 0;
}

.author-link {
    display: inline-flex;
    align-items: center;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.author-link:hover {
    background: var(--primary-dark);
    transform: translateX(3px);
}

.author-name-old {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
}

.author-bio {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
}

.author-social {
    display: flex;
    gap: var(--spacing-sm);
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-round);
    transition: all var(--transition-normal);
}

.author-social a:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
}

.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h3,
.footer-column h4 {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--footer-heading);
    margin-bottom: var(--spacing-md);
}

.footer-about p {
    color: var(--footer-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    font-style: italic;
    opacity: 0.9;
}

.footer-menu-list,
.footer-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-list li,
.footer-categories-list li {
    margin-bottom: var(--spacing-sm);
}

.footer-menu-list a,
.footer-categories-list a {
    color: var(--footer-link);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-menu-list a:hover,
.footer-categories-list a:hover {
    color: var(--footer-link-hover);
    padding-left: var(--spacing-xs);
}

.footer-categories-list .count {
    opacity: 0.6;
    font-size: var(--font-size-sm);
    margin-left: 4px;
}

.footer-contact-info p {
    color: var(--footer-text-secondary);
    margin-bottom: var(--spacing-md);
}

.footer-contact-info a {
    color: var(--footer-link);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.footer-contact-info a:hover {
    text-decoration: underline;
}

.footer-social-icons {
    margin-top: var(--spacing-md);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--social-icon-bg);
    color: var(--social-icon-color);
    border-radius: var(--radius-round);
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background-color: var(--social-icon-hover-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--footer-border);
    margin-top: var(--spacing-lg);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.copyright {
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-meta a {
    color: var(--footer-link);
    text-decoration: none;
}

.footer-meta a:hover {
    text-decoration: underline;
}

.footer-meta .separator {
    opacity: 0.5;
}

.footer-ad-wrapper {
    background-color: var(--ad-bg);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin: var(--spacing-xxl) 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers.dots {
    border: none;
}

.page-numbers.dots:hover {
    background: none;
    color: var(--text-color);
}

.network-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.network-site-card {
    background-color: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.network-site-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.network-site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    margin-bottom: var(--spacing-md);
}

.network-site-logo img {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
}

.network-site-name {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.network-site-name a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.network-site-name a:hover {
    color: var(--primary-color);
}

.network-site-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--primary-color);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.network-site-description {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
}

.network-site-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.network-site-link:hover {
    gap: 8px;
}

.network-empty {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--text-secondary);
    font-style: italic;
}

/* ==========================================
   HOMEPAGE LAYOUTS
   ========================================== */

.homepage-layout .section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.homepage-layout .section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-sm);
}

.homepage-layout .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.homepage-layout .section-link {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.homepage-layout .section-link:hover {
    color: var(--primary-hover-color);
    transform: translateX(4px);
}

.mosaic-tiles {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 8px;
    gap: var(--spacing-md);
}

.mosaic-tile {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mosaic-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.mosaic-image {
    position: absolute;
    inset: 0;
}

.mosaic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform var(--transition-slow);
}

.mosaic-tile:hover .mosaic-image img {
    transform: scale(1.08);
}

.mosaic-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-lg);
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1) 60%, rgba(0,0,0,0));
}

.mosaic-category {
    display: inline-block;
    align-self: flex-start;
    padding: 0.35rem 0.8rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    text-decoration: none;
}

.mosaic-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.mosaic-title a {
    color: #fff;
    text-decoration: none;
}

.mosaic-title a:hover {
    color: #fff;
}

.mosaic-tile.tile-xl { grid-column: span 6; grid-row: span 20; }
.mosaic-tile.tile-l  { grid-column: span 4; grid-row: span 18; }
.mosaic-tile.tile-m  { grid-column: span 3; grid-row: span 16; }
.mosaic-tile.tile-s  { grid-column: span 3; grid-row: span 14; }

.mosaic-grid-beauty {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 8px;
}
.mosaic-grid-beauty .tile-wide { grid-column: span 6; grid-row: span 12; }
.mosaic-grid-beauty .tile-square { grid-column: span 3; grid-row: span 12; }
.mosaic-grid-beauty .tile-tall { grid-column: span 6; grid-row: span 24; }

/* precise placement for 7 items to achieve flush bottom */
.mosaic-grid-beauty .tile-b1 { grid-column: 1 / span 6; grid-row: 1 / span 12; }
.mosaic-grid-beauty .tile-b2 { grid-column: 7 / span 3; grid-row: 1 / span 12; }
.mosaic-grid-beauty .tile-b3 { grid-column: 10 / span 3; grid-row: 1 / span 12; }
.mosaic-grid-beauty .tile-b4 { grid-column: 1 / span 6; grid-row: 13 / span 12; }
.mosaic-grid-beauty .tile-b5 { grid-column: 7 / span 3; grid-row: 13 / span 12; }
.mosaic-grid-beauty .tile-b6 { grid-column: 10 / span 3; grid-row: 13 / span 12; }
/* removed tile-b7 to keep 6 tiles total */

@media (max-width: 1024px) {
    .mosaic-grid-beauty { grid-template-columns: repeat(8, 1fr); grid-auto-rows: 10px; }
    .mosaic-grid-beauty .tile-wide { grid-column: span 8; grid-row: span 14; }
    .mosaic-grid-beauty .tile-square { grid-column: span 4; grid-row: span 14; }
    .mosaic-grid-beauty .tile-tall { grid-column: span 8; grid-row: span 28; }
    .mosaic-grid-beauty .tile-b1 { grid-column: 1 / span 8; grid-row: 1 / span 14; }
    .mosaic-grid-beauty .tile-b2 { grid-column: 1 / span 4; grid-row: 15 / span 14; }
    .mosaic-grid-beauty .tile-b3 { grid-column: 5 / span 4; grid-row: 15 / span 14; }
    .mosaic-grid-beauty .tile-b4 { grid-column: 1 / span 8; grid-row: 29 / span 14; }
    .mosaic-grid-beauty .tile-b5 { grid-column: 1 / span 4; grid-row: 43 / span 14; }
    .mosaic-grid-beauty .tile-b6 { grid-column: 5 / span 4; grid-row: 43 / span 14; }
    .mosaic-grid-beauty .tile-b7 { grid-column: 1 / span 8; grid-row: 57 / span 14; }
}

/* precise positions for 7 tiles to make a flush rectangle bottom */
.mosaic-tile.tile-1 { grid-column: 1 / span 6; grid-row: 1 / span 16; }
.mosaic-tile.tile-2 { grid-column: 7 / span 3; grid-row: 1 / span 10; }
.mosaic-tile.tile-3 { grid-column: 10 / span 3; grid-row: 1 / span 12; }
.mosaic-tile.tile-4 { grid-column: 1 / span 3; grid-row: 17 / span 12; }
.mosaic-tile.tile-5 { grid-column: 4 / span 3; grid-row: 17 / span 12; }
.mosaic-tile.tile-6 { grid-column: 7 / span 3; grid-row: 11 / span 18; }
.mosaic-tile.tile-7 { grid-column: 10 / span 3; grid-row: 13 / span 16; }

@media (max-width: 1024px) {
    .mosaic-grid { grid-template-columns: repeat(8, 1fr); grid-auto-rows: 10px; }
    .mosaic-tile.tile-1 { grid-column: 1 / span 8; grid-row: 1 / span 18; }
    .mosaic-tile.tile-2 { grid-column: 1 / span 4; grid-row: 19 / span 14; }
    .mosaic-tile.tile-3 { grid-column: 5 / span 4; grid-row: 19 / span 14; }
    .mosaic-tile.tile-4 { grid-column: 1 / span 4; grid-row: 34 / span 14; }
    .mosaic-tile.tile-5 { grid-column: 5 / span 4; grid-row: 34 / span 14; }
    .mosaic-tile.tile-6 { grid-column: 1 / span 4; grid-row: 49 / span 16; }
    .mosaic-tile.tile-7 { grid-column: 5 / span 4; grid-row: 49 / span 16; }
}

@media (max-width: 1024px) {
    .mosaic-grid { grid-template-columns: repeat(8, 1fr); }
    .mosaic-tile.tile-xl { grid-column: span 8; grid-row: span 24; }
    .mosaic-tile.tile-l  { grid-column: span 4; grid-row: span 18; }
    .mosaic-tile.tile-m  { grid-column: span 4; grid-row: span 16; }
    .mosaic-tile.tile-s  { grid-column: span 4; grid-row: span 14; }
}

@media (max-width: 768px) {
    .mosaic-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .mosaic-tile { height: 180px; }
    .mosaic-tile.tile-xl,
    .mosaic-tile.tile-l,
    .mosaic-tile.tile-m,
    .mosaic-tile.tile-s,
    .mosaic-tile[class*="tile-"] { grid-column: auto; grid-row: auto; }
}

/* Featured Section */
.featured-section {
    padding: var(--spacing-xl) 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-lg);
}

.featured-post {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.featured-post:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-image img {
    transform: scale(1.08);
}

.featured-content {
    padding: var(--spacing-lg);
}

.featured-category a {
    display: inline-block;
    background: var(--category-badge-bg);
    color: var(--category-badge-text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.featured-category a:hover {
    background: var(--category-badge-hover-bg);
    color: white;
}

.featured-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin: var(--spacing-md) 0;
}

.featured-title a {
    color: var(--heading-color);
    transition: color 0.3s ease;
}

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

.featured-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.featured-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* Category Sections */
.category-section {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-color);
}

/* Grid-2 Layout */
.section-grid.layout-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

/* Grid-3 Layout */
.section-grid.layout-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* Grid-4 Layout */
.section-grid.layout-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

/* Mixed Layout (1 large + 3 small) */
.section-grid.layout-mixed {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

.layout-mixed .large-post {
    grid-row: span 2;
}

.layout-mixed .post-card {
    display: flex;
    flex-direction: column;
}

/* List Layout */
.section-grid.layout-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.list-post {
    display: flex;
    gap: var(--spacing-lg);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    padding: var(--spacing-md);
}

.list-post:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
}

.list-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

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

.list-post:hover .list-image img {
    transform: scale(1.1);
}

.list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-category a {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--spacing-xs);
}

.list-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

.list-title a {
    color: var(--heading-color);
    transition: color 0.3s ease;
}

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

.list-excerpt {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.list-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Large Post (for mixed layout) */
.large-post {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.large-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.large-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.large-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.large-post:hover .large-image img {
    transform: scale(1.05);
}

.large-content {
    padding: var(--spacing-lg);
}

.large-category a {
    display: inline-block;
    background: var(--category-badge-bg);
    color: var(--category-badge-text);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.large-category a:hover {
    background: var(--category-badge-hover-bg);
    color: white;
}

.large-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin: var(--spacing-md) 0;
}

.large-title a {
    color: var(--heading-color);
    transition: color 0.3s ease;
}

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

.large-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.large-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Latest Section */
.latest-section {
    padding: var(--spacing-xl) 0;
    background: var(--accent-color);
}

.load-more-wrapper {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.button-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-primary:hover {
    background: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    :root {
        --content-width: 960px;
    }
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    :root {
        --spacing-sm: 0.875rem;
        --spacing-md: 1.25rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--header-bg);
        backdrop-filter: blur(10px);
        padding-top: 80px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 998;
        overflow-y: auto;
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .menu-list {
        display: flex !important;
        flex-direction: column;
        padding: 0;
        gap: 0;
        width: 100%;
        list-style: none;
        margin: 0;
    }

    .menu-list li {
        display: block !important;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        margin: 0;
    }

    .menu-list a {
        display: block !important;
        padding: 1.25rem 1.5rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
        font-size: 1.125rem;
        color: var(--nav-color) !important;
        background: transparent;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 999;
        position: relative;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Homepage Layouts Responsive */
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .section-grid.layout-grid-2,
    .section-grid.layout-grid-3,
    .section-grid.layout-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section-grid.layout-mixed {
        grid-template-columns: 1fr;
    }
    
    .layout-mixed .large-post {
        grid-row: auto;
    }
    
    .list-post {
        flex-direction: column;
    }
    
    .list-image {
        width: 100%;
        height: 200px;
    }
    
    .homepage-layout .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-description {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 0.9375rem;
    }

    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .entry-content {
        font-size: var(--font-size-base);
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.o-mnie-page {
    padding: var(--spacing-3xl) 0;
}

.author-profile-centered {
    max-width: 800px;
    margin: var(--spacing-3xl) auto;
    padding: var(--spacing-3xl);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    text-align: center;
}

.author-avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.author-avatar-wrapper img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-round);
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.author-info-centered {
    max-width: 600px;
    margin: 0 auto;
}

.author-display-name {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--heading-color);
    margin: 0 0 var(--spacing-lg);
    line-height: 1.2;
}

.author-bio-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
}

.author-bio-text p {
    margin: 0;
}

.author-stats-centered {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.author-social-centered {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.author-social-centered .social-btn {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--accent-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

.author-social-centered .social-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-label-old {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-align: center;
}

.author-recent-posts {
    margin-top: var(--spacing-3xl);
}

.author-recent-posts h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--heading-color);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.author-recent-posts .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .author-profile-centered {
        padding: var(--spacing-xl);
    }

    .author-avatar-wrapper img {
        width: 150px;
        height: 150px;
    }

    .author-display-name {
        font-size: var(--font-size-3xl);
    }

    .author-bio-text {
        font-size: var(--font-size-base);
    }

    .author-recent-posts .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr !important;
    }
}

