/*
Theme Name: Shughl Com - شغل كوم
Theme URI: https://shughl.com
Author: Amin
Author URI: https://shughl.com
Description: قالب احترافي متكامل لموقع شغل كوم للوظائف باللغة العربية مع دعم كامل لـ RTL ومتجاوب مع جميع الأجهزة. مُحسّن لمحركات البحث وجوجل أدسنس.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ay-wadhefa
Tags: rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, jobs, employment, arabic
*/

/* ==========================================
   Reset & Base Styles
========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* الألوان الأساسية - يمكن تغييرها من لوحة التحكم */
    --primary-color: #2C5AA0;
    --primary-hover: #1e4480;
    --secondary-color: #1E88E5;
    --accent-color: #FFA726;
    --success-color: #43A047;
    --danger-color: #E53935;
    --warning-color: #FB8C00;
    --info-color: #039BE5;
    
    /* ألوان الخلفيات */
    --bg-color: #F5F7FA;
    --bg-light: #FFFFFF;
    --bg-dark: #1a1a2e;
    --header-bg: #2C5AA0;
    --nav-bg: #1a1a2e;
    
    /* ألوان النصوص */
    --text-color: #2C3E50;
    --text-light: #6C7A89;
    --text-white: #FFFFFF;
    --text-muted: #95A5A6;
    
    /* الحدود والظلال */
    --border-color: #E1E8ED;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    /* الخطوط */
    --font-primary: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-heading: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    
    /* المسافات */
    --container-width: 1200px;
    --header-height: 70px;
    --nav-height: 50px;
    
    /* الانتقالات */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================
   Container & Layout
========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding: 30px 0;
}

/* ==========================================
   Header
========================================== */
.site-header {
    background: var(--header-bg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.site-title {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--text-white);
}

.site-description {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin: 0;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.header-search form {
    display: flex;
    background: var(--bg-light);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.header-search input[type="search"] {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
    background: transparent;
}

.header-search button {
    background: var(--accent-color);
    color: var(--text-white);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.header-search button:hover {
    background: var(--primary-hover);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ==========================================
   Navigation
========================================== */
.main-navigation {
    background: var(--nav-bg);
}

.main-navigation .container {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-white);
    padding: 14px 18px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    background: rgba(255,255,255,0.08);
    border-bottom-color: var(--accent-color);
}

.nav-menu .menu-item-icon {
    font-size: 16px;
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-light);
    box-shadow: var(--shadow-lg);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    z-index: 100;
}

.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-color);
    font-size: 14px;
}

.nav-menu .sub-menu a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* ==========================================
   Jobs Grid
========================================== */
.page-title-area {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.page-title {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-title {
    text-align: center;
    margin: 30px 0 25px;
    font-size: 1.4rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.job-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.job-card:hover::before {
    transform: scaleY(1);
}

.job-card-content {
    flex: 1;
    min-width: 0;
}

.job-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-title a {
    color: inherit;
}

.job-card-title a:hover {
    color: var(--primary-color);
}

.job-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.82rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.job-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-card-meta i {
    color: var(--primary-color);
    font-size: 14px;
}

.job-card-logo {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.job-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.job-card-logo-placeholder {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================
   Single Job Page
========================================== */
.single-job-wrapper {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.single-job-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.single-job-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-color);
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
}

.single-job-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.single-job-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.5;
}

.single-job-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-color);
    padding: 5px 12px;
    border-radius: 20px;
}

.job-content {
    line-height: 1.9;
    font-size: 15px;
}

.job-content h2,
.job-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 12px;
}

.job-content ul li {
    margin-bottom: 8px;
}

.job-apply-button {
    display: inline-block;
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: 14px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    margin: 25px auto;
    display: block;
    max-width: 280px;
}

.job-apply-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
}

