/* ==============================================
   STYLE DLA WSZYSTKICH POJEDYNCZYCH SZABLONÓW
   ============================================== */

/* ===== WSPÓLNE STYLE ===== */
.single-species-main,
.single-guide-main,
.single-post-main,
.single-page-main {
    background: #f8f9fa;
    min-height: 100vh;
}

.breadcrumbs-section {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.breadcrumbs-nav {
    font-size: 0.9rem;
    color: #6b7280;
}

.breadcrumbs-nav a {
    color: #16a34a;
    text-decoration: none;
}

.breadcrumbs-nav a:hover {
    text-decoration: underline;
}

/* ===== WSPÓLNE STYLE ARTYKUŁÓW ===== */
.species-article,
.guide-article,
.post-article,
.page-article {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem 0;
}

/* ===== HEADERY ===== */
.species-header,
.guide-header {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 3rem 2rem;
    position: relative;
}

.species-header::before,
.guide-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.post-header,
.page-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.species-title,
.guide-title,
.post-title,
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.post-title,
.page-title {
    color: #1f2937;
}

.species-scientific-name {
    font-size: 1.25rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* ===== META INFORMACJE ===== */
.species-meta-info,
.guide-meta-info,
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

/* Kontynuacja CSS dla pojedynczych szablonów */

.post-meta {
   color: #6b7280;
   font-size: 0.9rem;
   margin-bottom: 1.5rem;
}

.meta-badge {
   background: rgba(255, 255, 255, 0.2);
   color: white;
   padding: 0.5rem 1rem;
   border-radius: 25px;
   font-size: 0.85rem;
   font-weight: 500;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.post-meta span {
   display: flex;
   align-items: center;
   gap: 0.25rem;
   margin-right: 1rem;
}

.difficulty-łatwa { background: rgba(34, 197, 94, 0.3) !important; }
.difficulty-średnia { background: rgba(251, 191, 36, 0.3) !important; }
.difficulty-trudna { background: rgba(239, 68, 68, 0.3) !important; }

/* ===== OBRAZKI WYRÓŻNIAJĄCE ===== */
.species-featured-image,
.guide-featured-image,
.post-featured-image,
.page-featured-image {
   text-align: center;
   margin: 1.5rem 0;
}

.species-featured-image img,
.guide-featured-image img {
   max-width: 100%;
   height: auto;
   border-radius: 12px;
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-featured-image img,
.page-featured-image img {
   max-width: 100%;
   height: auto;
   border-radius: 12px;
}

/* ===== GŁÓWNA TREŚĆ ===== */
.species-main-content,
.guide-main-content {
   padding: 2rem;
}

.post-content,
.page-content,
.species-content-wrapper,
.guide-content-wrapper {
   padding: 1.5rem 0;
   font-size: 1.1rem;
   line-height: 1.7;
   color: #374151;
}

.species-content-wrapper,
.guide-content-wrapper {
   padding: 0;
}

/* Style dla treści */
.post-content h2,
.page-content h2,
.species-content-wrapper h2,
.guide-content-wrapper h2 {
   color: #16a34a;
   font-weight: 600;
   margin-top: 2rem;
   margin-bottom: 1rem;
   padding-bottom: 0.5rem;
   border-bottom: 2px solid #f0fdf4;
}

.post-content h3,
.page-content h3,
.species-content-wrapper h3,
.guide-content-wrapper h3 {
   color: #374151;
   font-weight: 600;
   margin-top: 1.5rem;
   margin-bottom: 1rem;
}

.post-content p,
.page-content p,
.species-content-wrapper p,
.guide-content-wrapper p {
   margin-bottom: 1.2rem;
}

.post-content ul,
.page-content ul,
.species-content-wrapper ul,
.guide-content-wrapper ul {
   margin-bottom: 1.2rem;
   padding-left: 1.5rem;
}

.post-content li,
.page-content li,
.species-content-wrapper li,
.guide-content-wrapper li {
   margin-bottom: 0.5rem;
}

/* ===== SIDEBAR ===== */
.species-sidebar,
.guide-sidebar,
.post-sidebar {
   padding-left: 1rem;
}

.species-meta-box,
.guide-meta-box,
.species-categories-box,
.guide-categories-box,
.species-tags-box,
.guide-tags-box,
.widget {
   background: white;
   border: 1px solid #e5e7eb;
   border-radius: 12px;
   padding: 1.5rem;
   margin-bottom: 1.5rem;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.meta-box-title,
.widget h3 {
   color: #16a34a;
   font-size: 1.1rem;
   font-weight: 600;
   margin-bottom: 1rem;
   padding-bottom: 0.5rem;
   border-bottom: 1px solid #e5e7eb;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.meta-box-content {
   font-size: 0.9rem;
}

.meta-item {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   padding: 0.75rem 0;
   border-bottom: 1px solid #f3f4f6;
}

.meta-item:last-child {
   border-bottom: none;
}

.meta-label {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   color: #6b7280;
   font-weight: 500;
   flex: 1;
}

.meta-value {
   color: #374151;
   font-weight: 600;
   text-align: right;
   flex: 1;
}

/* ===== KATEGORIE I TAGI ===== */
.categories-list,
.tags-list {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
}

.category-link,
.tag-link {
   display: inline-block;
   padding: 0.375rem 0.75rem;
   background: #16a34a;
   color: white;
   text-decoration: none;
   border-radius: 15px;
   font-size: 0.8rem;
   font-weight: 500;
   transition: all 0.3s ease;
}

.category-link:hover {
   background: #15803d;
   color: white;
   text-decoration: none;
   transform: translateY(-1px);
}

.tag-link {
   background: #6b7280;
}

.tag-link:hover {
   background: #4b5563;
   color: white;
}

/* ===== GALERIA (tylko dla species) ===== */
.species-gallery {
   margin-top: 2rem;
}

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

.gallery-item img {
   width: 100%;
   height: 150px;
   object-fit: cover;
   border-radius: 8px;
   transition: transform 0.3s ease;
}

.gallery-item img:hover {
   transform: scale(1.05);
}

/* ===== BIBLIOGRAFIA ===== */
.species-footer,
.guide-footer {
   background: #f8f9fa;
   border-top: 1px solid #e5e7eb;
   padding: 2rem;
}

.species-bibliography,
.guide-bibliography {
   background: white;
   border-radius: 12px;
   padding: 1.5rem;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.species-bibliography h3,
.guide-bibliography h3 {
   color: #16a34a;
   font-size: 1.3rem;
   margin-bottom: 1rem;
   padding-bottom: 0.5rem;
   border-bottom: 2px solid #e5e7eb;
   display: flex;
   align-items: center;
   gap: 0.5rem;
   position: relative;
}

.species-bibliography h3::after,
.guide-bibliography h3::after {
   content: '';
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 60px;
   height: 2px;
   background: #16a34a;
}

.bibliography-content {
   line-height: 1.6;
   color: #374151;
}

.bibliography-content ul,
.bibliography-content ol {
   padding-left: 1.5rem;
}

.bibliography-content li {
   margin-bottom: 0.5rem;
}

/* ===== POST FOOTER ===== */
.post-footer {
   padding: 1.5rem 2rem;
   border-top: 1px solid #e5e7eb;
   background: #f8f9fa;
}

.post-categories,
.post-tags {
   margin-bottom: 1rem;
}

.post-categories h4,
.post-tags h4 {
   color: #374151;
   font-size: 0.9rem;
   font-weight: 600;
   margin-bottom: 0.5rem;
}

/* ===== SIDEBAR WIDGETY ===== */
.recent-posts-list {
   list-style: none;
   padding: 0;
}

.recent-posts-list li {
   padding: 0.75rem 0;
   border-bottom: 1px solid #f3f4f6;
}

.recent-posts-list li:last-child {
   border-bottom: none;
}

.recent-posts-list a {
   color: #374151;
   text-decoration: none;
   font-weight: 500;
   display: block;
   margin-bottom: 0.25rem;
}

.recent-posts-list a:hover {
   color: #16a34a;
}

.recent-posts-list .post-date {
   color: #9ca3af;
   font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
   .species-title,
   .guide-title,
   .post-title,
   .page-title {
       font-size: 2rem;
   }
   
   .species-header,
   .guide-header {
       padding: 2rem 1.5rem;
   }
   
   .species-main-content,
   .guide-main-content {
       padding: 1.5rem;
   }
   
   .species-sidebar,
   .guide-sidebar,
   .post-sidebar {
       padding-left: 0;
       margin-top: 2rem;
   }
}

@media (max-width: 767.98px) {
   .species-title,
   .guide-title,
   .post-title,
   .page-title {
       font-size: 1.75rem;
   }
   
   .species-scientific-name {
       font-size: 1rem;
   }
   
   .species-meta-info,
   .guide-meta-info,
   .post-meta {
       flex-direction: column;
       gap: 0.5rem;
   }
   
   .meta-item {
       flex-direction: column;
       align-items: flex-start;
       gap: 0.25rem;
   }
   
   .meta-value {
       text-align: left;
   }
   
   .gallery-grid {
       grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
       gap: 0.75rem;
   }
   
   .gallery-item img {
       height: 100px;
   }
}

@media (max-width: 575.98px) {
   .species-header,
   .guide-header {
       padding: 1.5rem 1rem;
   }
   
   .post-header,
   .page-header {
       padding: 1.5rem;
   }
   
   .species-main-content,
   .guide-main-content {
       padding: 1rem;
   }
   
   .post-content,
   .page-content {
       padding: 1rem 1.5rem;
   }
   
   .species-meta-box,
   .guide-meta-box,
   .widget {
       padding: 1rem;
   }
   
   .species-footer,
   .guide-footer,
   .post-footer {
       padding: 1rem;
   }
}