/**
 * WorkaGH Jobs - Main Stylesheet
 * Mobile-First, Low-Data, Ghana-Friendly Design
 */

/* === ROOT VARIABLES === */
:root {
    --workagh-primary: #27AE60;
    --workagh-primary-dark: #1E8449;
    --workagh-secondary: #F39C12;
    --workagh-text: #2C3E50;
    --workagh-text-light: #7F8C8D;
    --workagh-bg: #FFFFFF;
    --workagh-bg-light: #F8F9FA;
    --workagh-border: #E0E0E0;
    --workagh-error: #E74C3C;
    --workagh-success: #27AE60;
    --workagh-warning: #F39C12;
    --workagh-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --workagh-radius: 8px;
}

/* === GLOBAL RESETS === */
.workagh-homepage-wrapper *,
.workagh-jobs-wrapper *,
.workagh-submission-wrapper * {
    box-sizing: border-box;
}

/* === SECURITY BANNERS === */
.workagh-security-banner {
    background: #FFF3CD;
    border-left: 4px solid var(--workagh-warning);
    padding: 12px 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

.workagh-security-banner .security-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.workagh-security-banner .security-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.workagh-security-banner strong {
    color: var(--workagh-text);
    display: block;
    margin-bottom: 3px;
}

.workagh-footer-warning {
    background: #2C3E50;
    color: #FFFFFF;
    padding: 15px 0;
    text-align: center;
    margin-top: 30px;
}

.workagh-footer-warning p {
    margin: 0;
    font-size: 14px;
}

.workagh-footer-warning a {
    color: var(--workagh-primary);
    text-decoration: underline;
}

/* === WARNING BOXES === */
.workagh-warning-box {
    background: #FFF3CD;
    border: 2px solid var(--workagh-warning);
    border-radius: var(--workagh-radius);
    padding: 15px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.6;
}

.workagh-warning-box h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--workagh-text);
}

.workagh-warning-sm {
    padding: 10px 15px;
    font-size: 14px;
}

.workagh-warning-hero {
    max-width: 800px;
    margin: -10px auto 30px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

/* === BUTTONS === */
.workagh-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--workagh-primary);
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: var(--workagh-radius);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

.workagh-btn:hover {
    background: var(--workagh-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.workagh-btn-large {
    padding: 15px 32px;
    font-size: 18px;
}

.workagh-btn-secondary {
    background: #FFFFFF;
    color: var(--workagh-primary) !important;
    border: 2px solid var(--workagh-primary);
}

.workagh-btn-secondary:hover {
    background: var(--workagh-primary);
    color: #FFFFFF !important;
}

/* === HOMEPAGE === */
.workagh-homepage-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.workagh-hero {
    text-align: center;
    padding: 40px 15px;
    background: linear-gradient(135deg, var(--workagh-bg-light) 0%, #FFFFFF 100%);
    border-radius: var(--workagh-radius);
    margin-bottom: 30px;
    position: relative;
}

.hero-title {
    color: var(--workagh-text);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    color: var(--workagh-text-light);
    position: relative;
    z-index: 2;
}

.stat-number {
    color: var(--workagh-primary);
}

.stat-label {
    color: var(--workagh-text-light);
}

.hero-stats,
.hero-actions {
    position: relative;
    z-index: 2;
}

/* Desktop full-width hero */
@media (min-width: 1025px) {
    .workagh-hero {
        border-radius: 0;
        background: url('http://localhost:10028/wp-content/uploads/2026/02/Image-Feb-9-2026-11_34_17-PM.png') center center / cover no-repeat;
        background-attachment: scroll;
        min-height: 380px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    .workagh-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(30, 132, 73, 0.3));
        z-index: 1;
    }
    
    .workagh-hero > *,
    .workagh-hero .hero-content > *,
    .workagh-hero .hero-stats *,
    .workagh-hero .stat-item * {
        position: relative;
        z-index: 2;
        border: none !important;
        outline: none !important;
    }
    
    .hero-title {
        color: #FFFFFF !important;
        font-size: 52px !important;
        font-weight: 800 !important;
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7) !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 20px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: none !important;
        padding: 0 !important;
    }
    
    .hero-subtitle {
        color: #FFFFFF !important;
        font-size: 20px !important;
        font-weight: 400 !important;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8) !important;
        opacity: 1 !important;
        letter-spacing: 0.3px !important;
        background: none !important;
        background-image: none !important;
        background-color: transparent !important;
        padding: 0 15px !important;
    }
    
    .workagh-hero .stat-number {
        color: #FFFFFF !important;
        font-size: 32px !important;
        font-weight: 700 !important;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8) !important;
    }
    
    .workagh-hero .stat-label {
        color: #FFFFFF !important;
        font-size: 14px !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7) !important;
    }
    
    .workagh-hero .stat-item {
        color: #FFFFFF !important;
    }
    
    .stat-divider {
        background: rgba(255, 255, 255, 0.4) !important;
        height: 45px;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Hero buttons on desktop */
    .hero-actions .workagh-btn-primary {
        background: #FFFFFF;
        color: var(--workagh-primary) !important;
        border: 2px solid #FFFFFF;
    }
    
    .hero-actions .workagh-btn-primary:hover {
        background: transparent;
        color: #FFFFFF !important;
        border-color: #FFFFFF;
    }
    
    .hero-actions .workagh-btn-secondary {
        background: transparent;
        color: #FFFFFF !important;
        border: 2px solid #FFFFFF;
    }
    
    .hero-actions .workagh-btn-secondary:hover {
        background: #FFFFFF;
        color: var(--workagh-primary) !important;
    }
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--workagh-text);
    margin: 0 0 15px 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--workagh-text-light);
    margin: 0 0 30px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    background: none !important;
    padding: 0 !important;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--workagh-primary);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--workagh-text-light);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--workagh-border);
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* === SECTIONS === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--workagh-text);
    margin: 0;
}

