/**
 * Article Page Styles
 */

.article-hero {
    padding: 4rem 0 0;
    background-color: var(--cream-bg);
    text-align: center;
}

.article-hero-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.article-section {
    padding: 3rem 0;
    background-color: var(--cream-bg);
    min-height: 60vh;
    max-width: 640px;
    margin: 0 auto;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-image {
    width: 100%;
    position: relative;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-meta {
    position: absolute;
    background: var(--primary-green);
    color: var(--cream-bg);
    padding: 6px 12px;
    z-index: 1;
}

.article-date {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.article-text {
    line-height: 1.7;
    color: #333;
    font-size: var(--text-base);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.article-text p {
    margin-bottom: 0;
}

.article-text p:last-child {
    margin-bottom: 0;
}

/* Styly pro HTML elementy z editoru */
.article-text h1,
.article-text h2,
.article-text h3,
.article-text h4,
.article-text h5,
.article-text h6 {
    font-weight: var(--font-semibold);
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-text h1 { font-size: var(--text-2xl); }
.article-text h2 { font-size: var(--text-xl); }
.article-text h3 { font-size: var(--text-lg); }
.article-text h4 { font-size: var(--text-base); font-weight: var(--font-bold); }
.article-text h5 { font-size: var(--text-sm); font-weight: var(--font-bold); }
.article-text h6 { font-size: var(--text-sm); }

.article-text ul,
.article-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-text ul {
    list-style-type: disc;
}

.article-text ol {
    list-style-type: decimal;
}

.article-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-text strong {
    font-weight: var(--font-bold);
}

.article-text em {
    font-style: italic;
}

.article-text u {
    text-decoration: underline;
}

.article-text s {
    text-decoration: line-through;
}

.article-text a {
    color: var(--primary-green);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-text a:hover {
    color: #2d5a3d;
}

.article-text blockquote {
    border-left: 4px solid var(--primary-green);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
    background-color: #f9f9f9;
    padding: 1rem 1.5rem;
    border-radius: 4px;
}

.article-text code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-text pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-text pre code {
    background: none;
    padding: 0;
}

.back-link {
    color: var(--black);
    text-decoration: none;
    font-weight: var(--font-medium);
    border-bottom: 1px solid var(--black);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    display: inline-block;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.back-link:hover {
    color: #666;
    border-bottom-color: #666;
}

.back-link-container {
    margin-top: 2rem;
    margin-bottom: 0;
    padding: 0 ;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    
    
    .article-section {
        padding: 2rem 0;
    }
    
    .article-content {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    
    .article-text {
        font-size: var(--text-sm);
    }
}