/* Participate page specific styles */

/* Navigation styling for participate page - using maximum specificity */
body #header .nav-links a[href="participate.html"],
body #header .nav-links a[href="#"] {
    color: var(--accent) !important;
    font-weight: 600;
}

/* Override hover state for participate link with maximum specificity */
body #header .nav-links a[href="participate.html"]:hover,
body #header .nav-links a[href="#"]:hover {
    color: var(--accent) !important;
}

/* Override hover underline for participate link with maximum specificity */
body #header .nav-links a[href="participate.html"]:hover::after,
body #header .nav-links a[href="#"]:hover::after {
    background-color: var(--accent) !important;
    width: 100% !important;
}

body #header .nav-links a[href="participate.html"]::after,
body #header .nav-links a[href="#"]::after {
    background-color: var(--accent) !important;
}

/* Active state for participate link */
body #header .nav-links a[href="#"] {
    position: relative;
}

body #header .nav-links a[href="#"]::after {
    width: 100% !important;
}



.participate-hero {
    padding: 120px 0 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(30,30,60,0.3) 0%, var(--bg-dark) 100%);
}

.participate-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.participate-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-dim);
    line-height: 1.7;
}

.installation-steps {
    padding: 80px 0;
}

.step {
    background: linear-gradient(145deg, var(--bg-darker), rgba(20, 20, 40, 0.8));
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--bg-darker);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.step h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary);
    font-weight: 600;
}

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

.step ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.step li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    position: relative;
    padding-left: 30px;
}

.step li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.step li:last-child {
    border-bottom: none;
}

.code-block {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    color: var(--accent);
    overflow-x: auto;
}

.warning {
    background-color: rgba(255, 94, 91, 0.1);
    border: 1px solid rgba(255, 94, 91, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: var(--secondary);
}

.warning:before {
    content: '⚠️ ';
    margin-right: 10px;
}

.info {
    background-color: rgba(54, 234, 204, 0.1);
    border: 1px solid rgba(54, 234, 204, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: var(--accent);
}

.info:before {
    content: '';
    margin-right: 0;
}

.download-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0 40px 0;
    margin-left: 0;
    padding-left: 0;
}

.download-card {
    background: linear-gradient(145deg, var(--bg-darker), rgba(20, 20, 40, 0.8));
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
}

.download-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
}

.download-card p {
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.6;
}

.google-play-btn {
    align-self: flex-start;
    margin-top: auto;
}

.google-play-btn img {
    width: 200px;
    transition: transform 0.3s ease;
}

.google-play-btn:hover img {
    transform: scale(1.05);
}

.faq-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
}

.faq-item {
    background: linear-gradient(145deg, var(--bg-darker), rgba(20, 20, 40, 0.8));
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
}

.faq-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
}

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

.back-to-home {
    text-align: center;
    padding: 40px 0;
}

/* Responsive for participate page */
@media (max-width: 768px) {
    .participate-hero h1 {
        font-size: 2.5rem;
    }
    .participate-hero p {
        font-size: 1.1rem;
    }
    .step {
        padding: 25px;
    }
    .step h3 {
        font-size: 1.5rem;
    }
    .step p {
        font-size: 1rem;
    }
    .download-links {
        grid-template-columns: 1fr;
    }
    
    /* Fix horizontal scrolling issues */
    .download-card {
        padding: 20px;
        overflow: hidden;
    }
    
    .android-download-content {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }
    
    .google-play-btn img {
        width: 180px;
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure content doesn't overflow */
    .container {
        overflow-x: hidden;
    }
    
    /* Fix any inline styles that might cause overflow */
    .download-card-header {
        flex-direction: row !important;
        gap: 10px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* Ensure step headers with help icons maintain correct layout */
    .step-header[style*="justify-content: space-between"] {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* Ensure help links are properly sized on mobile */
    .help-link {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 480px) {
    .participate-hero h1 {
        font-size: 2rem;
    }
    .step {
        padding: 20px;
    }
    .step h3 {
        font-size: 1.3rem;
    }
    
    /* Additional fixes for very small screens */
    .google-play-btn img {
        width: 160px;
    }
    
    .download-card {
        padding: 15px;
    }
    
    .step {
        margin-bottom: 20px;
    }
    
    /* Ensure QR code doesn't overflow */
    img[alt*="QR code"] {
        width: 100px !important;
        height: 100px !important;
    }
}


.desktop-steps {
    margin-top: auto;
    width: 100%;
}

.desktop-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.desktop-step-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bg-darker);
    background-color: var(--accent);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.desktop-step-content {
    display: flex;
    flex-direction: column;
}

.step-title {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
}

.step-description {
    margin: 5px 0 0 0;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Align buttons with text content instead of step numbers */
.desktop-steps .btn {
    margin-left: 34px; /* 24px (step number width) + 10px (gap) */
}

.google-play-btn {
    align-self: flex-start;
    margin-top: auto;
}

.google-play-btn img {
    width: 200px;
    transition: transform 0.3s ease;
}

.google-play-btn:hover img {
    transform: scale(1.05);
}

.help-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.help-link:hover {
    background: rgba(54, 234, 204, 0.1);
    color: var(--accent);
    transform: scale(1.05);
}

/* Installation Selector */
.installation-selector {
    padding: 30px 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.03) 0%, var(--bg-dark) 100%);
}

.selector-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.selector-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.selector-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.selector-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    width: 220px;
    position: relative;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-text {
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    flex: 1;
}

.selector-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.selector-btn.active {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.selector-btn:hover .btn-icon {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.05);
}

.selector-btn.active .btn-icon {
    background: rgba(255, 215, 0, 0.15);
    transform: scale(1.1);
}

.btn-text {
    font-weight: 500;
    line-height: 1.2;
}

/* Step visibility */
.new-user-step {
    display: block;
}

.existing-user-step {
    display: none;
}

.all-user-step {
    display: block;
}

/* Responsive for selector */
@media (max-width: 768px) {
    .installation-selector {
        padding: 25px 0;
    }
    
    .selector-content h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .selector-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .selector-btn {
        width: 100%;
        max-width: 280px;
        position: relative;
    }
} 