/*
    Echo Beacon: The Cartographer's Journey - Features Page Styles
    Comprehensive styling for the detailed features page with interactive elements
*/

/* Features Hero Section */
.features-hero {
    min-height: 70vh;
    background: radial-gradient(ellipse at 50% 30%, #23263a 0%, #10131a 90%);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 231, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 231, 0.3);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-glow);
    text-shadow: 0 0 16px var(--accent-glow2);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Feature Sections */
.feature-section {
    padding: 4rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--accent-glow2);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Material Detection System */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.material-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 231, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.material-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-glow);
    box-shadow: 0 8px 32px rgba(0, 255, 231, 0.2);
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-glow), var(--accent-glow2));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.material-card:hover::before {
    transform: scaleX(1);
}

.material-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.material-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.material-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.waveform-demo {
    background: #1a1f2e;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 231, 0.1);
}

.material-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.material-stats .stat {
    background: rgba(0, 255, 231, 0.05);
    border: 1px solid rgba(0, 255, 231, 0.2);
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Interactive Material Demo */
.interactive-demo {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(0, 255, 231, 0.2);
}

.interactive-demo h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-glow);
    margin-bottom: 1rem;
}

.material-demo {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    border-radius: 12px;
    border: 2px solid rgba(0, 255, 231, 0.3);
    overflow: hidden;
    cursor: crosshair;
}

.material-zone {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.material-zone:hover {
    opacity: 0.6;
    transform: scale(1.1);
}

.stone-zone {
    background: var(--stone);
    width: 80px;
    height: 80px;
    top: 20%;
    left: 20%;
}

.water-zone {
    background: var(--water);
    width: 60px;
    height: 60px;
    top: 30%;
    right: 25%;
}

.metal-zone {
    background: var(--metal);
    width: 70px;
    height: 70px;
    bottom: 30%;
    left: 30%;
}

.crystal-zone {
    background: var(--crystal);
    width: 50px;
    height: 50px;
    top: 60%;
    right: 20%;
}

.organic-zone {
    background: #8fbc8f;
    width: 90px;
    height: 90px;
    bottom: 20%;
    right: 30%;
}

/* Cartographic Memory System */
.mapping-demo {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 255, 231, 0.2);
}

.map-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(20, 20px);
    grid-template-rows: repeat(20, 20px);
    gap: 1px;
    background: #1a1f2e;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(0, 255, 231, 0.3);
}

.map-tile {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-tile.unexplored {
    background: #2a2f3e;
    border: 1px solid #3a3f4e;
}

.map-tile.stone { background: var(--stone); }
.map-tile.water { background: var(--water); }
.map-tile.metal { background: var(--metal); }
.map-tile.crystal { background: var(--crystal); }
.map-tile.organic { background: #8fbc8f; }

.map-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.legend-color.stone { background: var(--stone); }
.legend-color.water { background: var(--water); }
.legend-color.metal { background: var(--metal); }
.legend-color.crystal { background: var(--crystal); }
.legend-color.organic { background: #8fbc8f; }
.legend-color.unexplored { background: #2a2f3e; border: 1px solid #3a3f4e; }

.mapping-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.map-btn {
    background: linear-gradient(90deg, var(--accent-glow), var(--accent-glow2));
    color: #10131a;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

.map-stats {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.memory-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(0, 255, 231, 0.05);
    border: 1px solid rgba(0, 255, 231, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(0, 255, 231, 0.1);
    border-color: var(--accent-glow);
}

.feature-card h3 {
    color: var(--accent-glow);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

/* Advanced Echo Mechanics */
.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.mechanic-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 231, 0.2);
}

.mechanic-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-glow2);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.pulse-demo {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.pulse-type {
    flex: 1;
    text-align: center;
}

.pulse-type h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.pulse-type p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pulse-visual {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
}

.omni-pulse {
    background: radial-gradient(circle, rgba(0, 255, 231, 0.3) 0%, transparent 70%);
    animation: omni-pulse 2s infinite;
}

.dir-pulse {
    background: conic-gradient(from 0deg, rgba(0, 255, 231, 0.3) 0deg, transparent 60deg, transparent 360deg);
    animation: dir-pulse 2s infinite;
}

@keyframes omni-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes dir-pulse {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.3; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 0.6; }
}

.energy-demo {
    text-align: center;
}

.energy-bar {
    width: 100%;
    height: 20px;
    background: #1a1f2e;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 231, 0.3);
}

.energy-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-glow), var(--accent-glow2));
    width: 100%;
    transition: width 0.3s ease;
}

.energy-stats {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.strength-demo {
    text-align: center;
}

.strength-slider {
    margin-bottom: 1rem;
}

.strength-slider input[type="range"] {
    width: 100%;
    height: 6px;
    background: #1a1f2e;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.strength-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-glow);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow2);
}

.strength-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.range-indicator {
    color: var(--accent-glow);
    font-weight: 700;
}

/* Accessibility Section */
.accessibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.access-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 231, 0.2);
    text-align: center;
}

.access-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-glow);
    margin-bottom: 1rem;
}

.access-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.audio-demo-btn {
    background: linear-gradient(90deg, var(--accent-glow2), var(--accent-glow));
    color: #10131a;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-demo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

.visual-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.visual-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.visual-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-glow);
}

.control-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-options span {
    background: rgba(0, 255, 231, 0.1);
    border: 1px solid rgba(0, 255, 231, 0.3);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

/* Development Roadmap */
.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-glow), var(--accent-glow2));
    transform: translateX(-50%);
}

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

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

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

.timeline-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 4px solid var(--bg-main);
    box-shadow: 0 0 16px var(--accent-glow2);
    z-index: 2;
    flex-shrink: 0;
}

.timeline-item.completed .timeline-marker {
    background: #4CAF50;
    box-shadow: 0 0 16px #4CAF50;
}

.timeline-item.current .timeline-marker {
    background: #FF9800;
    box-shadow: 0 0 16px #FF9800;
    animation: pulse-current 2s infinite;
}

@keyframes pulse-current {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.timeline-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0 2rem;
    border: 1px solid rgba(0, 255, 231, 0.2);
    flex: 1;
    max-width: 300px;
}

.timeline-content h3 {
    color: var(--accent-glow);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--accent-glow2);
    font-size: 0.8rem;
    font-weight: 700;
}

.community-section {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 231, 0.2);
}

.community-section h3 {
    color: var(--accent-glow);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.community-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.community-btn {
    background: linear-gradient(90deg, var(--accent-glow2), var(--accent-glow));
    color: #10131a;
    text-decoration: none;
    padding: 0.8em 1.5em;
    border-radius: 24px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.community-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        gap: 1rem;
    }
    
    .stat {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    .material-grid {
        grid-template-columns: 1fr;
    }
    
    .mechanics-grid {
        grid-template-columns: 1fr;
    }
    
    .accessibility-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        flex-direction: column;
    }
    
    .map-grid {
        grid-template-columns: repeat(15, 15px);
        grid-template-rows: repeat(15, 15px);
    }
    
    .map-tile {
        width: 15px;
        height: 15px;
    }
    
    .roadmap-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-content {
        margin-left: 3rem;
        margin-right: 0;
        max-width: none;
    }
    
    .mapping-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pulse-demo {
        flex-direction: column;
        gap: 1rem;
    }
} 