/* Main Stylesheet - News Magazine */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #f3f4f6;
    --accent: #dc2626;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__top {
    background: var(--secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.header__top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__breaking-news {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breaking-news__label {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.5rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.breaking-news__text {
    font-size: 0.875rem;
    color: var(--text-light);
}

.header__search {
    flex: 1;
    max-width: 300px;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form__input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
}

.search-form__button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.search-form__button:hover {
    background: var(--primary-dark);
}

/* Search form in sidebar */
.search-form--sidebar {
    flex-direction: column;
    gap: 0.75rem;
}

.search-form--sidebar .search-form__input {
    width: 100%;
}

.search-form--sidebar .search-form__button {
    width: 100%;
}

.header__main {
    padding: 1rem 0;
}

.header__main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header__logo .logo {
    text-decoration: none;
    display: block;
}

.header__logo .logo__text {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-menu__link {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu__link:hover {
    color: var(--primary);
}

.nav-menu__more {
    position: relative;
}

.nav-menu__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 150px;
    list-style: none;
}

.nav-menu__more:hover .nav-menu__dropdown {
    display: block;
}

.nav-menu__dropdown .nav-menu__link {
    display: block;
    padding: 0.5rem 1rem;
}

.header__mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.header__admin {
    background: var(--primary);
    color: white;
    padding: 0.5rem 0;
    text-align: center;
}

.header__admin-link {
    color: white;
    font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
    background: var(--secondary);
    padding: 2rem 0;
}

.hero-section__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.hero-section__main {
    display: flex;
}

.hero-section__main .article-card--large {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

.hero-section__main .article-card--large .article-card__image-wrapper {
    flex: 1;
    min-height: 100%;
}

.hero-section__sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-section__sidebar .article-card--small {
    flex: 1;
    border-radius: 8px;
}

.hero-section__sidebar .article-card__link--horizontal {
    height: 100%;
}

.hero-section__sidebar .article-card__image-wrapper--small {
    width: 120px;
    height: 100%;
    min-height: 80px;
}

/* Article Cards */
.article-card {
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-card__link {
    display: block;
    color: inherit;
}

.article-card__image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--secondary);
}

.article-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-card__image {
    transform: scale(1.05);
}

.article-card--large .article-card__image-wrapper {
    aspect-ratio: 16/9;
}

.article-card--medium .article-card__image-wrapper {
    height: 200px;
}

.article-card--small .article-card__image-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-card__image-wrapper--small {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-card__image-wrapper--small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card__image-wrapper--medium {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.article-card__link--horizontal .article-card__image-wrapper--medium {
    width: 300px;
}

@media (max-width: 768px) {
    .article-card__image-wrapper--medium {
        width: 100%;
    }
}

.article-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 2rem 1.5rem 1.5rem;
}

.article-card__content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-card--large .article-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: 2rem;
    flex: none;
    display: block;
}

.article-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-card--large .article-card__title {
    font-size: 2rem;
    color: white;
}

.article-card__title--small {
    font-size: 1rem;
}

.article-card__excerpt {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.article-card__link--horizontal {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.article-card--small .article-card__link--horizontal {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-height: 120px;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.category-badge--domaci { background: #3b82f6; color: white; }
.category-badge--zahranicni { background: #10b981; color: white; }
.category-badge--ekonomika { background: #f59e0b; color: white; }
.category-badge--sport { background: #ef4444; color: white; }
.category-badge--kultura { background: #8b5cf6; color: white; }
.category-badge--krimi { background: #ec4899; color: white; }
.category-badge--tech { background: #06b6d4; color: white !important; }
.category-badge a{color: white !important; }
.category-badge--auto { background: #f59e0b; color: white; }

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    min-width: 0;
}

/* Section */
.section {
    margin-bottom: 3rem;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.section__title {
    font-size: 1.75rem;
    margin: 0;
}

.section__link {
    font-size: 0.875rem;
    color: var(--primary);
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.articles-grid {
    display: grid;
    gap: 1.5rem;
}

.articles-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.articles-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Article Detail */
.article-detail {
    padding: 2rem 0;
}

.article-detail__header {
    margin-bottom: 2rem;
}

.article-detail__header {
    margin-bottom: 2rem;
}

.article-detail__image-container {
    margin-bottom: 2rem;
}

.article-detail__image-wrapper {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    position: relative;
    background: var(--secondary);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
}

.article-detail__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-detail__image-credit {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    padding: 0 1rem;
    display: block;
}

.article-detail__edit-button {
    margin-top: 1rem;
    text-align: center;
    padding: 0 1rem;
}

.article-detail__edit-button .btn-edit-article {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
    box-shadow: var(--shadow);
}

.article-detail__edit-button .btn-edit-article:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.article-detail__edit-button .btn-edit-article:active {
    transform: translateY(0);
}

/* Better desktop display for article images - wider than text content */
@media (min-width: 768px) {
    .article-detail__image-wrapper {
        max-height: 500px;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        margin-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .article-detail__header {
        position: relative;
    }
    
    .article-detail__image-wrapper {
        max-height: 550px;
        aspect-ratio: 16/9;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 4rem);
    }
    
    .article-detail__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (min-width: 1400px) {
    .article-detail__image-wrapper {
        max-width: 1100px;
        width: calc(100% - 8rem);
    }
}

.article-detail__header-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail__header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-detail__header-meta .category-badge {
    margin-bottom: 0;
}

.article-detail__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-detail__excerpt {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-detail__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .article-detail__header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-detail__meta {
        width: 100%;
    }
}

.article-detail__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.share-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.share-button {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.share-button:hover {
    opacity: 0.9;
}

.share-button--facebook { background: #1877f2; }
.share-button--twitter { background: #1da1f2; }
.share-button--linkedin { background: #0077b5; }
.share-button--whatsapp { background: #25d366; }

/* Responsive share buttons */
@media (max-width: 768px) {
    .article-detail__share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .share-label {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .share-button {
        width: 100%;
        text-align: center;
    }
}

.article-detail__content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-detail__content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-detail__content p {
    margin-bottom: 1rem;
}

.article-detail__content ul,
.article-detail__content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.article-detail__content ul {
    list-style-type: disc;
}

.article-detail__content ol {
    list-style-type: decimal;
}

.article-detail__content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-detail__content ul ul,
.article-detail__content ol ol,
.article-detail__content ul ol,
.article-detail__content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-detail__author {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.article-detail__author:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.author-bio-box {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.author-bio-box__header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-bio-box__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-box__avatar--placeholder {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.author-bio-box__info {
    flex: 1;
}

.author-bio-box__name {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
}

.author-bio-box__name a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.author-bio-box__name a:hover {
    color: var(--primary);
}

.author-bio-box__bio {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-bio-box__social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.author-bio-box__social-link {
    font-size: 1.25rem;
    text-decoration: none;
    transition: transform 0.2s;
    display: inline-block;
}

.author-bio-box__social-link:hover {
    transform: scale(1.2);
}

.article-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Comments */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.comments-section__title {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.comments-section__icon {
    font-size: 1.25rem;
}

.comment-form {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.comment-form__title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    color: var(--text);
}

.comment-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .comment-form__row {
        grid-template-columns: 1fr;
    }
}

.comment-form__reply-info {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.comment-form__cancel-reply {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.comment-form__cancel-reply:hover {
    background: white;
    color: var(--primary);
}

.comments-list {
    margin-top: 2rem;
}

.comments-empty {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
}

/* Comment Thread System */
.comment-thread {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.comment-thread:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-thread--nested {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    padding-left: 3.5rem;
}

@media (max-width: 768px) {
    .comment-thread--nested {
        padding-left: 2.5rem;
    }
}

.comment {
    display: flex;
    gap: 0.75rem;
    position: relative;
}

.comment__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.comment__avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.comment__avatar--image {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.comment__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comment--reply .comment__avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.comment--reply .comment__avatar--image {
    width: 40px;
    height: 40px;
}

/* Thread connecting line */
.comment__thread-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    min-height: 1rem;
    margin-top: 0.5rem;
}

.comment__replies {
    position: relative;
}

.comment__replies::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 20px;
    width: 2px;
    background: var(--border);
}

@media (max-width: 768px) {
    .comment__replies::before {
        left: 19px;
    }
}

.comment__body {
    flex: 1;
    min-width: 0;
    padding-top: 0.25rem;
}

.comment__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.comment__author {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.comment__author-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.comment__author-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.comment__date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment__reply-to {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.comment__reply-to-icon {
    margin-right: 0.25rem;
}

.comment__content {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.comment__actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment__reply-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 0.2s;
    font-weight: 500;
}

.comment__reply-btn:hover {
    color: var(--primary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-primary {
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-articles__title {
    margin-bottom: 1.5rem;
}

/* Inline Related Article (vložený do textu článku - používá article-card--horizontal) */
.article-detail__content .article-card--horizontal {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: none;
    border: 1px solid var(--border);
    padding: 1rem;
}

.article-detail__content .article-card--horizontal .article-card__link--horizontal {
    gap: 1rem;
}

.article-detail__content .article-card--horizontal .article-card__content {
    padding: 0;
}

.article-detail__content .article-card--horizontal .article-card__excerpt {
    margin-bottom: 0;
}

.article-detail__content .article-card--horizontal:hover {
    transform: none;
    box-shadow: none;
}

/* Reset margin-top h2 když následuje po vloženém článku */
.article-detail__content .article-card--horizontal + h2 {
    margin-top: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination__link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

.pagination__link:hover {
    background: var(--secondary);
}

.pagination__link--active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination__ellipsis {
    padding: 0.5rem;
}

/* Sidebar */
.sidebar-widget {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sidebar-widget__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-article {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.popular-article__number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    min-width: 2rem;
}

.popular-article__title {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Latest Comments Widget */
.latest-comments {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.latest-comment {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.latest-comment:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.latest-comment__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text);
}

.latest-comment__icon {
    font-size: 1rem;
}

.latest-comment__excerpt {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
    font-style: italic;
}

.latest-comment__article {
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.latest-comment__article:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud__tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.tag-cloud__tag:hover {
    background: var(--secondary);
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer__subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer__links {
    list-style: none;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    display: block;
    padding: 0.25rem 0;
}

.footer__link:hover {
    color: white;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Search Page */
.search-page {
    padding: 2rem 0;
}

.search-page__header {
    text-align: center;
    margin-bottom: 3rem;
}

.search-form--large {
    max-width: 600px;
    margin: 0 auto;
}

.search-form__input--large {
    font-size: 1.25rem;
    padding: 1rem;
}

.search-results__count {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Category Page */
.category-page {
    padding: 2rem 0;
}

.category-page__header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-page__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-page__description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.category-page__count {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Error Page */
.error-page {
    padding: 4rem 0;
    text-align: center;
}

.error-page__title {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-page__subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-page__message {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Page Content (Static Pages) */
.page-content {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.page-body {
    font-size: 1.125rem;
    line-height: 1.8;
}

.page-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.page-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.page-body p {
    margin-bottom: 1rem;
}

.page-body ul,
.page-body ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.page-body ul {
    list-style-type: disc;
}

.page-body ol {
    list-style-type: decimal;
}

.page-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.page-body ul ul,
.page-body ol ol,
.page-body ul ol,
.page-body ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-form {
    margin: 2rem 0;
}

.form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.advertising-options {
    margin: 2rem 0;
}

.ad-option {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.ad-option h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Promo Positions (Advertisement positions - avoiding word "banner" for adblock) */
.promo-item {
    margin-bottom: 1.5rem;
    text-align: center;
}

.promo-item__link {
    display: block;
    transition: opacity 0.2s;
}

.promo-item__link:hover {
    opacity: 0.9;
}

.promo-item__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Sidebar promo positions */
.content-sidebar .promo-item {
    margin-bottom: 2rem;
}

.content-sidebar .promo-item__image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* Below article promo positions */
.promo-item--below-article {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.promo-item--below-article .promo-item__image {
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header__main-content {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .header__mobile-toggle {
        display: block;
    }
    
    .hero-section {
        display: none;
    }
    
    .hero-section__grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid--2,
    .articles-grid--3 {
        grid-template-columns: 1fr;
    }
    
    .article-card__link--horizontal {
        flex-direction: column;
    }
    
    .article-detail__title {
        font-size: 1.75rem;
    }
    
    .content-sidebar .promo-item__image {
        max-width: 100%;
    }
    
    .promo-item--below-article {
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
    
    .promo-item--below-article .promo-item__image {
        max-width: 100%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs__link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.breadcrumbs__link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumbs__separator {
    color: var(--text-light);
    font-size: 0.875rem;
}

.breadcrumbs__current {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumbs__list {
        font-size: 0.8125rem;
    }
}

/* Share buttons */
.share-button--linkedin {
    background: #0077b5;
    color: white;
}

.share-button--linkedin:hover {
    background: #005885;
}

.share-button--whatsapp {
    background: #25D366;
    color: white;
}

.share-button--whatsapp:hover {
    background: #1da851;
}
