/**
 * TEE Jobs Board - Custom Design System & Styling
 * Χρωματική Παλέτα ΤΕΕ & Σύγχρονη Διεπαφή Αγγελιών
 */

:root {
    --tee-primary-navy: #0f172a;    /* Σκούρο Navy / Σχεδόν Μαύρο */
    --tee-secondary-blue: #1e3a8a;  /* TEE Navy Blue */
    --tee-accent-blue: #0284c7;     /* Sky / Cyan Blue */
    --tee-accent-hover: #0369a1;    /* Hover State Blue */
    
    --tee-success: #10b981;         /* Green */
    --tee-warning: #f59e0b;         /* Amber */
    
    --tee-bg-light: #f8fafc;        /* Slate 50 */
    --tee-bg-white: #ffffff;
    
    --tee-border: #e2e8f0;          /* Slate 200 */
    --tee-border-focus: #93c5fd;    /* Blue 300 */
    
    --tee-text-main: #334155;       /* Slate 700 */
    --tee-text-dark: #0f172a;       /* Slate 900 */
    --tee-text-muted: #64748b;      /* Slate 500 */
    
    --tee-radius-sm: 6px;
    --tee-radius-md: 12px;
    --tee-radius-lg: 18px;
    
    --tee-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --tee-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --tee-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.06);
    --tee-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. Στοιχεία Αγγελίας (Single Post Layout Utilities)
   ========================================================================== */

/* Header Αγγελίας */
.tee-job-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--tee-border);
}

.tee-job-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--tee-text-dark);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.tee-job-category-badge {
    display: inline-block;
    background-color: rgba(30, 58, 138, 0.08);
    color: var(--tee-secondary-blue);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--tee-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Sidebar / Meta-box Πληροφοριών Αγγελίας */
.tee-job-meta-card {
    background-color: var(--tee-bg-white);
    border: 1px solid var(--tee-border);
    border-radius: var(--tee-radius-md);
    padding: 1.5rem;
    box-shadow: var(--tee-shadow-md);
    position: sticky;
    top: 2rem;
}

.tee-job-meta-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tee-text-dark);
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--tee-accent-blue);
    padding-bottom: 0.5rem;
}

.tee-job-meta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--tee-text-main);
}

.tee-job-meta-item:last-child {
    margin-bottom: 0;
}

.tee-job-meta-label {
    font-weight: 600;
    color: var(--tee-text-dark);
    width: 130px;
    flex-shrink: 0;
}

.tee-job-meta-value {
    color: var(--tee-text-main);
}

/* Badges για Τύπο Απασχόλησης */
.tee-job-badge-employment {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

.tee-job-badge-fulltime {
    background-color: #dcfce7;
    color: #15803d;
}

.tee-job-badge-parttime {
    background-color: #fef9c3;
    color: #a16207;
}

.tee-job-badge-seasonal {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* ==========================================================================
   2. Φόρμα Υποβολής Ενδιαφέροντος (Fluent Forms Custom Styling)
   ========================================================================== */

.tee-job-form-card {
    background: var(--tee-bg-light);
    border: 1px solid var(--tee-border);
    border-radius: var(--tee-radius-md);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: var(--tee-shadow-sm);
    transition: var(--tee-transition);
}

.tee-job-form-card:hover {
    box-shadow: var(--tee-shadow-md);
    border-color: var(--tee-border-focus);
}

.tee-job-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tee-text-dark);
    margin-bottom: 0.5rem;
}

.tee-job-form-subtitle {
    font-size: 0.95rem;
    color: var(--tee-text-muted);
    margin-bottom: 1.5rem;
}

/* Στυλιστική βελτίωση πεδίων Fluent Forms */
.tee-job-form-card .fluentform_wrapper .ff-el-form-control {
    border: 1px solid var(--tee-border);
    border-radius: var(--tee-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--tee-text-dark);
    background-color: var(--tee-bg-white);
    transition: var(--tee-transition);
    box-shadow: none;
}

.tee-job-form-card .fluentform_wrapper .ff-el-form-control:focus {
    border-color: var(--tee-accent-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    outline: none;
}

/* Εναρμόνιση Labels */
.tee-job-form-card .fluentform_wrapper .ff-el-is-required.ff-el-is-required label::after {
    color: #ef4444;
}

.tee-job-form-card .fluentform_wrapper label {
    font-weight: 600;
    color: var(--tee-text-dark);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* File Upload Πεδίο */
.tee-job-form-card .fluentform_wrapper .ff_upload_btn {
    background-color: var(--tee-bg-white);
    color: var(--tee-text-dark);
    border: 2px dashed var(--tee-border);
    padding: 1.25rem;
    border-radius: var(--tee-radius-sm);
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: var(--tee-transition);
}

.tee-job-form-card .fluentform_wrapper .ff_upload_btn:hover {
    border-color: var(--tee-accent-blue);
    background-color: rgba(2, 132, 199, 0.02);
    color: var(--tee-accent-blue);
}

/* Κουμπί Υποβολής */
.tee-job-form-card .fluentform_wrapper .ff-btn-submit {
    background-color: var(--tee-secondary-blue) !important;
    color: var(--tee-bg-white) !important;
    border: none !important;
    padding: 0.85rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: var(--tee-radius-sm) !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: var(--tee-transition) !important;
    box-shadow: var(--tee-shadow-sm) !important;
}

.tee-job-form-card .fluentform_wrapper .ff-btn-submit:hover {
    background-color: var(--tee-accent-blue) !important;
    transform: translateY(-1px);
    box-shadow: var(--tee-shadow-md) !important;
}

.tee-job-form-card .fluentform_wrapper .ff-btn-submit:active {
    transform: translateY(0);
}

/* Μηνύματα Επιτυχίας / Σφάλματος Fluent Forms */
.fluentform_wrapper .ff-message-success {
    background-color: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
    border-radius: var(--tee-radius-sm) !important;
    padding: 1rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-top: 1rem !important;
}

.fluentform_wrapper .ff-errors-in-stack {
    background-color: #fef2f2 !important;
    border: 1px solid #fca5a5 !important;
    color: #991b1b !important;
    border-radius: var(--tee-radius-sm) !important;
    padding: 1rem !important;
    font-size: 0.95rem !important;
    margin-top: 1rem !important;
}

/* Responsive Grid για Single Job Page */
@media (min-width: 992px) {
    .tee-job-layout-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2.5rem;
    }
}
