/* Poprawki układu strony bloga */

/* Główny kontener bloga */
.blog-container {
    margin: 3rem auto 4rem;
    max-width: 1200px;
}

/* Nagłówki sekcji */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Karty wpisów */
.blog-post-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--light-bg-1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.blog-post-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-post-title a {
    color: var(--title-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.blog-post-meta .post-date,
.blog-post-meta .post-author {
    display: flex;
    align-items: center;
}

.blog-post-meta .post-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.blog-post-meta .post-author::before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.blog-post-categories {
    margin: 0.75rem 0 1rem;
}

.category-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.category-badge:hover {
    background-color: rgba(var(--primary-rgb), 0.2);
}

.blog-post-preview {
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
    padding: 0.35rem 0;
    position: relative;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.read-more-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Thumbnail */
.thumbnail-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail-link:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.blog-thumbnail, .default-blog-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 30px;
}

.sidebar-section {
    background-color: var(--light-bg-1);
    border-radius: 12px;
    margin-bottom: 1.75rem;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--title-color);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-item {
    margin-bottom: 0.75rem;
}

.sidebar-category-item:last-child {
    margin-bottom: 0;
}

.sidebar-category-item a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar-category-item a:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-category-item.active a {
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.1);
    font-weight: 500;
}

.sidebar-category-item i {
    margin-right: 0.75rem;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

.sidebar-post-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-link {
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 6px;
    margin: -0.5rem;
}

.sidebar-post-link:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary-color);
}

.sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.sidebar-post-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.sidebar-post-meta .post-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    margin-right: 0.35rem;
    font-size: 0.75rem;
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 86, 179, 0.25);
    border: none;
}

.newsletter-section .sidebar-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    padding-bottom: 0.75rem;
}

.newsletter-section .sidebar-title::after {
    background: white;
}

.newsletter-form .form-control {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form .btn {
    padding: 0.75rem;
    border-radius: 6px;
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.newsletter-form .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Promo Section */
.promo-section {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: none;
}

.promo-banner {
    background: linear-gradient(135deg, #ff8800, #ff9e1f);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(255, 136, 0, 0.25);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 1;
}

.promo-banner h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.promo-banner p {
    opacity: 0.9;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.promo-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.promo-banner .btn {
    background-color: white;
    color: #ff8800;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 2;
    text-decoration: none;
    display: inline-block;
}

.promo-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 6px;
    background-color: var(--light-bg-2);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.page-link:hover {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-color);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.page-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
}

/* Responsywność */
@media (max-width: 1199px) {
    .blog-container {
        max-width: 960px;
    }
}

@media (max-width: 991px) {
    .blog-container {
        max-width: 720px;
    }
    
    .blog-sidebar {
        margin-top: 2rem;
        position: static;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .blog-container {
        max-width: 540px;
        margin: 2rem auto 3rem;
    }
    
    .blog-post-card {
        padding: 1.25rem;
    }
    
    .blog-post-title {
        font-size: 1.25rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .thumbnail-link {
        margin-bottom: 1.25rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .blog-container {
        max-width: 100%;
        padding: 0 1rem;
        margin: 1.5rem auto 2.5rem;
    }
    
    .blog-post-card {
        padding: 1rem;
    }
    
    .blog-post-title {
        font-size: 1.15rem;
    }
}

/* Poprawki dla ciemnego motywu */
body.dark-mode .blog-post-card {
    background-color: var(--dark-card, #2d2d2d);
    border-color: var(--dark-border, #3d3d3d);
}

body.dark-mode .sidebar-section {
    background-color: var(--dark-card, #2d2d2d);
    border-color: var(--dark-border, #3d3d3d);
}

body.dark-mode .sidebar-post-item {
    border-color: var(--dark-border, #3d3d3d);
}

body.dark-mode .page-link {
    background-color: var(--dark-card, #2d2d2d);
    border-color: var(--dark-border, #3d3d3d);
    color: var(--dark-text, #e0e0e0);
}

body.dark-mode .page-link:hover {
    background-color: rgba(var(--primary-rgb), 0.25);
    color: var(--primary-light, #1a8cff);
}

body.dark-mode .page-link.active {
    background-color: var(--primary-color);
    color: white;
}

body.dark-mode .sidebar-category-item a:hover {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-light, #1a8cff);
}

body.dark-mode .sidebar-category-item.active a {
    color: var(--primary-light, #1a8cff);
    background-color: rgba(var(--primary-rgb), 0.15);
}
/* Style dla domyślnych miniatur wpisów */

.default-blog-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
    text-align: center;
}

/* Klasy tematyczne dla kategorii */
.hosting-theme {
    background: linear-gradient(135deg, #0056b3, #007bff);
}

.domains-theme {
    background: linear-gradient(135deg, #ff8800, #ff9e1f);
}

.tips-theme {
    background: linear-gradient(135deg, #28a745, #5cb85c);
}

.wordpress-theme {
    background: linear-gradient(135deg, #21759b, #0099CC);
}

.security-theme {
    background: linear-gradient(135deg, #dc3545, #f56565);
}

.tech-theme {
    background: linear-gradient(135deg, #6f42c1, #9275d1);
}

.blog-theme {
    background: linear-gradient(135deg, #5a6268, #868e96);
}

/* Elementy miniaturki */
.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.thumbnail-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 1rem;
    border-radius: 50px;
}

.thumbnail-title {
    font-size: 1.2rem;
    font-weight: 600;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Efekt dekoracyjny */
.default-blog-thumbnail::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 1;
    opacity: 0.5;
}

.default-blog-thumbnail .category-icon,
.default-blog-thumbnail .thumbnail-category,
.default-blog-thumbnail .thumbnail-title {
    position: relative;
    z-index: 2;
}

/* Hover efekt */
a:hover .default-blog-thumbnail {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsywność */
@media (max-width: 768px) {
    .category-icon {
        font-size: 2rem;
    }
    
    .thumbnail-category {
        font-size: 0.8rem;
    }
    
    .thumbnail-title {
        font-size: 1rem;
    }
}

/* Dostosowania dla ciemnego motywu */
body.dark-mode .default-blog-thumbnail {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode a:hover .default-blog-thumbnail {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
/* Poprawki układu kolumn dla bloga - wersja 2 */

/* Układ głównego kontenera */
.blog-container .row {
    display: flex;
    flex-wrap: wrap;
}

/* Naprawienie kolumn na większych ekranach */
@media (min-width: 992px) {
    .content-column {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
        float: left;
    }
    
    .sidebar-column {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        float: right;
    }
    
    /* Clearfix po rzędzie */
    .blog-container .row:after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* Wymuszenie prawidłowego layoutu */
    .blog-container .row {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

/* Poprawki dla bootstrap */
.col-lg-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-lg-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .col-lg-8 {
        -ms-flex: 0 0 66.666667%;
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-lg-4 {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Ustawienia dla sidebara */
.blog-sidebar {
    position: relative;
}

@media (min-width: 992px) {
    .blog-sidebar {
        position: sticky;
        top: 30px;
    }
}
