/* Careers Page Specific Styles */

/* Careers Hero Section */
.careers-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.careers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.8" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.careers-hero .hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.careers-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.careers-hero .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.quick-apply-section {
    margin-top: 2rem;
}

.quick-apply-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.quick-apply-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Job Categories */
.job-categories {
    padding: 80px 0;
    background: var(--bg-primary);
}

.categories-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Job Cards */
.jobs-container {
    display: grid;
    gap: 2rem;
}

.job-detail-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.job-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.job-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.3);
}

.job-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.job-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.job-meta {
    flex: 1;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.job-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.remote {
    background: var(--success-gradient);
    color: white;
}

.badge.full-time {
    background: var(--accent-gradient);
    color: white;
}

.badge.urgent {
    background: var(--secondary-gradient);
    color: white;
    animation: pulse 2s infinite;
}

.badge.growth {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.badge.creative {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.badge.senior {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge.specialist {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.job-overview {
    margin-bottom: 2rem;
}

.job-overview p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.job-details {
    margin-bottom: 2rem;
}

.job-details h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.job-details h4 i {
    color: #667eea;
}

.job-details ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.job-details li {
    list-style: none;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.job-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #43e97b;
    font-weight: bold;
}

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

.salary-range {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apply-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.apply-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Why Join Section */
.why-join {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.benefit-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Application Process */
.application-process {
    padding: 80px 0;
    background: var(--bg-primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0.3;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Filter Animation */
.job-detail-card {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.job-detail-card.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .careers-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .quick-apply-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .categories-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .job-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .job-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .careers-hero .hero-title {
        font-size: 2rem;
    }
    
    .job-detail-card {
        padding: 1.5rem;
    }
    
    .job-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .job-title {
        font-size: 1.3rem;
    }
    
    .benefit-item,
    .step {
        padding: 1.5rem;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .job-detail-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .benefit-item {
    background: var(--bg-secondary);
}

[data-theme="dark"] .filter-btn {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

/* Loading states */
.job-detail-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.job-detail-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    animation: pulse-bg 1.5s infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

/* Accessibility improvements */
.apply-btn:focus,
.filter-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.job-detail-card:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .cta-section,
    .footer,
    .apply-btn,
    .quick-apply-buttons {
        display: none !important;
    }
    
    .job-detail-card {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
}