/* 
   careers.css - Styling for GymLink Careers Page
   This extends the main styles.css with career-specific styling
*/

/* ===== CAREERS HERO SECTION ===== */
.careers-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-bg);
}

/* Background elements */
.careers-hero__image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-negative);
    background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.careers-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.85); /* Dark overlay */
    z-index: 1;
}

.careers-hero__gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top right, rgba(62, 207, 224, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse at bottom left, rgba(112, 40, 228, 0.2) 0%, transparent 70%);
    z-index: 2;
    opacity: 0.8;
}

.careers-hero__grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 15 L30 15 M15 0 L15 30' stroke='rgba(255, 255, 255, 0.03)' fill='none'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    z-index: 3;
    opacity: 0.6;
}

/* Content styling */
.careers-hero .container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.careers-hero__content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.careers-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--spacing-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInLeft 0.8s ease-out;
}

.careers-hero__badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: relative;
}

.careers-hero__badge-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-primary);
    animation: pulse 2s infinite;
}

.careers-hero__title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.02em;
}

.careers-hero__title-line {
    display: block;
    animation: slideInLeft 0.8s ease-out;
    animation-fill-mode: both;
}

.careers-hero__title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.careers-hero__title-highlight {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.careers-hero__title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.05em;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    opacity: 0.5;
    animation: lineReveal 1s ease-out 0.8s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

.careers-hero__subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

/* ===== CULTURE SECTION ===== */
.culture-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.value-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(62, 207, 224, 0.2);
}

.value-card__icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(62, 207, 224, 0.1), rgba(112, 40, 228, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    transition: transform var(--transition-medium);
    border: 1px solid rgba(62, 207, 224, 0.15);
}

.value-card:hover .value-card__icon {
    transform: scale(1.1);
}

.value-card__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.value-card__text {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.benefits-section__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.backdrop__gradient {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle at center, rgba(62, 207, 224, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
}

.backdrop__grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='rgba(255,255,255,0.03)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.benefit-card {
    background-color: rgba(28, 28, 36, 0.7);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(62, 207, 224, 0.2);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(135deg, rgba(62, 207, 224, 0.05), rgba(112, 40, 228, 0.05));
    opacity: 0;
    transition: opacity var(--transition-medium);
    transform: rotate(45deg);
    z-index: 0;
}

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

.benefit-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(62, 207, 224, 0.1), rgba(112, 40, 228, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(62, 207, 224, 0.15);
}

.benefit-card__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.benefit-card__text {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===== ROLES SECTION ===== */
.roles-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-bg);
    position: relative;
}

.roles-container {
    margin-top: var(--spacing-2xl);
}

.roles-message {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid var(--color-border);
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.roles-message__icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(62, 207, 224, 0.1), rgba(112, 40, 228, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-primary);
    border: 1px solid rgba(62, 207, 224, 0.15);
}

.roles-message__content h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.roles-message__content p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.roles-message__content p:last-child {
    margin-bottom: 0;
}

.roles-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.role-category {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.role-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(62, 207, 224, 0.2);
}

.role-category__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.role-category__title i {
    color: var(--color-primary);
}

.role-category__list {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.8;
}

.role-category__list li {
    position: relative;
    padding-left: var(--spacing-lg);
}

.role-category__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

/* ===== APPLICATION CTA ===== */
.application-cta {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(to right, var(--color-primary-dark), var(--color-secondary));
    position: relative;
    overflow: hidden;
    color: white;
}

.application-cta__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.application-cta__waves {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255, 255, 255, 0.05)' fill-opacity='1' d='M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,186.7C672,203,768,181,864,154.7C960,128,1056,96,1152,112C1248,128,1344,192,1392,224L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.application-cta__dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='2' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    opacity: 0.4;
}

.application-cta__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: var(--spacing-2xl) 0;
}

.application-cta__title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.application-cta__title span {
    position: relative;
    display: inline-block;
}

.application-cta__title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: var(--radius-full);
}

.application-cta__text {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.application-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: var(--radius-full);
    padding: var(--spacing-md) var(--spacing-xl);
    max-width: fit-content;
    margin: 0 auto;
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.application-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.application-email__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.application-email__address {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: white;
}

.application-cta__note {
    font-size: var(--font-size-base);
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .careers-hero__title {
        font-size: var(--font-size-4xl);
    }
    
    .careers-hero__subtitle {
        font-size: var(--font-size-lg);
    }
    
    .application-cta__title {
        font-size: var(--font-size-3xl);
    }
    
    .application-cta__text {
        font-size: var(--font-size-lg);
    }
    
    .application-email {
        padding: var(--spacing-sm) var(--spacing-lg);
    }
    
    .application-email__address {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 768px) {
    .careers-hero {
        min-height: 50vh;
    }
    
    .careers-hero__title {
        font-size: var(--font-size-3xl);
    }
    
    .careers-hero__subtitle {
        font-size: var(--font-size-base);
    }
    
    .values-grid, 
    .benefits-grid, 
    .roles-categories {
        grid-template-columns: 1fr;
    }
    
    .roles-message {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .application-cta__title {
        font-size: var(--font-size-2xl);
    }
    
    .application-cta__text {
        font-size: var(--font-size-base);
    }
    
    .application-email {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    .careers-hero__badge {
        font-size: var(--font-size-xs);
    }
    
    .careers-hero__title {
        font-size: var(--font-size-2xl);
    }
    
    .careers-hero__subtitle {
        font-size: var(--font-size-sm);
    }
    
    .application-cta__title span::after {
        height: 2px;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes lineReveal {
    to {
        transform: scaleX(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}