/* ==========================================================================
   Contributors Page Styles
   Built on Glassmorphism Design System
   ========================================================================== */

/* Import dependencies */
@import url('glassmorphism.css');
@import url('pages/landing.css');

/* Page Container with Gradient Background */
.contributors-page {
    position: relative;
    color: var(--text-primary, #FFFFFF);
    background: linear-gradient(135deg,
        rgba(20, 20, 30, 0.95) 0%,
        rgba(40, 35, 50, 0.95) 25%,
        rgba(30, 25, 40, 0.95) 50%,
        rgba(45, 40, 55, 0.95) 75%,
        rgba(25, 20, 35, 0.95) 100%
    );
    min-height: 100vh;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #7B44C1 0%, #1E96FC 100%);
    padding: 8rem 0 5rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    text-transform: none !important;
}

/* ==========================================================================
   Section Backgrounds - Alternating Pattern (matches safety-coppa)
   ========================================================================== */
/* Grey sections (1, 3, 5, 7) */
.what-section,
.what-do-section,
.impact-section,
.cta-section {
    background-color: #323031;
    padding: 80px 0;
}

/* Purple gradient sections (2, 4, 6) */
.who-section,
.benefits-section,
.team-highlight-section {
    background: linear-gradient(135deg, #7B44C1 0%, #1E96FC 100%);
    padding: 80px 0;
}

/* ==========================================================================
   What Section (Definition & Career Path)
   ========================================================================== */
.what-section {
    /* Background set above */
}

.contributor-intro-card {
    padding: 3rem;
}

.what-section .glass-card {
    text-align: left;
}

.what-section .lead {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.what-section p {
    font-size: 1.25rem;
}

/* Career Path Visualization */
.career-path {
    max-width: 1200px;
    margin: 0 auto;
}

.career-path h3 {
    font-size: 2rem;
    color: var(--text-primary);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.path-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    margin-top: 3rem;
}

.path-step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    min-width: 180px;
    width: 180px;
    height: 260px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.path-step.active {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.4) 0%,
        rgba(118, 75, 162, 0.4) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.5);
}

.path-step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(123, 68, 193, 0.2);
    border-color: rgba(123, 68, 193, 0.3);
}

.path-step:hover .medieval-icon {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(0) saturate(100%) invert(83%) sepia(50%) saturate(800%) hue-rotate(100deg) brightness(110%) contrast(90%) drop-shadow(0 0 20px rgba(154, 213, 202, 0.8));
}

.step-icon {
    margin-bottom: 1rem;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon .medieval-icon {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto;
    filter: brightness(0) saturate(100%) invert(83%) sepia(50%) saturate(800%) hue-rotate(100deg) brightness(110%) contrast(90%) drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.path-step h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    height: 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.path-step p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    width: 100%;
    text-align: center;
}

.path-arrow {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

/* ==========================================================================
   Who Section (Contributor Roles)
   ========================================================================== */
.who-section {
    /* Background set above */
}

.contributors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.who-section .card-custom {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.who-section .card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 68, 193, 0.1) 0%, transparent 50%, rgba(123, 68, 193, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.who-section .card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 68, 193, 0.2);
    border-color: rgba(123, 68, 193, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.who-section .card-custom:hover::before {
    opacity: 1;
}

.who-section .card-icon {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%) drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
    opacity: 1;
    transition: all 0.3s ease;
}

.who-section .card-custom:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(0) saturate(100%) invert(83%) sepia(50%) saturate(800%) hue-rotate(100deg) brightness(110%) contrast(90%) drop-shadow(0 0 20px rgba(154, 213, 202, 0.8));
}

.who-section .card-custom h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.who-section .card-custom p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    font-size: 1.25rem;
}

/* ==========================================================================
   What Do Section (Activities)
   ========================================================================== */
.what-do-section {
    /* Background set above */
}