.job-meta-box {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-meta-item i {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.job-meta-item .label {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
}

.job-meta-item .value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* ==========================================
   Sidebar & Widgets
========================================== */
.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
}

.widget-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.widget ul li a:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.widget ul li a::before {
    content: '◂';
    color: var(--primary-color);
    font-weight: bold;
}

/* ==========================================
   Search Form
========================================== */
.search-form-large {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.search-form-large form {
    display: flex;
    gap: 10px;
}

.search-form-large input[type="search"] {
    flex: 1;
    padding: 13px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition-fast);
}

.search-form-large input[type="search"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.search-form-large button {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 13px 32px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition-fast);
}

.search-form-large button:hover {
    background: var(--primary-hover);
}

/* ==========================================
   Ads & Banners
========================================== */
.ad-banner {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    margin: 20px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* ==========================================
   Pagination
========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

/* ==========================================
   Footer
========================================== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    padding: 6px 0;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-widget ul li a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-widget p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.site-info {
    background: rgba(0,0,0,0.3);
    padding: 18px 0;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

/* ==========================================
   Responsive Design
========================================== */
@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .header-search {
        max-width: 350px;
        margin: 0 15px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    
    .header-top {
        flex-wrap: wrap;
        padding: 10px 0;
        height: auto;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin: 10px 0 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--nav-bg);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu > li > a {
        padding: 12px 20px;
    }
    
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0,0,0,0.3);
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
    
    .nav-menu .sub-menu a {
        color: rgba(255,255,255,0.8);
        padding: 10px 35px;
    }
    
    .nav-menu .sub-menu a:hover {
        background: rgba(255,255,255,0.05);
        color: var(--accent-color);
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .single-job-wrapper {
        padding: 20px 15px;
    }
    
    .single-job-title {
        font-size: 1.2rem;
    }
    
    .single-job-logo {
        width: 90px;
        height: 90px;
    }
    
    .job-card {
        padding: 15px;
        gap: 12px;
    }
    
    .job-card-logo {
        width: 55px;
        height: 55px;
    }
    
    .job-card-title {
        font-size: 0.92rem;
    }
    
    .job-card-meta {
        font-size: 0.75rem;
        gap: 10px;
    }
    
    .search-form-large form {
        flex-direction: column;
    }
    
    .search-form-large button {
        width: 100%;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .job-card {
        flex-direction: row;
    }
    
    .job-card-logo {
        width: 50px;
        height: 50px;
    }
    
    .job-meta-box {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ==========================================
   Utilities
========================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.alignleft { float: right; margin-left: 1.5rem; }
.alignright { float: left; margin-right: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   حالة التقديم (مفتوح / مغلق)
========================================== */
.job-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 10px 0;
}
.job-status-badge i {
    font-size: 1.1em;
}
.job-status-open {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
    animation: pulse-green 2s infinite;
}
.job-status-closed {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}
.job-status-soon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 2px 8px rgba(16,185,129,0.3); }
    50% { box-shadow: 0 2px 16px rgba(16,185,129,0.6); }
}

/* شارة الحالة الصغيرة في بطاقة الوظيفة */
.job-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}
.job-card-status.open {
    background: #10b981;
    color: #fff;
}
.job-card-status.closed {
    background: #ef4444;
    color: #fff;
}
.job-card-status.soon {
    background: #f59e0b;
    color: #fff;
}
.job-card {
    position: relative;
}

/* ==========================================
   العدّاد التنازلي (من - إلى)
========================================== */
.job-countdown {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid var(--border-color);
    text-align: center;
}
.job-countdown-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 600;
}
.job-countdown-title i {
    color: var(--primary-color);
    margin-left: 6px;
}
.countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.countdown-box {
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    padding: 12px 18px;
    min-width: 75px;
    box-shadow: 0 3px 10px rgba(44,90,160,0.2);
}
.countdown-box.expired {
    background: #94a3b8;
}
.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}
.countdown-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 600;
}
.countdown-dates {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    flex-wrap: wrap;
}
.countdown-date-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
}
.countdown-date-item .label {
    color: var(--text-light);
    font-weight: 600;
}
.countdown-date-item .value {
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
}
.countdown-date-item i {
    color: var(--primary-color);
    margin-left: 4px;
}
.countdown-expired-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .countdown-box {
        min-width: 60px;
        padding: 10px 12px;
    }
    .countdown-number {
        font-size: 1.5rem;
    }
}

/* ==========================================
   أيقونات التواصل في الفوتر
========================================== */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.15);
}
.footer-social a:hover {
    transform: translateY(-4px) scale(1.05);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.footer-social a.social-twitter:hover { background: #000; border-color: #000; }
.footer-social a.social-facebook:hover { background: #1877f2; border-color: #1877f2; }
.footer-social a.social-instagram:hover { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}
.footer-social a.social-youtube:hover { background: #ff0000; border-color: #ff0000; }
.footer-social a.social-telegram:hover { background: #0088cc; border-color: #0088cc; }
.footer-social a.social-whatsapp:hover { background: #25d366; border-color: #25d366; }
.footer-social a.social-linkedin:hover { background: #0077b5; border-color: #0077b5; }
.footer-social a.social-snapchat:hover { background: #fffc00; color: #000; border-color: #fffc00; }
.footer-social a.social-tiktok:hover { background: #000; border-color: #000; }


/* زر التقديم المعطّل */
.job-apply-button.disabled,
.job-apply-button[onclick*="alert"] {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    cursor: not-allowed;
    opacity: 0.95;
}
.job-apply-button.disabled:hover {
    transform: none !important;
}

/* تحسين عرض الفوتر على الجوال */
@media (max-width: 768px) {
    .footer-social {
        justify-content: center;
    }
    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}
