/* blog-page.css */
/* =============================================================================
   BLOG PAGE STYLES (index.php & blog templates)
============================================================================= */

.blog-wrapper {
    background: linear-gradient(to right, #132741, #3264A7) !important;
    min-height: 100vh !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 80px 0 0 0 !important;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.blog-title {
    text-align: center;
    padding: 3rem 0 2rem 0;
}

.blog-title h1 {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
    color: white !important;
}

.blog-title-line {
    height: 4px;
    width: 80px;
    background: white;
    margin: 0 auto;
    border-radius: 2px;
}

/* Featured Posts Section */
.featured-section {
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-image {
    height: 250px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-category {
    color: #fbbf24;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.featured-title {
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.3 !important;
}

.featured-title a {
    color: white !important;
    text-decoration: none !important;
}

.featured-excerpt {
    color: #d1d5db !important;
    margin: 0 0 1.5rem 0 !important;
    opacity: 0.9;
    line-height: 1.5;
    flex-grow: 1;
}

.featured-button {
    display: inline-flex;
    align-items: center;
    background: #fbbf24;
    color: #000 !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.featured-button:hover {
    background: #f59e0b;
    color: #000 !important;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid #374151;
    padding-bottom: 1rem;
    margin-bottom: 0 !important;
}

.category-tab {
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    color: #9ca3af;
}

.category-tab.active {
    color: white;
    border-bottom: 2px solid #fbbf24;
    padding-bottom: 0.5rem;
}

.category-tab:hover {
    color: white;
}

/* Posts Grid Section */
.posts-section {
    background: #f3f4f6;
    padding: 3rem 0;
    width: 100%;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.post-card {
    background: #1f2937;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-image-placeholder {
    width: 100%;
    height: 200px;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image-placeholder i {
    color: #9ca3af;
    font-size: 3rem;
}

.post-card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.post-category {
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-read-time {
    color: #9ca3af;
    font-size: 0.75rem;
}

.post-title {
    color: white !important;
    font-weight: 600 !important;
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
}

.post-excerpt {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.4 !important;
    flex-grow: 1;
}

.post-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: auto;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-meta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.no-posts {
    text-align: center;
    padding: 3rem 0;
    color: #6b7280;
}

.no-posts i {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.no-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #6b7280;
}

/* Pagination */
.page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    color: #d1d5db;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #fbbf24;
    color: #000;
}

.page-numbers.dots {
    cursor: default;
}

.page-numbers.dots:hover {
    background-color: transparent;
    color: #d1d5db;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