.what-do-section .glass-panel {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.what-do-section .glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 68, 193, 0.1) 0%, transparent 50%, rgba(123, 68, 193, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.what-do-section .glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 68, 193, 0.2);
    border-color: rgba(123, 68, 193, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.what-do-section .glass-panel:hover::before {
    opacity: 1;
}

.activity-icon {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.activity-icon .medieval-icon {
    width: 64px;
    height: 64px;
    filter: brightness(0) saturate(100%) invert(83%) sepia(50%) saturate(800%) hue-rotate(100deg) brightness(110%) contrast(90%) drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.what-do-section .glass-panel:hover .medieval-icon {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(0) saturate(100%) invert(83%) sepia(50%) saturate(800%) hue-rotate(100deg) brightness(110%) contrast(90%) drop-shadow(0 0 20px rgba(154, 213, 202, 0.8));
}

.what-do-section h4 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.what-do-section ul {
    list-style: none;
    padding-left: 0;
}

.what-do-section ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.25rem;
}

.what-do-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color, #F093FB);
    font-weight: bold;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits-section {
    /* Background set above */
}

.benefits-section .card-custom {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.benefits-section .card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 68, 193, 0.1) 0%, transparent 50%, rgba(123, 68, 193, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefits-section .card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 68, 193, 0.2);
    border-color: rgba(123, 68, 193, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.benefits-section .card-custom:hover::before {
    opacity: 1;
}

.benefits-section .card-icon {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%) drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
    opacity: 1;
    transition: all 0.3s ease;
}

.benefits-section .card-custom:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(0) saturate(100%) invert(83%) sepia(50%) saturate(800%) hue-rotate(100deg) brightness(110%) contrast(90%) drop-shadow(0 0 20px rgba(154, 213, 202, 0.8));
}

.benefits-section .card-custom h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.benefits-section .card-custom p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    font-size: 1.25rem;
}

.highlight-stat {
    font-size: 1.25rem;
    color: var(--accent-color, #F093FB);
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefits-section .card-custom ul {
    list-style: none;
    padding-left: 0;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.benefits-section .card-custom ul li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.25rem;
}

.benefits-section .card-custom ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
}

.example-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.example-box .small {
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

/* Equity Details Card */
.benefits-section .glass-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.benefits-section .glass-card p {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* ==========================================================================
   Impact Section
   ========================================================================== */
.impact-section {
    /* Background set above */
}

.impact-section .glass-panel {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.impact-section .glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 68, 193, 0.1) 0%, transparent 50%, rgba(123, 68, 193, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impact-section .glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 68, 193, 0.2);
    border-color: rgba(123, 68, 193, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.impact-section .glass-panel:hover::before {
    opacity: 1;
}

.impact-combined {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.impact-left,
.impact-right {
    position: relative;
    z-index: 1;
}

.impact-example {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.7rem;
    padding: 1.7rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.example-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(83%) sepia(50%) saturate(800%) hue-rotate(100deg) brightness(110%) contrast(90%) drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.impact-section .glass-panel:hover .example-icon {
    transform: scale(1.15);
    filter: brightness(0) saturate(100%) invert(83%) sepia(50%) saturate(800%) hue-rotate(100deg) brightness(110%) contrast(90%) drop-shadow(0 0 20px rgba(154, 213, 202, 0.8));
}

.impact-example p {
    margin: 0.25rem 0;
    font-size: 1.25rem;
}

.impact-example .stat {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color, #F093FB);
}

.impact-list {
    list-style: none;
    padding-left: 0;
}

.impact-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.25rem;
}

.impact-list li::before {
    content: "★";
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-size: 1.2rem;
}

.economics-comparison {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.economics-comparison h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.comparison-table {
    width: 100%;
    font-size: 1.25rem;
}

.comparison-table td {
    padding: 0.5rem 0;
    font-size: 1.25rem;
}

.comparison-table .highlight {
    color: #4ade80;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==========================================================================
   Team Highlight Section
   ========================================================================== */
.team-highlight-section {
    /* Background set above */
}

.maintainers-preview {
    max-width: 1200px;
    margin: 0 auto;
}

.mini-profile-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.mini-profile-card:hover {
    transform: translateY(-10px);
}

.profile-img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.mini-profile-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mini-profile-card .role {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    /* Background set above */
}

.cta-card {
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 68, 193, 0.1) 0%, transparent 50%, rgba(123, 68, 193, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 68, 193, 0.2);
    border-color: rgba(123, 68, 193, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

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

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-buttons {
    margin: 2rem 0;
}

.getting-started h4 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-item {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.4) 0%,
        rgba(118, 75, 162, 0.4) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-item p {
    font-size: 1.25rem;
    margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .path-flow {
        flex-direction: column;
    }

    .path-arrow {
        transform: rotate(90deg);
        font-size: 2.5rem;
    }

    .contributors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0 3rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

    .glass-button {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }

    .benefit-card {
        padding: 2rem 1.5rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .impact-combined {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .impact-example {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        max-width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .path-step {
        min-width: 150px;
        padding: 1rem;
    }

    .step-icon .medieval-icon {
        width: 48px;
        height: 48px;
    }

    .role-icon {
        width: 60px;
        height: 60px;
    }

    .benefit-icon .medieval-icon {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .contributors-page {
        background: white;
        color: black;
    }

    .glass-card,
    .glass-panel,
    .glass-button {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
