/* ============================================
   ZETRE - Career Page Base Styles
   ============================================ */

/* Page Hero (reuse) */
.page-hero {
    position: relative;
    background: var(--gradient-hero);
    padding: var(--space-16) 0 var(--space-12);
    overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-shape {
    position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
    top: -200px; right: -100px;
    animation: float 10s ease-in-out infinite;
}
.page-hero-content { position: relative; z-index: 2; text-align: center; }
.page-hero-content h1 { color: var(--white); margin-bottom: var(--space-4); }
.page-hero-content p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto; }
.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2; }
.hero-wave svg { display: block; width: 100%; }

/* ---- Perks Section ---- */
.career-perks {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.perks-grid {
    display: grid;
    gap: var(--space-5);
}

.perk-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.perk-item:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
}

.perk-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: var(--text-xl);
    box-shadow: var(--shadow-green);
}

.perk-item h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.perk-item p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0;
}

/* ---- Career Listings ---- */
.career-listings {
    background: var(--gradient-light);
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* ---- Job Card ---- */
.job-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: all var(--transition-base);
}

.job-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
}

.job-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    cursor: pointer;
}

.job-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    font-size: var(--text-2xl);
}

.job-title-area {
    flex: 1;
}

.job-title-area h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.job-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.job-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-2);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--gray-500);
    font-weight: 500;
}

.job-tag i {
    font-size: 11px;
    color: var(--gray-400);
}

.job-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--gray-400);
    font-size: var(--text-xl);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.job-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.job-toggle.active {
    transform: rotate(180deg);
    color: var(--primary-600);
}

/* ---- Job Details (collapsed by default) ---- */
.job-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-details.open {
    max-height: 2000px;
}

.job-requirements,
.job-responsibilities {
    padding: 0 var(--space-5) var(--space-5);
}

.job-requirements h4,
.job-responsibilities h4,
.job-apply-form h4 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    color: var(--gray-800);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-100);
}

.job-requirements h4 i,
.job-responsibilities h4 i,
.job-apply-form h4 i {
    color: var(--primary-500);
}

.job-requirements ul,
.job-responsibilities ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.job-requirements ul li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.5;
}

.job-requirements ul li i {
    color: var(--primary-500);
    font-size: var(--text-base);
    margin-top: 2px;
    flex-shrink: 0;
}

.job-responsibilities ul li {
    font-size: var(--text-sm);
    color: var(--gray-600);
    padding-left: var(--space-4);
    position: relative;
    line-height: 1.6;
}

.job-responsibilities ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary-400);
    border-radius: 50%;
}

/* ---- Apply Form ---- */
.job-apply-form {
    padding: var(--space-5);
    margin: 0 var(--space-5) var(--space-5);
    background: var(--primary-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-100);
}

.form-row {
    display: grid;
    gap: var(--space-4);
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 2px dashed var(--primary-300);
    border-radius: var(--radius-lg);
    color: var(--primary-600);
    font-weight: 500;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--white);
}

.file-upload-label:hover {
    border-color: var(--primary-500);
    background: var(--primary-100);
}

.file-upload-label i {
    font-size: var(--text-xl);
}

/* ---- Success Toast ---- */
.toast {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: var(--space-4) var(--space-6);
    background: var(--primary-700);
    color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    font-weight: 600;
    font-size: var(--text-sm);
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    animation: slideInRight 0.4s ease, fadeOut 0.4s ease 3s forwards;
}

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

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-20px); }
}

