/* How It Works Page Specific Styles */

/* How Hero */
.how-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 120px 0 80px;
    text-align: center;
}

.how-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.how-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Steps Section */
.steps-section {
    padding: 80px 0;
    background: var(--text-light);
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 60px;
}

.step-item.reverse {
    flex-direction: row-reverse;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    flex: 1;
}

.step-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step-text p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.step-details {
    list-style: none;
    padding: 0;
}

.step-details li {
    padding: 8px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 25px;
}

.step-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Step Visuals */
.step-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-small {
    width: 200px;
    height: 400px;
    background: var(--dark-bg);
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
}

.phone-screen-small {
    width: 100%;
    height: 100%;
    background: var(--text-light);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-setup {
    text-align: center;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
    color: var(--text-light);
}

.profile-setup h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.profile-setup p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
}

.groups-preview-small {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 250px;
}

.group-card-small {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.group-card-small h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.group-card-small p {
    font-size: 12px;
    color: var(--text-gray);
}

.activity-planning {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    width: 250px;
    border: 1px solid var(--border-color);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.activity-header h4 {
    font-size: 14px;
    color: var(--text-dark);
}

.activity-date {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.activity-details p {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.activity-actions {
    margin-top: 15px;
}

.btn-join {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.connection-result {
    text-align: center;
    width: 250px;
}

.people-avatars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
}

.connection-text h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.connection-text p {
    font-size: 14px;
    color: var(--text-gray);
}

/* Process Timeline */
.process-timeline {
    padding: 80px 0;
    background: var(--bg-light);
}

.process-timeline h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--text-light);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content {
    background: var(--text-light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 0 30px;
    flex: 1;
    max-width: 300px;
}

.timeline-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

.timeline-duration {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Success Stories */
.success-stories {
    padding: 80px 0;
    background: var(--text-light);
}

.success-stories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.story-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.story-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    color: var(--text-light);
}

.story-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.story-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.story-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item {
    background: var(--text-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.faq-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.faq-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .how-hero h1 {
        font-size: 2.5rem;
    }
    
    .how-hero p {
        font-size: 1.1rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .step-item.reverse {
        flex-direction: column;
    }
    
    .step-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .step-text h3 {
        font-size: 1.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-icon {
        position: absolute;
        left: 0;
    }
    
    .timeline-content {
        margin: 0;
        max-width: none;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .how-hero {
        padding: 100px 0 60px;
    }
    
    .how-hero h1 {
        font-size: 2rem;
    }
    
    .steps-section,
    .process-timeline,
    .success-stories,
    .faq-section {
        padding: 60px 0;
    }
    
    .process-timeline h2,
    .success-stories h2,
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .phone-mockup-small {
        width: 150px;
        height: 300px;
    }
    
    .groups-preview-small,
    .activity-planning,
    .connection-result {
        width: 200px;
    }
}
