/*
Theme Name: Diokiu Jobs
Theme URI: https://diokiu.com/
Author: Alpha Tech
Author URI: https://diokiu.com/
Description: A premium, fast, mobile-responsive and AdSense-optimized WordPress theme for job portals.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diokiu-jobs
*/

/* --- DESIGN SYSTEM TOKENS --- */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-rgb: 15, 23, 42;
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-rgb: 16, 185, 129;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.15);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASIC STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent-dark);
}

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

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.main-content {
    flex-grow: 1;
    padding: 2.5rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .content-layout {
        grid-template-columns: 8fr 4fr;
    }
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

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

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

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title span {
    color: var(--accent);
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.main-navigation ul a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.main-navigation ul a:hover::after,
.main-navigation ul .current-menu-item > a::after {
    width: 100%;
}

.main-navigation ul a:hover,
.main-navigation ul .current-menu-item > a {
    color: var(--accent);
}

/* Submenu Styling */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    display: none;
    flex-direction: column;
    min-width: 200px;
    gap: 0;
    z-index: 10;
}

.main-navigation ul li ul a {
    padding: 0.5rem 1.25rem;
    display: block;
    font-weight: 500;
}

.main-navigation ul li ul a::after {
    display: none;
}

.main-navigation ul li ul a:hover {
    background-color: var(--bg-main);
}

.main-navigation ul li:hover > ul {
    display: flex;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 105;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-card);
        box-shadow: var(--shadow-lg);
        padding: 6rem 2rem 2rem 2rem;
        transition: var(--transition);
        z-index: 101;
        overflow-y: auto;
    }

    .main-navigation.is-active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-navigation ul li ul {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        display: block;
    }
    
    .mobile-nav-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- HERO SEARCH SECTION --- */
.hero-search-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 4rem 0;
    text-align: center;
    color: #ffffff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-search-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-title {
    color: #ffffff;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
    box-shadow: var(--shadow-lg);
}

.search-form-wrapper input[type="search"] {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    font-size: 1rem;
}

.search-form-wrapper input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form-wrapper button[type="submit"] {
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form-wrapper button[type="submit"]:hover {
    background-color: var(--accent-dark);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .search-form-wrapper {
        border-radius: var(--radius-md);
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .search-form-wrapper input[type="search"] {
        padding: 0.5rem;
    }
    
    .search-form-wrapper button[type="submit"] {
        border-radius: var(--radius-sm);
        width: 100%;
    }
}

/* --- JOB LISTING CARDS --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.jobs-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.job-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(16, 185, 129, 0.3);
}

.job-card:hover::before {
    width: 4px;
}

.job-details-left {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-grow: 1;
}

.job-logo-wrapper {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid var(--border-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.job-info-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job-title-link {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.job-title-link:hover {
    color: var(--accent);
}

.job-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-dark);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.job-apply-right {
    flex-shrink: 0;
}

.btn-apply {
    background-color: var(--primary);
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
}

.btn-apply:hover {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    
    .job-details-left {
        width: 100%;
    }
    
    .job-apply-right {
        width: 100%;
    }
    
    .btn-apply {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* --- SIDEBAR WIDGETS --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget ul a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: block;
}

.widget ul a:hover {
    color: var(--accent);
    padding-left: 4px;
}

/* Search widget special styling */
.widget_search form, .search-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.widget_search input[type="search"], .search-field {
    flex-grow: 1;
    border: none;
    padding: 0.5rem 0.75rem;
    background: transparent;
    font-size: 0.9rem;
}

.widget_search input[type="submit"], .search-submit {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.widget_search input[type="submit"]:hover, .search-submit:hover {
    background-color: var(--accent);
}

/* --- ADSENSE PLACEMENT STYLES --- */
.adsense-container {
    background-color: rgba(241, 245, 249, 0.5);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 90px;
    overflow: hidden;
}

.adsense-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.adsense-slot-header {
    max-width: 728px;
    margin: 1rem auto;
}

.adsense-slot-sidebar {
    min-height: 250px;
}

.adsense-slot-content {
    margin: 2rem 0;
}

/* --- SINGLE JOB VIEW --- */
.job-post-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.job-post-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.job-post-title {
    font-size: 1.85rem;
    margin-bottom: 1rem;
}

.job-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.job-specs-box {
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 576px) {
    .job-specs-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.job-post-content {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.job-post-content h2, .job-post-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.job-post-content p {
    margin-bottom: 1.25rem;
}

.job-post-content ul, .job-post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.job-post-content li {
    margin-bottom: 0.5rem;
}

.job-apply-section {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-apply-lg {
    background-color: var(--accent);
    color: #ffffff;
    font-size: 1.1rem;
    padding: 0.85rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.btn-apply-lg:hover {
    background-color: var(--accent-dark);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* --- FOOTER SECTION --- */
.site-footer {
    background-color: var(--primary);
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3.5rem 0 2rem 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-widget-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.site-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer ul a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.site-footer ul a:hover {
    color: #ffffff;
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* --- WORDPRESS CORE STYLE CLASSES (Required for WP compliance) --- */
.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 0.5rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 0.5rem 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.wp-caption {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    max-width: 100%;
    padding: 0.5rem;
    text-align: center;
    border-radius: var(--radius-sm);
}

.wp-caption-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}

.navigation.pagination {
    width: 100%;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-links .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}
