/* Centralized CSS for Tag Posts Page - Eyenak AI */

body {
    font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #1a1a2e;
    margin: 0;
    padding: 0;
}

.page-bg {
    min-height: 100vh;
    background: #1a1a2e;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 0;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #c4b5fd;
}

/* Tag Header */
.tag-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
    border-radius: 20px;
    margin: 20px 0 40px 0;
}

.tag-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tag-label i {
    font-size: 28px;
    opacity: 0.9;
}

.tag-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.tag-desc {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Post Card */
.post-card {
    background: #252542;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
}

.post-card:hover {
    box-shadow: 0 8px 30px rgba(102,126,234,0.25);
    transform: translateY(-5px);
}

.post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 24px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.post-category {
    color: #a78bfa;
    font-weight: 600;
}

.post-date {
    color: #9ca3af;
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    color: #f3f4f6;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.post-excerpt {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22d3ee;
    font-size: 13px;
    font-weight: 500;
}

.post-info i {
    margin-right: 4px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 18px;
    background: #252542;
    color: #a78bfa;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #667eea;
    color: #fff;
}

.page-current {
    padding: 10px 20px;
    background: #667eea;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #252542;
    border-radius: 16px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 24px;
    color: #f3f4f6;
    margin: 0 0 10px 0;
}

.empty-state-desc {
    color: #9ca3af;
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tag-header {
        padding: 40px 20px;
    }
    
    .tag-header h1 {
        font-size: 32px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card-content {
        padding: 18px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

