/* Professional Corporate Blue Theme for Mam Pracę */

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Kolorystyka - profesjonalna, korporacyjna */
    --primary-color: #1E3A8A;        /* Głęboki niebieski */
    --primary-dark: #1E40AF;         /* Ciemniejszy niebieski */
    --secondary-color: #3B82F6;      /* Jasny niebieski */
    --accent-color: #F59E0B;         /* Akcent - złoty */
    --text-primary: #1F2937;         /* Główny tekst - ciemny szary */
    --text-secondary: #6B7280;       /* Drugorzędny tekst - szary */
    --background-light: #FFFFFF;     /* Białe tło */
    --background-gray: #F9FAFB;      /* Jasnoszare tło */
    --border-color: #E5E7EB;         /* Kolor obramowania */
    --success-color: #10B981;        /* Sukces - zielony */
    --error-color: #EF4444;          /* Błąd - czerwony */
    
    /* Typografia */
    --font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Cienie */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Przejścia */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Główne style */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--background-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--background-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
}

.logo h1 a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    padding: 8px 16px;
    border-radius: var(--radius-md);
}

.nav a:hover {
    color: var(--primary-color);
    background-color: rgba(30, 58, 138, 0.1);
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Sekcje */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 50px;
}

/* Grid z ofertami */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Karta oferty */
.job-card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.job-header {
    margin-bottom: 20px;
}

.job-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.job-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.job-title a:hover {
    color: var(--primary-color);
}

.job-company {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.job-company a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.job-company a:hover {
    text-decoration: underline;
}

.job-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.job-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.job-description {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.job-actions {
    display: flex;
    gap: 12px;
}

/* Przyciski */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2563EB;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Sekcja porad */
.tips-section {
    background: var(--background-light);
    padding: 80px 0;
    margin-top: 80px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.tip-card {
    background: var(--background-gray);
    padding: 30px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.tip-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Sekcja linków partnerskich */
.partners-section {
    background: var(--background-light);
    padding: 60px 0;
    margin-top: 60px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.partner-link {
    display: block;
    padding: 16px 20px;
    background: var(--background-gray);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-fast);
    font-weight: 600;
}

.partner-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Pełna oferta pracy */
.job-full {
    background: var(--background-light);
    min-height: 60vh;
}

.job-full-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 60px;
}

.job-full-title h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.job-full-company {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.job-full-company a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.job-full-company a:hover {
    text-decoration: underline;
}

.job-full-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 30px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-full-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.job-full-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    margin-bottom: 80px;
}

.job-full-description h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.job-description-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 18px;
}

.job-contact-box,
.job-share-box {
    background: var(--background-gray);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.job-contact-box h3,
.job-share-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0A66C2; }

/* Stopka */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: white;
}

/* Komunikaty błędów */
.error-message {
    text-align: center;
    padding: 60px 20px;
}

.error-message h2 {
    font-size: 32px;
    color: var(--error-color);
    margin-bottom: 16px;
}

.error-message p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Brak ofert */
.no-jobs {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-jobs i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsywność */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .job-details {
        grid-template-columns: 1fr;
    }
    
    .job-full-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .job-full-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .job-full-actions {
        flex-direction: column;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card,
.tip-card {
    animation: fadeIn 0.6s ease-out;
}

/* Dostępność */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
