/* ============================================
   TAG PAGE STYLES
   Simple & Clean Design
============================================ */

/* Main Container */
.tag-page {
    background: #ffffff;
    min-height: 100vh;
    padding: 40px 0;
}

.tag-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tag Header */
.tag-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.tag-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin: 0 0 15px 0;
}

.tag-description {
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tag-stats {
    display: inline-block;
    background: #f8f8f8;
    padding: 8px 20px;
    border-radius: 20px;
    color: #666666;
    font-size: 0.9rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: #ffc107;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #333333;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-category:hover {
    background: #ffc107;
    color: #333333;
}

.post-content {
    padding: 25px;
}

.post-meta {
    color: #666666;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: #ffc107;
}

.post-excerpt {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more-btn {
    display: inline-block;
    background: #333333;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #ffc107;
    color: #333333;
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: #f8f8f8;
    color: #333333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #333333;
    color: #ffffff;
}

.pagination .page-numbers:hover:not(.current) {
    background: #ffc107;
    color: #333333;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f8f8;
    border-radius: 12px;
    margin: 30px 0;
}

.no-posts-title {
    font-size: 1.8rem;
    color: #333333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.no-posts-description {
    color: #666666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.no-posts-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    background: #333333;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ffc107;
    color: #333333;
}

/* Responsive */
@media (max-width: 768px) {
    .tag-page {
        padding: 30px 0;
    }
    
    .tag-container {
        padding: 0 15px;
    }
    
    .tag-title {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .no-posts-actions {
        flex-direction: column;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tag-title {
        font-size: 1.8rem;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-thumbnail {
        height: 180px;
    }
}