/* ========================================
   BLOG PAGE STYLES - Minimalist List Style
   Following Abdullah's design pattern
   ======================================== */

/* Blog Container - Match Technologies Page */
.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

/* Blog Header - Left Aligned (Match Technologies) */
.blog-header {
    margin-bottom: 40px;
    text-align: left;
}

.blog-header h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.2;
}


/* Search Bar */
.blog-search {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    background: var(--box-color);
    border: 2px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Gabarito', sans-serif;
}

.search-input::placeholder {
    color: var(--gray);
    font-weight: 400;
}

.search-input:focus {
    border-color: var(--link);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    opacity: 0.6;
}

.search-icon svg {
    display: block;
}

/* Header Divider After Search */
.header-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 40px;
}

/* Blog Posts List - Minimalist Style */
.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Individual Post Item - No Cards, Clean List */
.blog-post-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Remove border from last visible post */
.blog-post-item.last-visible {
    border-bottom: none;
}

.blog-post-item:hover {
    padding-left: 20px;
}

/* Post Date */
.post-date {
    font-size: 15px;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

/* Post Title */
.post-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

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

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

/* Post Tags */
.post-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.post-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--link);
    padding: 2px 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.post-tag:hover {
    background: rgba(24, 119, 242, 0.1);
    color: var(--link);
    transform: translateY(-1px);
}

.post-tag:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    color: var(--gray);
    pointer-events: none;
}

/* Post Excerpt */
.post-excerpt {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* Pagination - Simple Style */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.pagination-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-button:hover:not(.disabled) {
    border-color: var(--link);
    color: var(--link);
    background: rgba(24, 119, 242, 0.05);
}

.pagination-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 15px;
    color: var(--gray);
    font-weight: 500;
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
}

.blog-empty p {
    font-size: 18px;
    color: var(--gray);
    margin: 0;
}

/* Dark Mode Adjustments */
.dark-Mode .search-input {
    background: var(--black-box);
    border-color: #333;
}

.dark-Mode .search-input:focus {
    border-color: var(--link);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}

.dark-Mode .header-divider,
.dark-Mode .blog-post-item {
    border-color: #333;
}

.dark-Mode .blog-pagination {
    border-color: #333;
}

.dark-Mode .pagination-button {
    background: var(--black-box);
    border-color: #333;
}

.dark-Mode .pagination-button:hover:not(.disabled) {
    background: rgba(24, 119, 242, 0.1);
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-header,
.blog-search,
.header-divider,
.blog-post-item {
    animation: fadeInUp 0.6s ease-out;
}

.blog-post-item:nth-child(1) { animation-delay: 0.1s; }
.blog-post-item:nth-child(2) { animation-delay: 0.15s; }
.blog-post-item:nth-child(3) { animation-delay: 0.2s; }
.blog-post-item:nth-child(4) { animation-delay: 0.25s; }
.blog-post-item:nth-child(5) { animation-delay: 0.3s; }

/* Responsive Design */

/* Mobile Devices */
@media (width <= 768px) {
    .blog-container {
        padding: 80px 20px 40px;
    }

    .blog-header {
        margin-bottom: 32px;
    }

    .blog-header h1 {
        font-size: 42px;
    }


    .blog-search {
        margin-bottom: 24px;
    }

    .search-input {
        padding: 12px 45px 12px 16px;
        font-size: 15px;
    }

    .header-divider {
        margin-bottom: 32px;
    }

    .blog-post-item {
        padding: 24px 0;
    }

    .blog-post-item:hover {
        padding-left: 12px;
    }

    .post-date {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .post-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .post-tags {
        margin-bottom: 10px;
    }

    .post-tag {
        font-size: 11px;
    }

    .post-excerpt {
        font-size: 15px;
    }

    .blog-pagination {
        margin-top: 40px;
        padding-top: 32px;
        gap: 12px;
    }

    .pagination-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .pagination-info {
        font-size: 14px;
    }
}

@media (width <= 480px) {
    .blog-container {
        padding: 80px 16px 30px;
    }

    .blog-header {
        margin-bottom: 28px;
    }

    .blog-header h1 {
        font-size: 36px;
    }


    .blog-search {
        margin-bottom: 20px;
    }

    .search-input {
        padding: 11px 42px 11px 14px;
        font-size: 14px;
    }

    .header-divider {
        margin-bottom: 28px;
    }

    .blog-post-item {
        padding: 20px 0;
    }

    .blog-post-item:hover {
        padding-left: 8px;
    }

    .post-date {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .post-title {
        font-size: 22px;
    }

    .post-tags {
        gap: 6px;
    }

    .post-tag {
        font-size: 10px;
    }

    .post-excerpt {
        font-size: 14px;
    }

    .blog-pagination {
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
    }

    .pagination-button {
        width: 100%;
        padding: 10px;
    }
}

/* Tablet Landscape */
@media (width >= 769px) and (width <= 1024px) {
    .blog-container {
        max-width: 900px;
        padding: 90px 30px 50px;
    }

    .blog-header h1 {
        font-size: 48px;
    }

    .post-title {
        font-size: 26px;
    }
}

/* Large Desktop */
@media (width >= 1400px) {
    .blog-container {
        max-width: 1200px;
        padding: 120px 40px 80px;
    }

    .blog-header h1 {
        font-size: 64px;
    }


    .search-input {
        padding: 16px 55px 16px 24px;
        font-size: 17px;
    }

    .blog-post-item {
        padding: 36px 0;
    }

    .post-title {
        font-size: 30px;
    }

    .post-excerpt {
        font-size: 17px;
    }
}