/**
 * Nolaon Jobs - Theme-Friendly Layout Styles
 * Uses robust pixel-based typography & spacing to prevent themes with 10px root HTML
 * (such as Bootstrap) from shrinking inputs, labels, and text.
 */

.nolaon-jobs-wrapper,
.nolaon-job-detail,
.nolaon-form-wrapper {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
}

.nolaon-jobs-wrapper *,
.nolaon-job-detail *,
.nolaon-form-wrapper * {
    box-sizing: border-box;
}

/* -------------------------------------------------------------
 * Job Listings List & Cards
 * ------------------------------------------------------------- */
.nolaon-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}

.nolaon-job-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(125, 125, 125, 0.2);
    border-radius: 8px;
    background: transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nolaon-job-card:hover {
    border-color: rgba(125, 125, 125, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .nolaon-job-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .nolaon-job-content {
        flex: 1;
        padding-right: 24px;
    }
    .nolaon-job-action {
        flex-shrink: 0;
    }
}

.nolaon-job-title {
    margin: 8px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.nolaon-job-title a {
    color: inherit;
    text-decoration: none;
}

.nolaon-job-title a:hover {
    text-decoration: underline;
}

.nolaon-job-summary {
    margin: 8px 0 0;
    opacity: 0.85;
    font-size: 15px;
    line-height: 1.6;
}

/* -------------------------------------------------------------
 * Badges / Meta Pills
 * ------------------------------------------------------------- */
.nolaon-job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    font-size: 13px;
    opacity: 0.9;
}

.nolaon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(125, 125, 125, 0.1);
    border-radius: 9999px;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
}

.nolaon-badge svg {
    width: 14px;
    height: 14px;
    opacity: 0.75;
}

/* -------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------- */
.nolaon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border-radius: 6px;
    min-height: 44px;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.nolaon-button:hover {
    opacity: 0.9;
}

.nolaon-button svg {
    width: 16px;
    height: 16px;
}

.nolaon-btn-spinner {
    animation: nolaon-spin 1s linear infinite;
}

@keyframes nolaon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------
 * Single Job Detail Page
 * ------------------------------------------------------------- */
.nolaon-detail-nav {
    margin-bottom: 24px;
}

.nolaon-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nolaon-back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.nolaon-back-link svg {
    width: 16px;
    height: 16px;
}

.nolaon-detail-header {
    border-bottom: 1px solid rgba(125, 125, 125, 0.2);
    padding-bottom: 28px;
    margin-bottom: 32px;
}

.nolaon-detail-title {
    margin: 0 0 16px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
}

.nolaon-detail-summary {
    font-size: 18px;
    line-height: 1.6;
    margin: 16px 0 0;
    opacity: 0.9;
}

.nolaon-job-body {
    margin: 32px 0;
    font-size: 16px;
    line-height: 1.7;
}

.nolaon-job-body h2 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 24px;
}

.nolaon-job-body ul,
.nolaon-job-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.nolaon-job-body li {
    margin-bottom: 6px;
}

/* -------------------------------------------------------------
 * Application Section & Form
 * ------------------------------------------------------------- */
.nolaon-apply-section {
    border-top: 1px solid rgba(125, 125, 125, 0.2);
    padding-top: 40px;
    margin-top: 48px;
}

.nolaon-apply-header {
    margin-bottom: 24px;
}

.nolaon-apply-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
}

.nolaon-apply-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.85;
}

.nolaon-application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(125, 125, 125, 0.03);
    border: 1px solid rgba(125, 125, 125, 0.15);
    padding: 28px;
    border-radius: 8px;
}

.nolaon-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .nolaon-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.nolaon-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nolaon-form-field label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
    margin-bottom: 2px;
}

.nolaon-form-field .required {
    color: #e53e3e;
    font-weight: 700;
}

.nolaon-form-field input[type="text"],
.nolaon-form-field input[type="email"],
.nolaon-form-field input[type="tel"],
.nolaon-form-field input[type="url"],
.nolaon-form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(125, 125, 125, 0.3);
    border-radius: 6px;
    background: inherit;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    min-height: 46px;
    outline: none;
    box-shadow: none;
}

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

.nolaon-form-field input:focus,
.nolaon-form-field textarea:focus {
    border-color: rgba(125, 125, 125, 0.8);
}

/* File Dropzones */
.nolaon-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed rgba(125, 125, 125, 0.3);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(125, 125, 125, 0.04);
}

.nolaon-file-dropzone:hover,
.nolaon-file-dropzone.dragover {
    border-color: rgba(125, 125, 125, 0.6);
    background: rgba(125, 125, 125, 0.08);
}

.nolaon-file-dropzone svg {
    width: 32px;
    height: 32px;
    opacity: 0.75;
    margin-bottom: 8px;
}

.nolaon-file-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.nolaon-file-hint {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
    line-height: 1.3;
}

.nolaon-file-chosen {
    font-size: 14px;
    margin-top: 6px;
    font-weight: 500;
    color: #10b981;
}

/* Upload Progress Bar */
.nolaon-progress-container {
    padding: 16px;
    border-radius: 6px;
    background: rgba(125, 125, 125, 0.08);
    border: 1px solid rgba(125, 125, 125, 0.2);
}

.nolaon-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.nolaon-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(125, 125, 125, 0.2);
    border-radius: 9999px;
    overflow: hidden;
}

.nolaon-progress-fill {
    height: 100%;
    background: currentColor;
    border-radius: 9999px;
    transition: width 0.2s ease;
}

/* Alerts */
.nolaon-alert {
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 15px;
}

.nolaon-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
}

.nolaon-empty-state {
    padding: 48px 24px;
    text-align: center;
    border: 1px dashed rgba(125, 125, 125, 0.25);
    border-radius: 8px;
    margin: 32px 0;
}

.nolaon-empty-icon {
    width: 48px;
    height: 48px;
    opacity: 0.4;
    margin-bottom: 16px;
}

/* Success Card */
.nolaon-success-card {
    padding: 48px 24px;
    text-align: center;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
}

.nolaon-success-icon {
    width: 60px;
    height: 60px;
    color: #10b981;
    margin: 0 auto 20px;
}

.nolaon-success-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
}

.nolaon-success-body {
    max-width: 520px;
    margin: 0 auto;
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.6;
}
