/*
 * TÜRKONFED - How to Join Page
 * Clear. Structured. Professional.
 */

/* ============================================
   HERO SECTION
   ============================================ */

.join-hero {
    position: relative;
    padding: 10rem 0 4.0rem;
    background: var(--color-bg-dark);
    overflow: hidden;
}

.join-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.join-hero .hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(237, 27, 47, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(237, 27, 47, 0.05) 0%, transparent 40%);
}

.join-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.join-hero-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    background: rgba(237, 27, 47, 0.1);
    margin-bottom: 1.5rem;
}

.join-hero-title {
    font-family: var(--font-family-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 1.5rem;
}

.join-hero-title span {
    color: rgba(255, 255, 255, 0.6);
}

.join-hero-title .accent {
    color: var(--color-accent);
}

.join-hero-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   OVERVIEW SECTION
   ============================================ */

.join-overview {
    padding: 4rem 0;
    background: var(--color-bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.overview-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.overview-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(237, 27, 47, 0.3);
    transform: translateY(-4px);
}

.overview-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #c41428 100%);
}

.overview-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.overview-card h3 {
    font-family: var(--font-family-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.overview-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ============================================
   JOIN SECTIONS
   ============================================ */

.join-section {
    padding: 4rem 0;
    background: var(--color-bg-white);
}

.join-section.alt {
    background: var(--color-bg-light);
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-number {
    display: inline-block;
    font-family: var(--font-family-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    padding: 0.35rem 0.75rem;
    background: rgba(237, 27, 47, 0.08);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.section-title .highlight {
    color: var(--color-accent);
}

/* ============================================
   STEPS GRID
   ============================================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.join-section.alt .step-card {
    background: var(--color-bg-white);
}

.step-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.step-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.step-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

.step-card:hover .step-icon svg {
    color: #fff;
}

.step-content h4 {
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   SECTION NOTE
   ============================================ */

.section-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(237, 27, 47, 0.04);
    border-left: 3px solid var(--color-accent);
}

.section-note svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    margin-top: 2px;
}

.section-note p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   FEDERATION SECTION
   ============================================ */

.federation-content {
    max-width: 700px;
}

.federation-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.federation-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.federation-step:hover {
    border-color: var(--color-accent);
    transform: translateX(8px);
}

.federation-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    background: var(--color-accent);
}

.federation-step-content h4 {
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.35rem;
}

.federation-step-content p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   VISUAL SECTION
   ============================================ */

.join-visual {
    padding: 4rem 0;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.join-visual-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.join-infographic {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ============================================
   CTA SECTION
   ============================================ */

.join-cta {
    padding: 4rem 0;
    background: var(--color-bg-dark);
}

.join-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.join-cta-text h2 {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}

.join-cta-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0;
    max-width: 500px;
}

.join-cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(237, 27, 47, 0.3);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   RELATED SECTION
   ============================================ */

.join-related {
    padding: 4rem 0;
    background: var(--color-bg-light);
}

.join-related .related-title {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
}

.join-related .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.related-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
}

.related-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.related-card-content {
    flex: 1;
}

.related-card-content h4 {
    font-family: var(--font-family-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 0.15rem;
}

.related-card-content p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
}

.related-card-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.related-card-arrow svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.related-card:hover .related-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .join-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .join-cta-text p {
        max-width: 100%;
    }

    .join-related .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .join-hero {
        padding: 8rem 0 3.0rem;
    }

    .join-hero-title {
        font-size: 2rem;
    }

    .join-hero-desc {
        font-size: 1rem;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
    }

    .step-icon {
        margin: 0 auto;
    }

    .federation-step {
        flex-direction: column;
        text-align: center;
    }

    .federation-step-number {
        margin: 0 auto;
    }

    .section-note {
        flex-direction: column;
        text-align: center;
    }

    .join-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .join-hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .overview-card {
        padding: 1.5rem 1rem;
    }

    .step-card {
        padding: 1.25rem;
    }

    .federation-step {
        padding: 1.25rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .overview-card,
    .step-card,
    .federation-step,
    .related-card,
    .btn-primary,
    .btn-secondary {
        transition: none;
    }

    .overview-card:hover,
    .step-card:hover,
    .federation-step:hover,
    .related-card:hover,
    .btn-primary:hover {
        transform: none;
    }
}
