/**
 * Careerscape Elementor Widgets Styles
 * Matching the React design aesthetic
 */

/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */

.cs-core-values,
.cs-timeline,
.cs-team,
.cs-features {
    --cs-primary: #1a365d;
    --cs-accent: #0ea5e9;
    --cs-accent-light: #7dd3fc;
    --cs-text: #475569;
    --cs-text-light: #94a3b8;
    --cs-bg-light: #f8fafc;
    --cs-white: #ffffff;
    --cs-border: #e2e8f0;
    
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

.cs-core-values *,
.cs-timeline *,
.cs-team *,
.cs-features * {
    box-sizing: border-box;
}

/* ==========================================================================
   Core Values Widget
   ========================================================================== */

.cs-core-values {
    /* No padding or background */
}

.cs-core-values__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 640px) {
    .cs-core-values__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cs-core-values__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cs-value-card {
    background: var(--cs-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cs-value-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cs-value-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

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

.cs-value-card__icon svg,
.cs-value-card__icon i {
    width: 28px;
    height: 28px;
    font-size: 28px;
    color: var(--cs-white);
}

.cs-value-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cs-value-card__description {
    font-size: 15px;
    color: var(--cs-text);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Timeline Widget
   ========================================================================== */

.cs-timeline {
    /* No padding */
}

.cs-timeline__container {
    position: relative;
    padding-left: 28px;
}

/* Mobile: Left line */
.cs-timeline__container::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--cs-accent), var(--cs-primary));
}

.cs-timeline__line {
    display: none;
}

@media (min-width: 768px) {
    .cs-timeline__container {
        padding-left: 0;
    }
    
    .cs-timeline__container::before {
        display: none;
    }
    
    .cs-timeline__line {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 100%;
        top: 0;
    }
}

.cs-timeline__item {
    position: relative;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.cs-timeline__item:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .cs-timeline__item {
        flex-direction: row;
        margin-bottom: 0;
        padding: 16px 0;
        align-items: center;
    }
    
    .cs-timeline__item--right {
        flex-direction: row-reverse;
    }
}

/* Mobile: Dot on the left line */
.cs-timeline__dot {
    position: absolute;
    left: -28px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--cs-white);
    box-shadow: 0 0 0 2px var(--cs-accent);
    flex-shrink: 0;
    z-index: 1;
    background: var(--cs-primary);
}

@media (min-width: 768px) {
    .cs-timeline__dot {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border: 4px solid var(--cs-white);
    }
}

.cs-timeline__card {
    background: var(--cs-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: none;
    border: 1px solid var(--cs-border);
    width: 100%;
    max-width: none;
}

@media (min-width: 768px) {
    .cs-timeline__card {
        width: calc(50% - 35px);
        max-width: none;
        padding: 24px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .cs-timeline__item--right .cs-timeline__card {
        text-align: right;
    }
    
    .cs-timeline__item--left .cs-timeline__card {
        text-align: left;
    }
}

.cs-timeline__phase {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.cs-timeline__description {
    font-size: 15px;
    color: var(--cs-text);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Team Widget
   ========================================================================== */

.cs-team {
    /* No padding or background */
}

.cs-team__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
}

@media (min-width: 640px) {
    .cs-team__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cs-team__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cs-team-card__image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.cs-team-card__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-team-card:hover .cs-team-card__image {
    transform: scale(1.05);
}

.cs-team-card__overlay {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
}

.cs-team-card__social {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
}

.cs-team-card__social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-white);
    text-decoration: none;
    transition: background 0.3s ease;
}

.cs-team-card__social-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cs-team-card__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--cs-primary);
    margin-bottom: 4px;
}

.cs-team-card__role {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.cs-team-card__bio {
    font-size: 14px;
    color: var(--cs-text);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Features Widget
   ========================================================================== */

.cs-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .cs-features {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .cs-features {
        gap: 64px;
    }
}

.cs-features__images {
    order: 1;
}

.cs-features__content {
    order: 2;
}

.cs-features--reversed .cs-features__images {
    order: 2;
}

.cs-features--reversed .cs-features__content {
    order: 1;
}

.cs-features__image-grid {
    display: none;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Mobile (below 768px): Show mobile image only */
.cs-features__image--mobile {
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Tablet (768px - 1023px): Hide mobile image, show Image 1 only */
@media (min-width: 768px) {
    .cs-features__image--mobile {
        display: none;
    }
    
    .cs-features__image-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .cs-features__image--2 {
        display: none;
    }
}

/* Desktop (1024px+): Show both images side by side */
@media (min-width: 1024px) {
    .cs-features__image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cs-features__image--2 {
        display: block;
    }
}

.cs-features__image {
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.cs-features__image--2 {
    margin-top: 32px;
}

.cs-features__subheader {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cs-accent);
    margin: 0 0 8px 0;
}

.cs-features__header {
    font-size: 32px;
    font-weight: 700;
    color: var(--cs-primary);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.cs-features__body {
    font-size: 16px;
    color: var(--cs-text);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.cs-features__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-features__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cs-features__check {
    flex-shrink: 0;
    margin-top: 2px;
}

.cs-features__check svg {
    display: block;
}

.cs-features__text {
    font-size: 16px;
    color: var(--cs-text);
    line-height: 1.5;
}

/* ==========================================================================
   Animation Classes (Optional Enhancement)
   ========================================================================== */

@keyframes cs-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cs-animate-on-scroll {
    animation: cs-fadeInUp 0.6s ease forwards;
}
