/**
 * PyziTheme - career.css (pyzitheme/assets/css/career.css)
 * 
 * Styl dla strony z pracą
 *
 * @package     PyziTheme
 * @subpackage  Assets/CSS
 * @author      Patryk Kowalski <p.kowalski@kamikstudio.pl>
 * @copyright   2025 KamikStudio & PyziPyzi
 * @license     Proprietary
 * @version     1.0.0
 * @since       1.0.0
 * 
 * Client: PyziPyzi - Domowe wyroby cukiernicze
 * Website: https://pyzipyzi.pl
 * 
 * This file is part of PyziTheme.
 * Unauthorized copying or distribution is prohibited.
 */

/* === ZMIENNE === */
:root {
    --pyzi-orange: #ef6341;
    --pyzi-brown: #5e341c;
    --pyzi-cream: #fef8f4;
    --pyzi-beige: #f5f0e8;
}

/* === CAREER PAGE CONTAINER === */
.career-page {
    background: #fff;
}

.career-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: clamp(32px, 4vw, 42px);
    color: var(--pyzi-brown);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
}

/* === HERO SECTION === */
.career-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--pyzi-cream) 0%, var(--pyzi-beige) 100%);
}

.career-hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    border-radius: 50px;
    color: var(--pyzi-orange);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--pyzi-brown);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--pyzi-orange);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--pyzi-orange);
    color: white;
}

.btn-primary:hover {
    background: #d94f2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 99, 65, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--pyzi-brown);
    border-color: var(--pyzi-beige);
}

.btn-secondary:hover {
    background: var(--pyzi-cream);
    border-color: var(--pyzi-orange);
}

.btn-outline {
    background: transparent;
    color: var(--pyzi-brown);
    border-color: var(--pyzi-brown);
}

.btn-outline:hover {
    background: var(--pyzi-brown);
    color: white;
}

/* === BENEFITS SECTION === */
.career-benefits {
    padding: 80px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--pyzi-cream);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--pyzi-orange);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.benefit-card h3 {
    font-size: 20px;
    color: var(--pyzi-brown);
    margin-bottom: 12px;
    font-weight: 700;
}

.benefit-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* === STATUS SECTION === */
.career-status {
    padding: 60px 0;
    background: var(--pyzi-beige);
}

.status-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.status-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.status-card h2 {
    font-size: 32px;
    color: var(--pyzi-brown);
    margin-bottom: 25px;
}

.status-info {
    margin-bottom: 30px;
}

.status-badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
}

.status-badge.inactive {
    background: #f0f0f0;
    color: #666;
}

.status-badge.active {
    background: #4caf50;
    color: white;
}

.status-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.status-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* === PROCESS TIMELINE === */
.career-process {
    padding: 80px 0;
    background: white;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 40px;
    bottom: 40px;
    width: 3px;
    background: var(--pyzi-beige);
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--pyzi-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(239, 99, 65, 0.3);
}

.step-content {
    flex: 1;
    padding-top: 5px;
}

.step-content h3 {
    font-size: 22px;
    color: var(--pyzi-brown);
    margin-bottom: 10px;
    font-weight: 700;
}

.step-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* === PERSONALITY TEST SECTION === */
.career-personality {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.personality-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.personality-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    text-align: center;
    color: white;
}

.personality-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.personality-header h2 {
    color: white;
    margin: 0;
    font-size: 32px;
}

.personality-content {
    padding: 40px;
}

.personality-content > p {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
}

.personality-why {
    background: var(--pyzi-cream);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.personality-why h3 {
    color: var(--pyzi-brown);
    margin-bottom: 15px;
    font-size: 20px;
}

.personality-why ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.personality-why li {
    padding: 8px 0;
    font-size: 16px;
    color: #333;
}

.personality-cta {
    text-align: center;
    padding-top: 20px;
}

.personality-cta p:first-child {
    font-size: 18px;
    margin-bottom: 25px;
    color: #333;
}

.personality-note {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* === APPLICATION SECTION === */
.career-application {
    padding: 80px 0;
    background: var(--pyzi-cream);
}

.application-intro {
    margin-bottom: 50px;
}

.application-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.application-fallback {
    padding: 30px;
    background: var(--pyzi-beige);
    border-radius: 12px;
    border-left: 4px solid var(--pyzi-orange);
}

.application-fallback p {
    margin-bottom: 15px;
}

.application-fallback ul {
    margin-left: 20px;
}

/* === FAQ SECTION === */
.career-faq {
    padding: 80px 0;
    background: white;
}

/* Nagłówek sekcji FAQ */
.career-faq .section-title {
    font-size: clamp(32px, 4vw, 42px);
    color: var(--pyzi-brown);
    text-align: center;
    margin-bottom: 10px; /* Zmniejszony margin do subtitle */
    font-weight: 700;
}

.career-faq .section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
    padding-bottom: 15px; /* Dodany padding dla wizualnego oddzielenia */
    border-bottom: 3px solid var(--pyzi-orange); /* Dodany border jak na stronie FAQ */
    max-width: 800px; /* Ograniczenie szerokości */
    margin-left: auto;
    margin-right: auto;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background: white;
    border: 2px solid var(--pyzi-beige);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--pyzi-orange);
    box-shadow: 0 4px 15px rgba(239, 99, 65, 0.1); /* Dodany shadow przy hover */
}

.faq-item.active {
    border-color: var(--pyzi-orange);
    box-shadow: 0 6px 20px rgba(239, 99, 65, 0.15); /* Shadow gdy aktywny */
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--pyzi-brown);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--pyzi-orange);
    background: #fef8f4; /* Dodany delikatny background przy hover */
}

.faq-item.active .faq-question {
    background: #fef8f4; /* Background gdy otwarty */
    color: var(--pyzi-orange); /* Pomarańczowy kolor gdy otwarty */
    padding-bottom: 15px; /* Zmniejszony padding gdy otwarty */
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--pyzi-orange); /* Pomarańczowa ikona */
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease; /* Zwiększony czas animacji dla płynności */
}

.faq-item.active .faq-answer {
    max-height: 800px; /* Zwiększona wysokość dla dłuższych odpowiedzi */
}

/* KLUCZOWA POPRAWKA - Dodany padding-top! */
.faq-answer p {
    padding: 15px 25px 20px 25px; /* Zmienione z "0 25px 20px 25px" na "15px 25px 20px 25px" */
    margin: 0;
    font-size: 16px;
    line-height: 1.7; /* Zwiększony line-height dla lepszej czytelności */
    color: #666;
}

/* Dodatkowy spacing dla pierwszego paragrafu */
.faq-answer p:first-child {
    padding-top: 20px; /* Dodatkowy odstęp dla pierwszego paragrafu */
}

/* Jeśli są linki w odpowiedziach */
.faq-answer a {
    color: var(--pyzi-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: #d94f2e;
    text-decoration: underline;
}

/* === CONTACT SECTION === */
.career-contact {
    padding: 80px 0;
    background: var(--pyzi-brown);
    color: white;
}

.contact-card {
    text-align: center;
}

.contact-card h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 36px;
}

.contact-card > p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: white;
    color: var(--pyzi-brown);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--pyzi-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .career-hero {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .status-card {
        padding: 30px 20px;
    }
    
    .status-actions {
        flex-direction: column;
    }
    
    .status-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .step-content h3 {
        font-size: 19px;
    }
    
    .personality-header,
    .personality-content {
        padding: 30px 20px;
    }
    
    .application-form-wrapper {
        padding: 25px 20px;
    }
    
    .contact-methods {
        flex-direction: column;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}