/*
Theme Name: JobJalebi FSE
Theme URI: https://jobjalebi.com
Author: JobJalebi Team
Author URI: https://jobjalebi.com
Description: A lightning fast, SEO optimized Full Site Editing theme for job portal with 6 categories - Sarkari Job, Private Job, International Job, Result, Admit Card, Answer Key. Mobile friendly, lightweight, and engaging design.
Version: 1.0.0
Requires at least: 6.1
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: jobjalebi
Tags: blog, news, job-portal, education, one-column, custom-header, custom-menu, featured-images, theme-options, threaded-comments, translation-ready, full-site-editing
*/

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #f0f2f5;
    line-height: 1.6;
    color: #333;
}

/* Main Container */
.wp-site-blocks {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
    padding: 20px;
    text-align: center;
}

.site-title {
    font-size: 32px;
    margin: 0;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
}

/* Navigation */
.main-navigation {
    background: #ff6f00;
    padding: 0;
}

.wp-block-navigation__container {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.wp-block-navigation-item {
    padding: 12px 20px;
}

.wp-block-navigation-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.wp-block-navigation-item a:hover {
    background: rgba(255,255,255,0.2);
}

/* Category Grid - Like SarkariResult */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 30px 20px;
    background: #fff;
}

.category-card {
    background: linear-gradient(135deg, #ff6f00, #ff8f00);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #e65100, #ff6f00);
}

.category-card h3 {
    margin: 0;
    font-size: 18px;
}

.category-count {
    font-size: 12px;
    opacity: 0.9;
}

/* Search Filter */
.search-filter-section {
    padding: 20px;
    background: #fff3e0;
    margin: 20px;
    border-radius: 10px;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input,
.search-form select {
    flex: 1;
    padding: 12px;
    border: 2px solid #ff6f00;
    border-radius: 5px;
    font-size: 16px;
}

.search-form button {
    background: #ff6f00;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.post-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.post-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 15px;
}

.post-title {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.post-title a {
    color: #1a237e;
    text-decoration: none;
}

.post-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.post-excerpt {
    font-size: 14px;
    color: #555;
}

/* Single Post */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-title-large {
    font-size: 32px;
    color: #1a237e;
}

.author-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.author-name {
    font-size: 18px;
    font-weight: bold;
    color: #1a237e;
}

.share-buttons {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.share-fb { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-telegram { background: #0088cc; }

.tags-section {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #e0e0e0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #333;
}

.related-posts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #ff6f00;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Footer */
.site-footer {
    background: #1a237e;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .wp-block-navigation__container {
        flex-direction: column;
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .post-title-large {
        font-size: 24px;
    }
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 20px;
}