/* ========================================
   FEATURED ARTICLE STYLES - DOPORUČENÝ ČLÁNEK
   ======================================== */

/* Featured Article Section */
.featured-article-section {
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Featured Article Card */
.featured-article {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* Featured Badge */
.featured-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 24px 24px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Featured Content Container */
.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    color: #fff;
    align-items: center;
}

/* Featured Image */
.featured-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.featured-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

/* Featured Text */
.featured-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-text .article-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.featured-text .article-category {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 6px 12px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.featured-text .article-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
}

.featured-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.featured-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.featured-title a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.featured-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* Featured Footer */
.featured-footer {
    padding-top: 12px;
}

.read-more-featured {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.read-more-featured:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(4px);
}

.read-more-featured .link-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.read-more-featured:hover .link-icon {
    transform: translate(4px, -4px);
}

/* Articles Section Heading */
.articles-section {
    margin-top: 60px;
}

.articles-heading {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a1a;
    padding-bottom: 16px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

/* Admin Button Styles for Featured Articles */
.admin-btn-success {
    background-color: #10b981;
    color: white;
    border: none;
}

.admin-btn-success:hover {
    background-color: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-content {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }

    .featured-image {
        order: -1;
    }

    .featured-image img {
        height: 250px;
    }

    .featured-title {
        font-size: 24px;
    }

    .featured-excerpt {
        font-size: 14px;
    }

    .featured-badge {
        margin: 16px 16px 0;
    }
}

@media (max-width: 480px) {
    .featured-article {
        border-radius: 12px;
    }

    .featured-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .featured-content {
        padding: 16px;
    }

    .featured-image img {
        height: 200px;
    }

    .featured-title {
        font-size: 20px;
    }

    .featured-excerpt {
        font-size: 13px;
    }

    .read-more-featured {
        font-size: 14px;
        padding: 10px 16px;
    }

    .articles-heading {
        font-size: 22px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .featured-article {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .featured-article:hover {
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    }

    .articles-heading {
        color: #f5f5f5;
        border-bottom-color: #8b5cf6;
    }
}

/* Print Styles */
@media print {
    .featured-article {
        page-break-inside: avoid;
        box-shadow: none;
        border: 2px solid #667eea;
    }

    .featured-content {
        display: block;
    }

    .featured-image {
        margin-bottom: 20px;
        max-width: 100%;
    }
}

/* ========================================
   LATEST ARTICLES SECTION - HOMEPAGE
   ======================================== */

.latest-articles-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 0;
    margin-top: 60px;
}

.latest-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 20px;
}

.latest-articles-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.latest-articles-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.view-all-articles-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-all-articles-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
}

.view-all-articles-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.view-all-articles-btn:hover svg {
    transform: translate(4px, -4px);
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.latest-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.latest-article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.latest-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.latest-article-card:hover .latest-article-image img {
    transform: scale(1.08);
}

.latest-article-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.latest-article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.latest-article-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.latest-article-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-article-title a:hover {
    color: #667eea;
}

.latest-article-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
}

.latest-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    gap: 12px;
}

.latest-article-date {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.latest-article-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.latest-article-link:hover {
    color: #764ba2;
}

.latest-article-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.latest-article-link:hover svg {
    transform: translate(3px, -3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .latest-articles-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-all-articles-btn {
        width: 100%;
        justify-content: center;
    }

    .latest-articles-grid {
        grid-template-columns: 1fr;
    }

    .latest-articles-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .latest-articles-section {
        padding: 40px 0;
        margin-top: 40px;
    }

    .latest-articles-title {
        font-size: 20px;
    }

    .latest-articles-subtitle {
        font-size: 14px;
    }

    .latest-article-content {
        padding: 16px;
    }

    .latest-article-title {
        font-size: 16px;
    }

    .latest-article-excerpt {
        font-size: 13px;
    }
}
