/* ==========================================
   TEMPLATE FEATURED TAGS - SPÓJNY Z DESIGNEM
   Kolory: #eb4814 (pomarańczowy), #1a2238 (ciemny)
   ========================================== */

:root {
    --color-primary: #eb4814;
    --color-secondary: #1a2238;
    --color-light: #f5f5f5;
    --color-border: #e0e0e0;
    --color-text: #333;
    --color-text-light: #666;
}

/* Link powrotu do listy wpisów */
.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s;
}

.post-back-link:hover {
    color: var(--color-secondary);
}

/* Kontener główny */
.post-featured-theme {
    background: #fff;
    border-top-left-radius: 50px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.post-featured-theme:hover {
    box-shadow: 0 4px 16px rgba(235, 72, 20, 0.12);
}

/* ========== MINIATURA ========== */
.featured-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 320px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.featured-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-image-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.featured-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(26, 34, 56, 0.3) 100%);
    pointer-events: none;
}

/* ========== ZAWARTOŚĆ ========== */
.post-featured-body {
    padding: 1.8rem;
}

.post-featured-header {
    max-width: 68ch;
    margin: 0 auto 1.75rem auto;
}

/* Pigułka kategorii nad tytułem — ten sam wzorzec co plakietka nad H1 na liście bloga */
.post-category-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(235, 72, 20, 0.1);
    color: var(--color-primary);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.post-category-badge a {
    color: inherit;
    text-decoration: none;
}

.post-category-badge a:hover {
    text-decoration: underline;
}

.post-featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 1.1rem 0;
    word-break: break-word;
}

/* ========== META INFORMACJE ========== */
.post-featured-meta {
    display: flex;
    align-items: center;
}

.post-comments-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(235, 72, 20, 0.1);
    color: var(--color-primary);
    padding: 0.35rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ========== ZAWARTOŚĆ ARTYKUŁU ========== */
.post-featured-content {
    max-width: 68ch;
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--color-text);
    margin: 2rem auto;
}

.post-featured-content p {
    margin-bottom: 1.5rem;
}

.post-featured-content h2,
.post-featured-content h3,
.post-featured-content h4,
.post-featured-content h5,
.post-featured-content h6 {
    color: var(--color-secondary);
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.post-featured-content h2 {
    font-size: 1.8rem;
}

.post-featured-content h3 {
    font-size: 1.5rem;
}

.post-featured-content a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s;
}

.post-featured-content a:hover {
    color: var(--color-secondary);
}

.post-featured-content ul,
.post-featured-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    padding-left: 1.5rem;
}

.post-featured-content li {
    margin-bottom: 0.8rem;
}

.post-featured-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background: var(--color-light);
    color: var(--color-text-light);
}

.post-featured-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-featured-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-featured-content table th {
    background: var(--color-secondary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.post-featured-content table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.post-featured-content table tr:hover td {
    background: var(--color-light);
}

/* Paginacja dla wpisów */
.posts-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.posts-pagination a,
.posts-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.posts-pagination a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.posts-pagination span.current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ========== TAGI NA DOLE ========== */
.post-featured-footer {
    padding: 1.5rem 1.8rem;
    background: linear-gradient(90deg, rgba(235, 72, 20, 0.04) 0%, rgba(26, 34, 56, 0.04) 100%);
    border-top: 1px solid var(--color-light);
}

.tags-section {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tags-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-secondary);
    white-space: nowrap;
    padding-top: 0.3rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.tag-item {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: #fff;
    color: var(--color-primary);
    text-decoration: none;
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.tag-item:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 72, 20, 0.2);
}

.tag-item:active {
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .featured-image-wrapper {
        height: 300px;
    }
    
    .post-featured-body {
        padding: 1.5rem;
    }
    
    .post-featured-footer {
        padding: 1.5rem;
    }
    
    .post-featured-title {
        font-size: 1.9rem;
    }

    .post-featured-content {
        font-size: 1.05rem;
    }
    
    .tags-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tags-title {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .tags-list {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .featured-image-wrapper {
        height: 250px;
    }
    
    .post-featured-body {
        padding: 1rem;
    }
    
    .post-featured-footer {
        padding: 1rem;
    }
    
    .post-featured-title {
        font-size: 1.6rem;
    }

    .tag-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}
