/* Zonos Careers Page Stylesheet */

:root {
    --primary-color: #3122F6;
    --primary-hover: #2818d4;
    --secondary-color: #00B9B7;
    --text-color: #222;
    --text-light: #666;
    --border-color: #e5e5e5;
    --bg-light: #F5F5F5;
    --white: #ffffff;
    --shadow: 0 2px 16px rgba(49, 34, 246, 0.08);
    --shadow-hover: 0 4px 24px rgba(49, 34, 246, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #3122F6 0%, #00B9B7 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(49, 34, 246, 0.03) 0%, rgba(0, 185, 183, 0.03) 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.site-header .logo img {
    height: 32px;
    width: auto;
    display: block;
}

.site-header .logo:hover {
    opacity: 0.8;
}

.site-header .logo:hover {
    opacity: 0.8;
}

.site-header nav {
    display: flex;
    gap: 2rem;
}

.site-header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.site-header nav a:hover,
.site-header nav a.active {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* Hero Section */
.hero {
    background: #000000;
    color: var(--white);
    padding: 5rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(49, 34, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 185, 183, 0.12) 0%, transparent 50%);
    opacity: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.375rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Jobs Section */
.jobs-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.job-count {
    color: var(--text-light);
    font-size: 1.1rem;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

/* Center single job card */
.jobs-grid > .job-card:only-child {
    max-width: 500px;
    width: 100%;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #000000;
    opacity: 0;
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.2);
}

.job-card:hover::before {
    opacity: 1;
}

.job-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.job-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.job-card h3 a:hover {
    color: #000000;
    opacity: 0.7;
}

.job-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.job-card-meta span {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-card-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: none; /* Hidden since descriptions are just title repeated */
}

.no-jobs {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    grid-column: 1 / -1;
}

.no-jobs p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Company Culture Section */
.company-culture {
    padding: 5rem 0;
    background: var(--bg-light);
}

.company-culture h2 {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.culture-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.value-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Office Locations */
.office-locations {
    background: var(--gradient-subtle);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-top: 3rem;
}

.office-locations h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

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

.office {
    text-align: center;
}

.office h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.office p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Job Detail Page */
.job-detail {
    background: var(--bg-light);
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.job-detail article {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.job-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.job-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 1rem;
}

.meta-item svg {
    flex-shrink: 0;
}

.job-actions {
    margin-top: 1.5rem;
}

.job-description {
    margin-bottom: 3rem;
}

.job-description h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.description-content {
    color: var(--text-color);
    line-height: 1.8;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.description-content li {
    margin-bottom: 0.5rem;
}

.description-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.job-apply {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.job-apply h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.job-apply p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(49, 34, 246, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(49, 34, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer p {
    margin: 0;
    opacity: 0.9;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

.site-footer nav {
    display: flex;
    gap: 1.5rem;
}

.site-footer nav a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.site-footer nav a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .job-detail article {
        padding: 2rem 1.5rem;
    }

    .job-header h1 {
        font-size: 1.75rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .site-header nav {
        gap: 1rem;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .jobs-section {
        padding: 2rem 0;
    }

    .job-card {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
    }
}
