/*
 * TÜRKONFED Working Groups Page
 * Committees. Sharp. Brutal.
 */

/* ============================================
   STATS BAR
   ============================================ */

.wg-stats {
    background: var(--color-bg-dark);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wg-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.wg-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
}

.wg-stat::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(237, 27, 47, 0.5), transparent);
}

.wg-stat:last-child::after {
    display: none;
}

.wg-stat-value {
    font-family: var(--font-family-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.wg-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
}

/* ============================================
   WORKING GROUPS MAIN
   ============================================ */

.wg-main {
    padding: 5rem 0;
    background: var(--color-bg-light);
}

.wg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   WORKING GROUP CARD
   ============================================ */

.wg-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent-color, var(--color-accent));
    transition: width 0.3s ease;
}

.wg-card:hover::before {
    width: 100%;
}

.wg-card:hover {
    border-color: var(--accent-color, var(--color-accent));
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.wg-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
}

.wg-card-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-color, var(--color-accent));
    padding: 0.35rem 0.75rem;
    background: color-mix(in srgb, var(--accent-color, var(--color-accent)) 10%, transparent);
}

.wg-card-since {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.wg-card-body {
    flex: 1;
    padding: 1.25rem 1.5rem;
}

.wg-card-title {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.wg-card-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.wg-card-focus {
    margin-top: auto;
}

.wg-focus-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.wg-focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.wg-focus-tag {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 0.3rem 0.6rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
}

.wg-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-light);
}

.wg-chair {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wg-chair-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color, var(--color-accent));
    color: #fff;
    font-family: var(--font-family-heading);
    font-size: 0.875rem;
    font-weight: 700;
}

.wg-chair-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.wg-chair-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.wg-chair-title {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wg-members-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.wg-members-count svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.wg-how-it-works {
    padding: 6rem 0;
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
}

.how-header {
    text-align: center;
    margin-bottom: 4rem;
}

.how-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.how-title {
    font-family: var(--font-family-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-text-primary);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.how-step {
    position: relative;
}

.how-step::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(100% + 1rem);
    width: calc(100% - 48px);
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-border));
}

.how-step:last-child::after {
    display: none;
}

.how-step-num {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 1rem;
    position: relative;
}

.how-step-content h3 {
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.how-step-content p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   JOIN CTA
   ============================================ */

.wg-join {
    padding: 5rem 0;
    background: var(--color-bg-dark);
    position: relative;
}

.wg-join::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-accent);
}

.wg-join-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4rem;
}

.wg-join-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.wg-join-title {
    font-family: var(--font-family-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.wg-join-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 550px;
    margin: 0;
}

.wg-join-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wg-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.wg-join-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.wg-join-btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.wg-join-btn-primary:hover {
    background: var(--color-accent-dark);
}

.wg-join-btn-primary:hover svg {
    transform: translateX(4px);
}

.wg-join-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wg-join-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.wg-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardReveal 0.5s ease forwards;
}

.wg-card:nth-child(1) { animation-delay: 0.1s; }
.wg-card:nth-child(2) { animation-delay: 0.15s; }
.wg-card:nth-child(3) { animation-delay: 0.2s; }
.wg-card:nth-child(4) { animation-delay: 0.25s; }
.wg-card:nth-child(5) { animation-delay: 0.3s; }
.wg-card:nth-child(6) { animation-delay: 0.35s; }

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .how-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .how-step:nth-child(2)::after {
        display: none;
    }

    .wg-join-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .wg-join-desc {
        max-width: none;
        margin: 0 auto;
    }

    .wg-join-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .wg-stats-grid {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .wg-stat {
        flex: 1;
        min-width: 120px;
        padding: 1.5rem 1rem;
    }

    .wg-stat::after {
        display: none;
    }

    .wg-grid {
        grid-template-columns: 1fr;
    }

    .how-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .how-step::after {
        display: none;
    }

    .wg-join {
        padding: 4rem 0;
    }

    .wg-join-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wg-stat-value {
        font-size: 1.75rem;
    }

    .wg-main {
        padding: 3rem 0;
    }

    .wg-card-header {
        padding: 1rem 1.25rem 0;
    }

    .wg-card-body {
        padding: 1rem 1.25rem;
    }

    .wg-card-title {
        font-size: 1.125rem;
    }

    .wg-card-footer {
        padding: 0.875rem 1.25rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .wg-how-it-works {
        padding: 4rem 0;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .wg-card {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .wg-card,
    .wg-join-btn {
        transition: none;
    }

    .wg-card:hover {
        transform: none;
    }
}
