/* ===== ARTICLE SPECIFIC STYLES ===== */

/* Article Page Layout */
.article-page {
    padding-top: calc(var(--header-height) + 40px); /* Přidáno více padding-top */
    background: var(--white);
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-top: 0; /* Ujisti se, že není žádný negativní margin */
}

/* Ujisti se, že breadcrumb má dostatek místa nahoře */
.article-breadcrumb {
    margin-bottom: 32px;
    padding-top: 20px; /* Přidáno padding nahoře */
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gray-500);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb i {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.article-header .article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-header .hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--gray-600);
    text-align: center;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Article Content */
.article-content {
    padding: 80px 0;
    background: var(--white);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    position: relative;
}

/* Typography */
.article-body h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--gray-900);
    margin: 48px 0 24px;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    padding-left: 20px;
}

.article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.article-body h3 {
    font-size: 1.6rem;
    color: var(--gray-900);
    margin: 36px 0 18px;
    font-weight: 600;
    line-height: 1.4;
}

.article-body h4 {
    font-size: 1.3rem;
    color: var(--gray-900);
    margin: 24px 0 12px;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 24px;
    color: var(--gray-700);
}

.article-body strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* Lists */
.article-body ul,
.article-body ol {
    margin: 24px 0;
    padding-left: 32px;
}

.article-body li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.article-body ul li {
    position: relative;
}

.article-body ul li::marker {
    color: var(--primary);
}

/* Blockquotes */
.article-body blockquote {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-left: 4px solid var(--primary);
    padding: 32px;
    margin: 40px 0;
    border-radius: 12px;
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

.article-body blockquote p {
    margin-bottom: 16px;
    color: var(--gray-700);
}

.article-body blockquote em {
    color: var(--gray-600);
    font-size: 0.95rem;
    display: block;
    margin-top: 16px;
    text-align: right;
}

/* Highlight Boxes */
.highlight-box {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 32px;
    border-radius: 16px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.highlight-box > * {
    position: relative;
    z-index: 2;
}

.highlight-box h3 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.highlight-box ul {
    text-align: left;
    margin: 16px 0 0;
    padding-left: 24px;
}

.highlight-box li {
    margin-bottom: 8px;
    color: var(--white);
}

/* Priority Alert Boxes */
.priority-box {
    padding: 24px;
    margin: 32px 0;
    border-radius: 12px;
    border-left: 4px solid;
    font-weight: 500;
}

.priority-critical {
    background: #fef2f2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.priority-high {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.priority-medium {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #075985;
}

.priority-box h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.priority-box p {
    margin: 0;
    font-size: 0.95rem;
}

/* Tables */
.price-table {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    padding: 20px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
    border-bottom: 2px solid var(--gray-200);
}

.price-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    vertical-align: top;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:nth-child(even) {
    background: var(--gray-50);
}

.price-table strong {
    color: var(--gray-900);
}

/* CTA Boxes */
.cta-box {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 48px 0;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.cta-box h3 {
    color: var(--gray-900);
    margin-bottom: 16px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-box p {
    margin-bottom: 24px;
    color: var(--gray-600);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cta-box .btn-primary,
.cta-box .btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-size: 1rem;
}

.cta-box .btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.cta-box .btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-box .btn-primary:hover,
.cta-box .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-box .btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Calculator Styles */
.calculator-box {
    background: var(--gray-50);
    padding: 32px;
    border-radius: 16px;
    margin: 32px 0;
    border: 1px solid var(--gray-200);
}

.calculator-box h3 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.calculator-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
}

.calculator-box input,
.calculator-box select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.calculator-box input:focus,
.calculator-box select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calculator-button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

.calculator-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.calculator-result {
    margin-top: 24px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    display: none;
}

.result-box {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--primary);
    display: inline-block;
}

.result-price {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.result-note {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: normal;
}

/* Checklist Styles */
.checklist-box {
    background: var(--gray-50);
    padding: 32px;
    border-radius: 16px;
    margin: 32px 0;
    border: 1px solid var(--gray-200);
}

.checklist-box h3 {
    margin-bottom: 20px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist-items {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.checklist-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.checklist-item input[type="checkbox"] {
    transform: scale(1.3);
    accent-color: var(--primary);
}

.checklist-item .priority-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto;
}

.priority-critical .priority-label {
    color: #dc2626;
}

.priority-high .priority-label {
    color: #d97706;
}

.priority-medium .priority-label {
    color: #0ea5e9;
}

.evaluation-box {
    margin-top: 24px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid var(--primary);
}

.evaluation-box h4 {
    margin-bottom: 12px;
    color: var(--gray-900);
}

.evaluation-box ul {
    margin: 0;
    padding-left: 20px;
}

.evaluation-box li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

/* Related Articles */
.related-articles {
    padding: 60px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gray-900);
}

.related-articles .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Social Share */
.social-share {
    position: sticky;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.social-share .share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.social-share .share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: calc(var(--header-height)); /* Umístěno pod navbar */
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 999;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .social-share {
        display: none;
    }
    
    .article-body {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .article-page {
        padding-top: calc(var(--header-height) + 20px); /* Menší padding na mobilu */
    }
    
    .article-header {
        padding: 30px 0; /* Menší padding na mobilu */
    }
    
    .article-breadcrumb {
        padding-top: 10px; /* Menší padding na mobilu */
    }
    
    .article-header .article-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .article-content {
        padding: 40px 0; /* Menší padding na mobilu */
    }
    
    .article-body {
        font-size: 1.1rem;
        padding: 0 16px;
    }
    
    .article-body h2 {
        font-size: 1.8rem;
        margin: 36px 0 20px;
    }
    
    .article-body h3 {
        font-size: 1.4rem;
        margin: 28px 0 16px;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .price-table {
        overflow-x: auto;
    }
    
    .price-table table {
        min-width: 600px;
    }
    
    .breadcrumb {
        justify-content: flex-start;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .article-page {
        padding-top: calc(var(--header-height) + 15px); /* Ještě menší na velmi malých zařízeních */
    }
    
    .article-header {
        padding: 20px 0;
    }
    
    .article-breadcrumb {
        padding-top: 5px;
        margin-bottom: 20px;
    }
    
    .article-content {
        padding: 30px 0;
    }
    
    .article-body {
        font-size: 1.05rem;
        padding: 0 12px;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
        padding-left: 16px;
    }
    
    .article-body h2::before {
        width: 3px;
    }
    
    .highlight-box,
    .cta-box,
    .calculator-box,
    .checklist-box {
        padding: 24px 20px;
        margin: 32px 0;
    }
    
    .price-table th,
    .price-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .related-articles .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .floating-contact,
    .social-share,
    .reading-progress,
    .cta-box,
    .related-articles {
        display: none;
    }
    
    .article-page {
        padding-top: 0;
    }
    
    .article-body {
        max-width: none;
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }
    
    .article-body h1,
    .article-body h2,
    .article-body h3 {
        color: #000;
        page-break-after: avoid;
    }
    
    .highlight-box {
        background: #f5f5f5 !important;
        color: #000 !important;
        border: 1px solid #ccc;
    }
    
    .price-table {
        border: 1px solid #000;
    }
    
    .price-table th,
    .price-table td {
        border: 1px solid #000;
    }
}

/* Animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-body > * {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus styles for accessibility */
.calculator-box input:focus,
.calculator-box select:focus,
.checklist-item:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}