/* Welcome Page Specific Styles - Optimized for All Ages & Skill Levels */

.welcome-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-size: 1.3em; /* Larger base font size */
    line-height: 1.8; /* More generous line spacing */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

/* Enhanced Typography with Accessibility Focus */
.welcome-content h1 {
    font-size: 4em;
    text-align: center;
    color: #1a1a1a; /* Higher contrast */
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.welcome-content h2 {
    font-size: 2.6em;
    color: #1a1a1a; /* Higher contrast */
    margin: 3rem 0 1.5rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.welcome-content h3 {
    font-size: 2.2em;
    color: #0066cc; /* High contrast blue */
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 600;
    line-height: 1.4;
}

.welcome-content h4 {
    font-size: 1.6em;
    color: #1a1a1a;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

/* Larger paragraph text for readability */
.welcome-content p {
    font-size: 1.2em;
    color: #2d2d2d;
    margin: 1.5rem 0;
    line-height: 1.7;
}

.welcome-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Browser selector removed - automatic detection used instead */

/* Step Content Styling - High Visibility & Accessibility */
.welcome-content div[data-steps]:not([style*="display: inline"]) {
    background: #ffffff;
    border: 3px solid #0066cc; /* Thicker, high-contrast border */
    border-radius: 16px;
    padding: 3rem 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
    display: none; /* Hidden by default, shown by JS */
    position: relative;
}

.welcome-content div[data-steps]:not([style*="display: inline"]):before {
    content: "📚 Setup Instructions for Your Browser";
    display: block;
    background: #0066cc;
    color: white;
    padding: 1rem 1.5rem;
    margin: -3rem -2.5rem 2rem -2.5rem;
    border-radius: 13px 13px 0 0;
    font-weight: 700;
    font-size: 1.1em;
    text-align: center;
}

/* Inline data-steps elements (like review links) - no special styling */
.welcome-content div[data-steps][style*="display: inline"] {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}

.welcome-content div[data-steps].active {
    display: block;
}

/* Enhanced Image Styling - Accessibility Focus */
.welcome-content img {
    max-width: 100%;
    height: auto;
    border: 4px solid #0066cc; /* Thicker, high-contrast border */
    border-radius: 12px;
    margin: 2.5rem auto;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.2);
    background: white;
    padding: 8px;
}

/* Remove hover effects for simplicity and accessibility */

/* Accessible Callout Boxes - High Contrast & Clear Messaging */
.welcome-content div[style*="background-color: #f8f9fa"] {
    background: #e8f4ff !important; /* Solid, high-contrast background */
    border: 3px solid #0066cc !important;
    border-radius: 12px !important;
    padding: 2.5rem !important;
    margin: 3rem 0 !important;
    font-size: 1.2em !important;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.15);
}

.welcome-content div[style*="background-color: #e8f5e8"] {
    background: #e8f8e8 !important; /* Solid, high-contrast background */
    border: 3px solid #008000 !important;
    border-radius: 12px !important;
    padding: 2.5rem !important;
    margin: 3rem 0 !important;
    font-size: 1.2em !important;
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.15);
}

.welcome-content div[style*="background-color: #fff3cd"] {
    background: #fff8e1 !important; /* Solid, high-contrast background */
    border: 3px solid #cc8800 !important;
    border-radius: 12px !important;
    padding: 2.5rem !important;
    margin: 3rem 0 !important;
    font-size: 1.2em !important;
    box-shadow: 0 6px 20px rgba(204, 136, 0, 0.15);
}

/* Make callout text larger and higher contrast */
.welcome-content div[style*="background-color"] strong {
    font-size: 1.3em !important;
    color: #1a1a1a !important;
    display: block;
    margin-bottom: 0.5rem;
}

/* Help Cards Grid - Simplified & Accessible */
.welcome-content div[style*="display: grid"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 2.5rem !important;
    margin: 4rem 0 !important;
}

.welcome-content div[style*="display: grid"] > div {
    background: white !important;
    padding: 3rem 2.5rem !important;
    border-radius: 16px !important;
    border: 3px solid #0066cc !important;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15) !important;
    text-align: center !important;
}

/* Remove hover effects for accessibility */

.welcome-content div[style*="display: grid"] h4 {
    color: #1a1a1a !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.5em !important;
    font-weight: 700 !important;
}

.welcome-content div[style*="display: grid"] p {
    font-size: 1.1em !important;
    margin-bottom: 2rem !important;
    color: #2d2d2d !important;
}

