/* Specyficzne style dla bloga */

/* Hero sekcja bloga */
.blog-hero {
    padding: 150px 0 100px;
    background-color: var(--darker-bg);
    position: relative;
    text-align: center;
}

.blog-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 230, 118, 0.15) 0%, transparent 30%),
                    radial-gradient(circle at 80% 70%, rgba(158, 0, 255, 0.1) 0%, transparent 30%);
    z-index: 0;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), #64ffda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.blog-hero-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Kategorie bloga */
.blog-categories {
    padding: 20px 0;
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.categories-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-button {
    padding: 8px 20px;
    border-radius: 30px;
    background-color: var(--dark-card);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-button:hover,
.category-button.active {
    background-color: var(--primary-color);
    color: var(--darker-bg);
    border-color: var(--primary-color);
}

/* Sekcja postów */
.blog-posts {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.post-card {
    background-color: var(--dark-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 230, 118, 0.3);
}

.post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--darker-bg);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.post-content h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-content h2 a {
    color: var(--text-color);
    transition: var(--transition);
}

.post-content h2 a:hover {
    color: var(--primary-color);
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    margin-top: auto;
}

.read-more i {
    margin-left: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* CTA sekcja */
.blog-cta {
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.cta-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--dark-card);
    color: var(--text-color);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: 15px 25px;
}

.form-info {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Wpis bloga - pojedynczy artykuł */
.blog-article {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.article-main {
    background-color: var(--dark-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.article-header {
    padding: 40px 40px 0;
}

.article-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--darker-bg);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.article-featured-image {
    margin-bottom: 40px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    padding: 0 40px 40px;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 20px;
    color: var(--text-light);
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.article-content blockquote {
    background-color: rgba(0, 230, 118, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    color: var(--text-color);
    font-style: italic;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.article-content a:hover {
    color: var(--primary-dark);
}

.article-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags span {
    display: inline-block;
    padding: 6px 15px;
    background-color: var(--dark-bg);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.article-tags span:hover {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--primary-color);
}

.article-author {
    margin-top: 50px;
    padding: 30px;
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    display: flex;
    gap: 20px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.author-info p {
    color: var(--text-light);
}

.author-social {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.author-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--dark-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.author-social a:hover {
    background-color: var(--primary-color);
    color: var(--darker-bg);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 30px);
    align-self: flex-start;
}

.sidebar-widget {
    background-color: var(--dark-card);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-size: 0.95rem;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form button {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius);
    border: none;
    background-color: var(--primary-color);
    color: var(--darker-bg);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    background-color: var(--primary-dark);
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post {
    display: flex;
    gap: 15px;
}

.recent-post-image {
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post-info h4 a {
    color: var(--text-color);
    transition: var(--transition);
}

.recent-post-info h4 a:hover {
    color: var(--primary-color);
}

.recent-post-info .post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.categories-list a:hover {
    color: var(--primary-color);
}

.categories-list a span {
    display: inline-block;
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--dark-bg);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: var(--darker-bg);
}

/* Komentarze */
.article-comments {
    margin-top: 50px;
}

.comments-count {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.comment-content {
    color: var(--text-light);
    margin-bottom: 15px;
}

.comment-reply {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.comment-form {
    margin-top: 50px;
}

.comment-form h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Powiązane wpisy */
.related-posts {
    margin-top: 80px;
}

.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsywność dla bloga */
@media screen and (max-width: 1200px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero-content p {
        font-size: 1.1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header {
        padding: 30px 30px 0;
    }
    
    .article-content {
        padding: 0 30px 30px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
