@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;600;700&display=swap');

/* --- 1. Global Reset & Body --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Mukta', sans-serif; }
body { background-color: #f4f7f6; color: #333; position: relative; scroll-behavior: smooth; overflow-x: hidden; }

body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url('logo.png'); background-repeat: no-repeat;
    background-position: center; background-size: 50%; opacity: 0.04; z-index: -1; pointer-events: none;
}
@media (min-width: 768px) { body::before { background-size: 30%; } }

/* --- 2. Scroll Progress Bar --- */
#progressBar { position: fixed; top: 0; left: 0; height: 4px; background: #FF7E00; z-index: 9999; width: 0%; transition: width 0.1s; }

/* --- 3. Header Design --- */
header { 
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 10px 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; 
    display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #FF7E00; transition: all 0.3s ease; 
}

.brand-logo { display: flex; align-items: center; text-decoration: none; position: relative; padding: 5px 25px 5px 10px; border-radius: 10px; overflow: hidden; }
.brand-logo::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('/logo.png'); background-size: contain; background-position: center; background-repeat: no-repeat; opacity: 0.12; z-index: 0; }
.logo-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.logo-text h2 { color: #0056b3; font-size: 28px; font-weight: 800; line-height: 1.1; text-shadow: 1px 1px 2px rgba(255,255,255,0.9); margin-bottom: -2px; }
.logo-text span { color: #FF7E00; font-size: 14px; font-weight: 700; text-shadow: 1px 1px 2px rgba(255,255,255,0.9); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.social-icons { display: flex; align-items: center; gap: 15px; }
.social-icons a, .theme-toggle { font-size: 22px; transition: transform 0.3s ease; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.social-icons a:hover, .theme-toggle:hover { transform: scale(1.15); }
.theme-toggle { background: none; border: none; cursor: pointer; color: #555; }

/* --- 4. Navigation Menu --- */
nav { flex: 2; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
nav a { 
    text-decoration: none; color: #444; font-size: 16px; font-weight: 600; padding: 8px 18px; 
    border-radius: 25px; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; white-space: nowrap; 
}
nav a:hover { color: #FF7E00; background: #fff3e6; transform: translateY(-2px); }
nav a.active { background: #FF7E00; color: white; box-shadow: 0 4px 12px rgba(255, 126, 0, 0.4); }

/* --- 5. Search Bar & Admin Badge --- */
.search-container { position: relative; display: flex; align-items: center; }
.search-container input { width: 100%; max-width: 220px; padding: 8px 15px 8px 35px; border: 1px solid #ddd; border-radius: 25px; outline: none; font-size: 14px; transition: all 0.3s; }
.search-container input:focus { border-color: #FF7E00; box-shadow: 0 0 8px rgba(255, 126, 0, 0.2); }
.search-container i { position: absolute; left: 12px; color: #888; font-size: 14px; }
.admin-badge { background: #dc3545; color: white !important; border-radius: 20px; padding: 8px 15px; margin-left: 10px; font-size: 14px; }

/* --- 6. Main Container & Loader --- */
.container { max-width: 900px; margin: 30px auto; padding: 0 15px; min-height: 60vh; }
.loader-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0; }
.spinner { width: 45px; height: 45px; border: 4px solid #f3f3f3; border-top: 4px solid #FF7E00; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loader-text { font-size: 16px; font-weight: bold; color: #555; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* --- 7. Jobs List View & NEW Views/Likes Design --- */
.jobs-list { display: flex; flex-direction: column; background: white; padding: 15px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.job-item { display: flex; align-items: center; padding: 15px 0; border-bottom: 2px dashed #eee; cursor: pointer; transition: all 0.3s ease; animation: fadeIn 0.4s ease-out forwards; opacity: 0; }
.job-item:last-child { border-bottom: none; }
.job-item:hover { background: #fdfdfd; padding-left: 10px; border-left: 4px solid #FF7E00; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.job-item img { width: 65px; height: 65px; object-fit: contain; border-radius: 50%; border: 1px solid #ddd; margin-right: 15px; background: white; padding: 5px; flex-shrink: 0; }
.job-info h3 { font-size: 18px; color: #0056b3; margin-bottom: 5px; font-weight: 700; line-height: 1.3; }
.job-info p { font-size: 14px; color: #666; }

/* 🌟 Premium Views & Likes Design */
.meta-stats { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.meta-stats span { background: #f0f4f8; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; color: #444; display: flex; align-items: center; gap: 6px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.03); }
.meta-stats span i.fa-eye { color: #0056b3; }
.meta-stats span i.fa-heart { color: #e74c3c; }

/* --- 8. Detail View (Full Job Post) --- */
.detail-view { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); position: relative; animation: fadeIn 0.4s ease-out; }
.detail-header { text-align: center; margin-bottom: 25px; }
.detail-header img { width: 110px; height: 110px; object-fit: contain; border-radius: 12px; padding: 5px; border: 1px solid #eee; }
.detail-header h2 { color: #0056b3; margin: 15px 0; font-weight: 800; font-size: clamp(22px, 4vw, 30px); }
.ad-warning-msg { text-align: center; color: #d32f2f; font-weight: 600; font-size: 16px; margin: 25px 0; padding: 12px; background: #fff5f5; border: 2px dashed #d32f2f; border-radius: 8px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.info-box { background: #f8f9fa; border: 1px solid #e9ecef; border-left: 5px solid #FF7E00; padding: 12px; border-radius: 8px; }
.info-box h4 { color: #666; font-size: 14px; margin-bottom: 3px; font-weight: 600; }
.info-box p { color: #111; font-size: 16px; font-weight: 700; }

.action-buttons { display: flex; justify-content: center; gap: 15px; margin: 25px 0; flex-wrap: wrap; }
.btn-ad, .btn-apply { color: white; padding: 12px 30px; font-size: 16px; font-weight: bold; border: none; border-radius: 6px; text-decoration: none; text-align: center; cursor: pointer; transition: 0.3s; }
.btn-ad { background: #008CBA; } .btn-apply { background: #E67E22; }
.btn-ad:hover { background: #007399; transform: translateY(-2px); } .btn-apply:hover { background: #d35400; transform: translateY(-2px); }

.share-message { text-align: center; color: #d32f2f; font-weight: bold; font-size: 16px; margin: 25px 0; border-top: 1px dashed #ccc; padding-top: 20px; }
.share-icon-btn { color: white; border: none; padding: 10px 20px; border-radius: 50px; font-size: 15px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto; width: fit-content; transition: 0.3s; }
.share-icon-btn:hover { transform: scale(1.05); }

/* --- 9. Dark Mode Styles --- */
body.dark-mode { background-color: #121212; color: #f1f1f1; }
body.dark-mode header { background: rgba(30, 30, 30, 0.95); border-color: #444; }
body.dark-mode .logo-text h2 { color: #66b2ff; text-shadow: none; }
body.dark-mode .logo-text span { text-shadow: none; }
body.dark-mode .jobs-list, body.dark-mode .detail-view { background: #1e1e1e; border-color: #333; box-shadow: none; }
body.dark-mode .job-item, body.dark-mode .share-message { border-color: #333; }
body.dark-mode .job-item:hover { background: #252525; }
body.dark-mode .job-info h3, body.dark-mode .detail-header h2 { color: #66b2ff; }
body.dark-mode .job-info p, body.dark-mode .info-box h4 { color: #cccccc; }
body.dark-mode .info-box { background: #2a2a2a; border-color: #444; }
body.dark-mode .meta-stats span { background: #2a2a2a; color: #ccc; box-shadow: none; border: 1px solid #444; }
body.dark-mode nav a, body.dark-mode .loader-text { color: #e0e0e0; }
body.dark-mode nav a:hover { background: #333333; color: #FF7E00; }
body.dark-mode .job-item img, body.dark-mode .detail-header img { background: #2a2a2a; border-color: #444; }
body.dark-mode .theme-toggle { color: #f1c40f; }

/* --- 10. Floating WhatsApp & Save Job --- */
.floating-wa-group { position: fixed; bottom: 30px; left: 20px; background: #25D366; color: white; padding: 12px 20px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 16px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.floating-wa-group:hover { transform: scale(1.05); }

.save-btn { background: none; border: none; font-size: 22px; color: #ccc; cursor: pointer; transition: 0.3s; position: absolute; top: 20px; right: 20px; }
.save-btn.saved { color: #e74c3c; }
.save-btn:hover { transform: scale(1.1); }
.rich-text { font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.rich-text p { margin-bottom: 12px; } .rich-text ul { margin-left: 20px; margin-bottom: 15px; }

/* 🌟 11. Mobile View Fixes (Responsive Magic) 🌟 */
@media (max-width: 850px) {
    header { flex-direction: column; padding: 10px; gap: 10px; }
    .brand-logo { margin-bottom: 5px; }
    
    /* 🌟 मोबाईल मेनू स्वाइप करता येईल (Horizontal Scroll) */
    nav { 
        width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; 
        -webkit-overflow-scrolling: touch; padding-bottom: 5px; scrollbar-width: none; 
    }
    nav::-webkit-scrollbar { display: none; }
    nav a { flex-shrink: 0; padding: 8px 15px; font-size: 15px; }
    
    .header-actions { width: 100%; justify-content: space-between; flex-direction: row-reverse; }
    .search-container { width: 100%; margin-right: 15px; }
    .search-container input { max-width: 100%; }
    
    .info-grid { grid-template-columns: 1fr; gap: 10px; }
    .action-buttons { flex-direction: column; width: 100%; }
    .btn-ad, .btn-apply { width: 100%; }
    
    /* 🌟 WhatsApp बटण थोडे वर सरकवले */
    .floating-wa-group { bottom: 80px; left: 15px; padding: 10px 16px; font-size: 14px; }
}
