* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

header {
    background: #1a1a1a;
    color: white;
    padding: 1rem 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-family: "Drogowskaz"; 
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}
.logo-subtitle {
    font-size: 1rem;
    font-family: "Drogowskaz"; 
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.header-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.category-selector {
    background: white;
    border-bottom: 3px solid #ff4444;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.category-tabs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: thin;          /* "auto" or "thin" */
  	scrollbar-color: #ff7555 gray;   /* scroll thumb and track */ 
}

.category-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.category-tab:hover {
    color: #ff4444;
}

.category-tab.active {
    color: #ff4444;
    border-bottom-color: #ff4444;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.news-content {
    padding: 1.5rem;
}


.news-category {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.news-type {
    display: inline-block;
    background: #FFFF00;
    color: black;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.news-region {
    font-weight: 600;
    color: #ff4444;
}

.section-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #ff4444;
    display: inline-block;
}

.no-news {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    font-size: 1.2rem;
}

/* Article page styles */
.article-full {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: #ff4444;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb .current {
    color: #999;
}

.article-header {
    margin-bottom: 0rem;
    background: #ffffff;
}

.article-meta-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.article-category {
    background: #ff4444;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-region {
    background: #f0f0f0;
    color: #666;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}
.article-type {
    background: #FFFF00;
    color: black;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.article-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0.8rem;
}

/* ========================================
   AUDIO PLAYER STYLES
   ======================================== */

.audio-player-container {
	diplay: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem;
    width: 100%;
}

.audio-player-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.audio-icon {
    font-size: 1.5rem;
}

.audio-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.8rem;
}

.audio-player {
    width: 100%;
    height: 35px;
    border-radius: 8px;
    outline: none;
}

.audio-player:focus {
    outline: 2px solid #ff4444;
    outline-offset: 1px;
}

/* Custom styling for audio controls (works in some browsers) */
.audio-player::-webkit-media-controls-panel {
    background-color: #ffffff;
    border-radius: 8px;
}

.audio-player::-webkit-media-controls-play-button,
.audio-player::-webkit-media-controls-pause-button {
    background-color: #ff4444;
    border-radius: 50%;
}

.audio-player::-webkit-media-controls-current-time-display,
.audio-player::-webkit-media-controls-time-remaining-display {
    color: #495057;
}

/* ========================================
   END AUDIO PLAYER STYLES
   ======================================== */

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 2rem;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-details strong {
    color: #1a1a1a;
}

.author-role {
    font-size: 0.85rem;
    color: #999;
}

.article-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;

}

.article-image {
    margin: 1rem 0;
}

.placeholder-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border-radius: 8px;
    overflow: hidden;
}

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

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

.article-content h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 2.5rem 0 1rem 0;
}

.article-content ul {
    margin: 1.5rem 0 1.5rem 2rem;
}

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

.article-quote {
    background: #f8f9fa;
    border-left: 4px solid #ff4444;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.15rem;
    color: #555;
}

.article-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.article-tags strong {
    margin-right: 1rem;
    color: #666;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    margin: 0.3rem;
    transition: background 0.3s;
}

.tag:hover {
    background: #ff4444;
    color: white;
}

.article-share {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.article-share strong {
    display: block;
    margin-bottom: 1rem;
    color: #666;
}

.share-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
}

/* ========================================
   SEKCJA KOMENTARZY
   ======================================== */

.comments-section {
    max-width: 800px;
    margin: 3rem auto 0;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #ff4444;
}

.comments-title {
    font-size: 2rem;
    color: #1a1a1a;
}

.comments-count {
    background: #ff4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.comment-form {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4444;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #e33333;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.comments-list {
    margin-top: 2rem;
}

.comment {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: white;
    transition: box-shadow 0.3s;
}

.comment:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.comment-date {
    color: #999;
    font-size: 0.85rem;
}

.comment-text {
    color: #555;
    line-height: 1.6;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.no-comments {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

.error-message {
    background: #ffe6e6;
    color: #cc0000;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.success-message {
    background: #e6ffe6;
    color: #006600;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* ========================================
   KONIEC SEKCJI KOMENTARZY
   ======================================== */

.related-articles {
    max-width: 800px;
    margin: 3rem auto 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-image {
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.related-content {
    padding: 1rem;
}

.related-category {
    font-size: 0.75rem;
    color: #ff4444;
    font-weight: 600;
    text-transform: uppercase;
}

.related-content h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #1a1a1a;
}

.related-date {
    font-size: 0.85rem;
    color: #999;
}

.site-footer {
    background: #1a1a1a;
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #ff4444;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff4444;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
    color: #999;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

.logo {
    font-size: 1rem;
    font-family: "Drogowskaz"; 
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}
.logo-subtitle {
    font-size: 0.5rem;
    font-family: "Drogowskaz"; 
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

    .article-meta-top {
        flex-wrap: wrap;
        justify-content: left;
    }
    
    .article-meta {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-tabs {
        padding: 0 1rem;
    }
    
    .category-tab {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .article-full,
    .comments-section {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-lead {
        font-size: 1.05rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .placeholder-image {
        height: 250px;
        font-size: 4rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .comments-title {
        font-size: 1.5rem;
    }
    
    .comment-form {
        padding: 1rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }

    /* Audio player responsive */
    .audio-player-container {
        padding: 1rem;
    }
    
    .audio-label {
        font-size: 0.9rem;
    }
}