/* Community Page Specific Styles - Only loads on community.html */
/* Cycling Over Sixty - Community Page CSS */

/* ===== COMMUNITY HERO SECTION ===== */
.community-hero {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 80px 20px;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.community-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.community-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.community-hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.community-hero .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== COMMUNITY NAVIGATION ===== */
.community-nav {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    padding: 20px;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.community-nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.community-nav .nav-link {
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all var(--transition-smooth);
    font-size: 0.9rem;
}

.community-nav .nav-link:hover,
.community-nav .nav-link:focus,
.community-nav .nav-link.active {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 226, 31, 0.3);
}

/* ===== COMMUNITY SECTIONS ===== */
.community-section {
    background: var(--background-white);
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    scroll-margin-top: 100px;
}

.section-header {
    background: var(--primary-green);
    color: white;
    padding: 25px 30px;
    margin: 0;
}

.section-header h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
}

.section-content {
    padding: 40px 30px;
}

/* ===== MISSION SECTION ===== */
.lead-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.mission-highlight {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 5px solid var(--primary-green);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.mission-highlight h4 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.mission-goals h4 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.goal-item {
    background: var(--background-hero);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
}

.goal-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-medium);
}

.goal-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.goal-item h5 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.goal-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
    border-left: 5px solid #e74c3c;
}

.problem-section .section-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.problem-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-left: 5px solid;
}

.stat-card.urgent {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fdf2f2, #ffffff);
}

.stat-card.warning {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, #fef9f2, #ffffff);
}

.stat-card h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.stat-card p {
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

.problem-impact h4 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.impact-highlight {
    background: linear-gradient(135deg, #fee, #fff);
    border: 2px solid #e74c3c;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.impact-statement {
    font-size: 1.3rem;
    color: #c0392b;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
}

.consequences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.consequence-item {
    background: var(--background-hero);
    padding: 20px;
    border-radius: var(--border-radius);
    border-top: 4px solid;
}

.consequence-item.health { border-top-color: #e74c3c; }
.consequence-item.physical { border-top-color: #f39c12; }
.consequence-item.mental { border-top-color: #9b59b6; }
.consequence-item.economic { border-top-color: #34495e; }

.consequence-item h5 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.consequence-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.consequence-item li {
    color: var(--text-medium);
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.consequence-item li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* ===== SOLUTION SECTION ===== */
.solution-section {
    border-left: 5px solid #27ae60;
}

.solution-section .section-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.exercise-medicine-logo {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-medium);
}

.exercise-medicine-logo h4 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.partnership-text {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

.benefits-showcase {
    margin-top: 40px;
}

.benefits-showcase h4 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

/* ===== IMAGE SECTION ===== */
.image-section {
    text-align: center;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-section a {
    display: inline-block;
    max-width: 100%;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: transform var(--transition-smooth);
    display: block;
    margin: 0 auto;
}

.image-section img:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 15px;
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.responsive-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ===== MEDICINE SECTION ===== */
.medicine-section {
    border-left: 5px solid #f39c12;
}

.medicine-section .section-header {
   background: linear-gradient(135deg, #f39c12, #e67e22);
}

.research-highlight {
    margin: 40px 0;
}

.research-highlight h4 {
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
}

.study-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid  #f39c12;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
}

.study-header {
    margin-bottom: 20px;
}

.study-header h5 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.study-source {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.study-findings blockquote {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 20px 0;
    padding: 20px;
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid  #f39c12;
    border-radius: 4px;
    font-style: italic;
}

.medical-device-benefits h4 {
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.benefit-card {
    background: var(--background-hero);
    padding: 25px;
    border-radius: var(--border-radius);
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    box-shadow: var(--shadow-medium);
}

.benefit-card h5 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.health-benefits-detail h4 {
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
}

.interventions-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.intervention-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--background-hero);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: all var(--transition-smooth);
    border-left: 4px solid;
}

.intervention-item.cardiovascular { border-left-color: #e74c3c; }
.intervention-item.weight { border-left-color: #f39c12; }
.intervention-item.mental { border-left-color: #9b59b6; }
.intervention-item.mobility { border-left-color: #27ae60; }

.intervention-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.intervention-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.intervention-content h5 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.intervention-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ===== COMPONENTS SECTION ===== */
.components-section {
    border-left: 5px solid #3498db;
}

.components-section .section-header {
   background: linear-gradient(135deg, #3498db, #2980b9);
}

.component-highlight {
    background: linear-gradient(135deg, #fff9f2, #ffffff);
    border: 2px solid #3498db;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
}

.component-highlight h4 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.event-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 25px;
}

.event-features h5 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-medium);
    line-height: 1.6;
}

.features-list li::before {
    content: "✓";
    color: #f39c12;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.event-cta {
    margin-top: 25px;
    text-align: center;
}

.component-link {
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    transition: all var(--transition-smooth);
}

.component-link:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(164, 226, 31, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .community-hero {
        padding: 60px 20px;
    }
    
    .community-hero h2 {
        font-size: 2.5rem;
    }
    
    .community-hero .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .community-nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .community-nav .nav-link {
        min-width: 150px;
        text-align: center;
    }
    
    .section-header {
        padding: 20px 25px;
    }
    
    .section-header h3 {
        font-size: 1.8rem;
    }
    
    .section-content {
        padding: 30px 25px;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .problem-stats {
        grid-template-columns: 1fr;
    }
    
    .consequences-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .intervention-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .exercise-medicine-logo {
        padding: 25px 20px;
    }
    
    .exercise-medicine-logo h4 {
        font-size: 1.6rem;
    }
    
    .study-card {
        padding: 25px 20px;
    }
    
    .component-highlight {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .community-hero {
        padding: 40px 15px;
    }
    
    .community-hero h2 {
        font-size: 2rem;
    }
    
    .community-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .community-nav {
        padding: 15px;
        position: static;
    }
    
    .community-nav .nav-link {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .section-header {
        padding: 15px 20px;
    }
    
    .section-header h3 {
        font-size: 1.6rem;
    }
    
    .section-content {
        padding: 25px 20px;
    }
    
    .lead-text {
        font-size: 1rem;
    }
    
    .goal-item {
        padding: 20px;
    }
    
    .goal-icon {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .impact-statement {
        font-size: 1.1rem;
    }
    
    .study-findings blockquote {
        font-size: 1rem;
        padding: 15px;
    }
    
    .intervention-icon {
        font-size: 2rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .community-hero,
    .community-nav,
    .back-to-top {
        display: none;
    }
    
    .community-section {
        break-inside: avoid;
        margin-bottom: 20px;
        border: 1px solid #ddd;
    }
    
    .section-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid #ddd;
    }
    
    .goals-grid,
    .benefits-grid,
    .consequences-grid {
        grid-template-columns: 1fr;
    }
    
    .goal-item,
    .benefit-card,
    .consequence-item {
        border: 1px solid #ddd;
        margin-bottom: 10px;
    }
}

/* ===== ANIMATION DELAYS FOR STAGGERED LOADING ===== */
.goal-item:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.1s both; }
.goal-item:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.2s both; }
.goal-item:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.3s both; }
.goal-item:nth-child(4) { animation: fadeInUp 0.8s ease-out 0.4s both; }

.consequence-item:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.1s both; }
.consequence-item:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.2s both; }
.consequence-item:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.3s both; }
.consequence-item:nth-child(4) { animation: fadeInUp 0.8s ease-out 0.4s both; }

.benefit-card:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.1s both; }
.benefit-card:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.2s both; }
.benefit-card:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.3s both; }
.benefit-card:nth-child(4) { animation: fadeInUp 0.8s ease-out 0.4s both; }