.view-all-link {
    color: var(--workagh-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* === JOB GRID === */
.workagh-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.home-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (max-width: 768px) {
    .workagh-jobs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* === JOB CARDS === */
.workagh-job-card {
    background: #FFFFFF;
    border: 1px solid var(--workagh-border);
    border-radius: var(--workagh-radius);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

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

.workagh-job-card.featured {
    border: 2px solid var(--workagh-secondary);
    background: #FFFEF7;
}

.featured-badge {
    background: var(--workagh-secondary);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 10px;
    right: 10px;
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

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

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

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--workagh-text-light);
}

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

.job-excerpt {
    color: var(--workagh-text);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--workagh-border);
}

.job-date {
    font-size: 13px;
    color: var(--workagh-text-light);
}

.job-call-btn {
    background: var(--workagh-primary);
    color: #FFFFFF !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.job-call-btn:hover {
    background: var(--workagh-primary-dark);
    transform: scale(1.05);
}

/* === FILTER SECTION === */
.workagh-filter-section {
    background: var(--workagh-bg-light);
    padding: 20px;
    border-radius: var(--workagh-radius);
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-input,
.filter-select {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid var(--workagh-border);
    border-radius: 6px;
    font-size: 15px;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--workagh-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.filter-clear {
    padding: 12px 20px;
    color: var(--workagh-text-light);
    text-decoration: none;
    border: 1px solid var(--workagh-border);
    border-radius: 6px;
    font-size: 15px;
    display: inline-block;
}

/* === SUBMISSION FORM === */
.workagh-submission-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 15px;
}

.workagh-submission-form {
    background: #FFFFFF;
    padding: 30px;
    border-radius: var(--workagh-radius);
    box-shadow: var(--workagh-shadow);
}

.workagh-submission-form h2 {
    margin: 0 0 10px 0;
    color: var(--workagh-text);
}

.workagh-form-intro {
    color: var(--workagh-text-light);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--workagh-text);
    font-size: 15px;
}

.required {
    color: var(--workagh-error);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--workagh-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--workagh-text-light);
    font-size: 13px;
}

.form-submit {
    margin-top: 25px;
}

.workagh-submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--workagh-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--workagh-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.workagh-submit-btn:hover:not(:disabled) {
    background: var(--workagh-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.workagh-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
}

.error-message {
    background: #FADBD8;
    color: var(--workagh-error);
    padding: 12px;
    border-radius: 6px;
}

.success-message {
    background: #D5F4E6;
    color: var(--workagh-success);
    padding: 12px;
    border-radius: 6px;
}

/* === HOW IT WORKS === */
.workagh-how-it-works {
    margin: 50px 0;
    padding: 40px 20px;
    background: var(--workagh-bg-light);
    border-radius: var(--workagh-radius);
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.step-card {
    background: #FFFFFF;
    padding: 30px 20px;
    border-radius: var(--workagh-radius);
    box-shadow: var(--workagh-shadow);
}

.step-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.step-card h3 {
    margin: 0 0 10px 0;
    color: var(--workagh-text);
}

.step-card p {
    color: var(--workagh-text-light);
    margin: 0;
    line-height: 1.5;
}

/* === PRICING SECTION === */
.workagh-employers-section {
    margin: 50px 0;
    text-align: center;
}

.section-subtitle {
    color: var(--workagh-text-light);
    font-size: 18px;
    margin: 10px 0 30px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: #FFFFFF;
    border: 2px solid var(--workagh-border);
    border-radius: var(--workagh-radius);
    padding: 30px 20px;
    position: relative;
}

.pricing-card.featured-pricing {
    border-color: var(--workagh-primary);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.15);
}

.popular-badge {
    background: var(--workagh-primary);
    color: #FFFFFF;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-card h3 {
    margin: 0 0 15px 0;
    color: var(--workagh-text);
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--workagh-primary);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--workagh-text);
}

