/* HR Recruitment Plugin Frontend Styles */

/* ================================
   Base Wrapper
================================ */

.hrr-jobs-wrapper,
.hrr-job-list,
.hrr-job-single,
.hrr-application-form {
    font-family: inherit;
}

.hrr-jobs-wrapper {
    margin: 2rem 0;
    color: #111827;
}

/* ================================
   Search and Filter Toolbar
================================ */

.hrr-jobs-toolbar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.hrr-search-box {
    position: relative;
    margin-bottom: 12px;
}

.hrr-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

.hrr-job-search-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 16px 0 42px;
    background: #f9fafb;
    color: #111827;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hrr-job-search-input:focus {
    border-color: #111827;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.hrr-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.hrr-job-filter {
    width: 100%;
    min-height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    padding: 0 14px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hrr-job-filter:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

/* ================================
   Summary Row
================================ */

.hrr-jobs-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

.hrr-jobs-eyebrow {
    margin: 0 0 4px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hrr-jobs-summary h2 {
    margin: 0;
    color: #111827;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.hrr-clear-filters {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hrr-clear-filters:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

/* ================================
   Job List Cards
================================ */

.hrr-job-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.hrr-job-item {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hrr-job-item:hover {
    transform: translateY(-3px);
    border-color: #d1d5db;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.09);
}

.hrr-job-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.hrr-job-company {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hrr-job-title {
    margin: 0;
    color: #111827;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.35;
}

.hrr-openings-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 5px 10px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.hrr-job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hrr-job-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 7px 11px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.hrr-job-badge:first-child {
    background: #ecfeff;
    color: #0e7490;
}

.hrr-job-badge:nth-child(2) {
    background: #f0fdf4;
    color: #15803d;
}

.hrr-job-badge:nth-child(3) {
    background: #fff7ed;
    color: #c2410c;
}

.hrr-job-badge:nth-child(4) {
    background: #f5f3ff;
    color: #6d28d9;
}

.hrr-job-description {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

.hrr-job-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.hrr-job-footer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.hrr-job-footer-info strong {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.hrr-job-footer-info span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.hrr-apply-link,
.hrr-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff !important;
    padding: 0 18px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hrr-apply-link:hover,
.hrr-apply-button:hover {
    background: #2563eb;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ================================
   Empty State
================================ */

.hrr-no-jobs-message {
    margin-top: 24px;
    border: 1px dashed #d1d5db;
    border-radius: 22px;
    background: #f9fafb;
    padding: 40px 20px;
    text-align: center;
}

.hrr-no-jobs-message h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
}

.hrr-no-jobs-message p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* ================================
   Single Job Page
================================ */

.hrr-job-single {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.hrr-job-single-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.hrr-job-single h2 {
    margin: 0;
    color: #111827;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.hrr-job-single-department {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.hrr-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 18px;
}

.hrr-job-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
}

.hrr-job-section {
    margin-top: 24px;
}

.hrr-job-section h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 750;
}

.hrr-job-section div {
    color: #374151;
    font-size: 15px;
    line-height: 1.75;
}

.hrr-job-single-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* ================================
   Old Application Form Styles
   Kept only in case shortcode still exists
================================ */

.hrr-application-form {
    background: #f9fafb;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.hrr-application-form h3 {
    margin: 0 0 16px;
    font-size: 22px;
    color: #111827;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.hrr-application-form button[type="submit"] {
    background: #111827;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hrr-application-form button[type="submit"]:hover {
    background: #2563eb;
}

#hrr-form-message {
    margin: 16px 0;
}

#hrr-form-message .success {
    background: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

#hrr-form-message .error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
}

/* ================================
   Responsive
================================ */

@media (max-width: 1200px) {
    .hrr-job-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hrr-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hrr-jobs-toolbar {
        border-radius: 16px;
        padding: 12px;
    }

    .hrr-filter-grid {
        grid-template-columns: 1fr;
    }

    .hrr-jobs-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .hrr-jobs-summary h2 {
        font-size: 24px;
    }

    .hrr-job-list {
        grid-template-columns: 1fr;
    }

    .hrr-job-item {
        min-height: auto;
        border-radius: 18px;
        padding: 18px;
    }

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

    .hrr-job-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .hrr-apply-link {
        width: 100%;
    }

    .hrr-job-single-header {
        flex-direction: column;
    }

    .hrr-job-single h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .hrr-jobs-wrapper {
        margin: 1.25rem 0;
    }

    .hrr-job-title {
        font-size: 17px;
    }

    .hrr-job-description {
        font-size: 13px;
    }
}