.welcome-content div[style*="display: grid"] .btn {
    background: #0066cc !important;
    color: white !important;
    padding: 1.2rem 2.5rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-weight: 700 !important;
    font-size: 1.1em !important;
    border: 3px solid #0066cc !important;
    min-height: 60px !important; /* Minimum touch target */
    line-height: 1.3 !important;
}

.welcome-content div[style*="display: grid"] .btn:hover,
.welcome-content div[style*="display: grid"] .btn:focus {
    background: #004499 !important;
    text-decoration: none !important;
    color: white !important;
    outline: 3px solid #ffcc00 !important;
    outline-offset: 2px !important;
}

/* Final Welcome Section - Celebration & Encouragement */
.welcome-content div[style*="text-align: center"][style*="background-color: #e8f5e8"] {
    background: #e8f8e8 !important; /* Solid, high-contrast background */
    border-radius: 20px !important;
    padding: 4rem 3rem !important;
    margin: 5rem 0 !important;
    border: 4px solid #008000 !important;
    box-shadow: 0 12px 40px rgba(0, 128, 0, 0.2);
    text-align: center !important;
}

.welcome-content div[style*="text-align: center"] h3 {
    color: #1a1a1a !important;
    margin-bottom: 1.5rem !important;
    font-size: 2.5em !important;
    font-weight: 700 !important;
}

.welcome-content div[style*="text-align: center"] p {
    color: #2d2d2d !important;
    font-weight: 600 !important;
    font-size: 1.4em !important;
    line-height: 1.6 !important;
}

/* Removed automatic step numbering - content includes step numbers manually */

/* Lists Enhancement - Larger Text & Spacing */
.welcome-content ul, .welcome-content ol {
    padding-left: 2.5rem;
    margin: 2.5rem 0;
}

.welcome-content li {
    margin: 1.5rem 0;
    line-height: 1.8;
    font-size: 1.2em;
    color: #2d2d2d;
}

.welcome-content li strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Enhanced Responsive Design for All Devices */
@media (max-width: 768px) {
    .welcome-content {
        padding: 1.5rem 1rem;
        font-size: 1.2em; /* Still larger on mobile */
    }
    
    .welcome-content h1 {
        font-size: 3em; /* Larger than before */
    }
    
    .welcome-content h2 {
        font-size: 2.2em; /* Larger than before */
    }
    
    .welcome-content h3 {
        font-size: 1.9em;
    }
    
    .welcome-content div[data-steps] {
        padding: 2.5rem 1.5rem;
        margin: 2rem 0;
    }
    
    .welcome-content div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .welcome-content div[style*="display: grid"] .btn {
        padding: 1.5rem 2rem !important;
        font-size: 1.2em !important;
        min-height: 70px !important;
    }
}

@media (max-width: 480px) {
    .welcome-content h1 {
        font-size: 2.5em; /* Still quite large */
    }
    
    .welcome-content h2 {
        font-size: 1.9em;
    }
    
    .welcome-content div[data-steps] {
        padding: 2rem 1rem;
    }
    
    .welcome-content div[style*="background-color"] {
        padding: 2rem 1.5rem !important;
        margin: 2rem 0 !important;
        font-size: 1.1em !important;
    }
    
    .welcome-content div[style*="display: grid"] > div {
        padding: 2.5rem 1.5rem !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .welcome-content {
        background: white;
    }
    
    .welcome-content h1, 
    .welcome-content h2, 
    .welcome-content h3,
    .welcome-content p {
        color: #000000 !important;
    }
    
    .welcome-content div[data-steps] {
        border-color: #000000 !important;
    }
}

/* Next Step Buttons */
.welcome-content button[onclick*="scrollToStep"] {
    background: #0066cc !important;
    color: white !important;
    padding: 1.2rem 2.5rem !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3) !important;
    min-height: 60px !important;
    line-height: 1.3 !important;
}

.welcome-content button[onclick*="scrollToStep"]:hover,
.welcome-content button[onclick*="scrollToStep"]:focus {
    background: #004499 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4) !important;
    outline: 3px solid #ffcc00 !important;
    outline-offset: 2px !important;
}

/* Special styling for completion button */
.welcome-content button[style*="background: #008000"] {
    background: #008000 !important;
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.3) !important;
}

.welcome-content button[style*="background: #008000"]:hover,
.welcome-content button[style*="background: #008000"]:focus {
    background: #006600 !important;
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.4) !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .welcome-content button[onclick*="scrollToStep"] {
        transition: none !important;
    }
    
    .welcome-content button[onclick*="scrollToStep"]:hover {
        transform: none !important;
    }
}