.cta-center {
    margin-top: 30px;
}

/* === CARD TYPE BADGES === */
.aggregated-badge,
.direct-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.direct-badge {
    background: #E8F5E9;
    color: #27AE60;
}
.aggregated-badge {
    background: #E3F2FD;
    color: #1565C0;
}
.card-aggregated {
    border-top: 3px solid #1565C0;
}
.card-aggregated .job-title a:hover {
    color: #1565C0;
}

/* === NO JOBS === */
.workagh-no-jobs {
    text-align: center;
    padding: 40px 20px;
    color: var(--workagh-text-light);
}

/* === SAFETY TIPS === */
.workagh-safety-tips {
    background: var(--workagh-bg-light);
    padding: 20px;
    border-radius: var(--workagh-radius);
    margin: 20px 0;
}

.workagh-safety-tips h3 {
    margin: 0 0 15px 0;
    color: var(--workagh-text);
}

.workagh-safety-tips ul {
    margin: 0;
    padding-left: 20px;
}

.workagh-safety-tips li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* === REPORT SECTION === */
.workagh-report-section {
    text-align: center;
    padding: 15px 0;
}

.report-link {
    color: var(--workagh-error);
    text-decoration: none;
    font-weight: 600;
}

.report-link:hover {
    text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .hero-title {
        font-size: 24px;
        font-weight: 800;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 15px;
        line-height: 1.5;
        max-width: 320px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    /* Mobile hero keeps light background for data savings */
    .workagh-hero {
        background: linear-gradient(135deg, var(--workagh-bg-light) 0%, #FFFFFF 100%);
        padding: 35px 20px !important;
        min-height: auto;
    }
}

/* Tablet hero with image */
@media (min-width: 768px) and (max-width: 1024px) {
    .workagh-hero {
        background: url('http://localhost:10028/wp-content/uploads/2026/02/Image-Feb-9-2026-11_34_17-PM.png') center center / cover no-repeat;
        border-radius: 0;
        min-height: 320px;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    
    .workagh-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(30, 132, 73, 0.25));
        z-index: 1;
    }
    
    .hero-title,
    .hero-subtitle,
    .stat-number,
    .stat-label {
        color: #FFFFFF;
    }
    
    .stat-divider {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .workagh-submission-form {
        padding: 20px 15px;
    }
    
    .workagh-btn-large {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* === CTA BUTTONS (FAQ & Other Pages) === */
.cta-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
}

.cta-buttons .button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.cta-section {
    background: var(--workagh-bg-light);
    border: 1px solid var(--workagh-border);
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
}

.cta-section h3 {
    margin-bottom: 15px;
    color: var(--workagh-text);
}

.cta-section .cta-buttons {
    justify-content: center;
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-buttons .button {
        text-align: center;
    }
}

/* === LOADING STATE === */
.btn-loading {
    display: inline-block;
}

.btn-loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}
