/*
Theme Name: Paki Job Portal
Theme URI: https://pakijobportal.com
Author: Your Name
Author URI: https://pakijobportal.com
Description: A modern job board theme for WordPress
Version: 1.0.0
License: GPL v2 or later
Text Domain: paki-job-portal
Tags: job-board, responsive, custom-menu, featured-images
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.site-logo span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
}

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

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.search-box {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    position: relative;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: white;
    transition: border-color 0.2s;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.search-btn {
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Stats */
.stats-bar {
    background: var(--bg-light);
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
}

/* Job Cards */
.job-grid {
    display: grid;
    gap: 20px;
}

.job-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

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

.job-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    border-radius: 8px 0 0 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.job-card:hover::before {
    opacity: 1;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    overflow: hidden;
}

.job-info {
    flex: 1;
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

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

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

.job-company {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.job-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.job-type {
    padding: 4px 12px;
    background: #dbeafe;
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.remote-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #10b981;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    margin-left: 10px;
}

/* Save Job Button */
.save-job-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
    padding: 4px;
    line-height: 1;
}

.save-job-btn:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.save-job-btn.saved {
    color: var(--danger);
}

.save-job-btn.saving {
    opacity: 0.5;
    pointer-events: none;
}

/* Categories Section */
.categories-section {
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-column h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.category-list a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.category-list .count {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 60px 0 30px;
}

.footer-categories {
    background: #374151;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.footer-categories .category-column h3 {
    color: white;
    border-bottom-color: #4b5563;
}

.footer-categories .category-list a {
    color: #d1d5db;
}

.footer-categories .category-list a:hover {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

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

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
}

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

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Notifications */
.pjp-notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .stats-grid,
    .categories-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }

    .job-card {
        flex-direction: column;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* Job Deadline Countdown Timer Styles */

.deadline-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}

.deadline-timer.active {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.deadline-timer.urgent {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
    animation: pulse 2s infinite;
}

.deadline-timer.expired {
    background: #e5e7eb;
    color: #6b7280;
    border: 1px solid #d1d5db;
    text-decoration: line-through;
}

.deadline-timer .time-unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 30px;
}

.deadline-timer .time-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.deadline-timer .time-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.8;
}

.deadline-timer .separator {
    font-weight: 700;
    font-size: 14px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Large timer for single job page */
.countdown-large {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.countdown-large .time-box {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
}

.countdown-large .time-box.urgent {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    animation: pulse 1s infinite;
}

.countdown-large .time-box.expired {
    background: #9ca3af;
}

.countdown-large .time-value {
    font-size: 32px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.countdown-large .time-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 5px;
}

.countdown-status {
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
}

.countdown-status.open {
    background: #d1fae5;
    color: #065f46;
}

.countdown-status.closing {
    background: #fef3c7;
    color: #92400e;
}

.countdown-status.closed {
    background: #fee2e2;
    color: #991b1b;
}
