/* Disabled button styling */
.action-btn.disabled {
    background: rgba(50, 50, 60, 0.3);
    color: rgba(232, 232, 240, 0.4);
    border-color: rgba(232, 232, 240, 0.2);
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.action-btn.disabled:hover {
    background: rgba(50, 50, 60, 0.3);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Tooltip container */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.95);
    color: #F5C347;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid rgba(245, 195, 71, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(10, 10, 10, 0.95);
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile tooltip adjustments */
@media (max-width: 768px) {
    .tooltip {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        white-space: normal;
        max-width: 200px;
    }
}

/* Download Instructions */
.download-instructions {
    background: rgba(0, 166, 147, 0.1);
    border: 1px solid rgba(0, 166, 147, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
}

.download-instructions h4 {
    color: #00A693;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-instructions ol {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 1rem auto;
    padding-left: 1.5rem;
}

.download-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.download-instructions p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Mobile responsiveness for technical audio features */
@media (max-width: 768px) {
    .feature-grid.nine-features {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Feature Cards Styling */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid rgba(60, 60, 70, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--wtmf-gold);
    box-shadow: 0 8px 25px rgba(245, 195, 71, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--wtmf-gold);
    margin-bottom: -1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.feature-title {
    color: var(--wtmf-gold);
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    text-align: center;
}

.feature-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.9rem;
    flex-grow: 1;
    margin: 0;
}

/* Walkthrough Section Styles */
.walkthrough-section {
    background: rgba(0, 166, 147, 0.1);
    border-radius: 12px;
    padding: 0;
    margin: 2rem auto 3rem auto;
    max-width: 700px;
    overflow: hidden;
    position: relative;
}

.walkthrough-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--wtmf-primary) 0%, 
        var(--wtmf-teal) 50%, 
        var(--wtmf-purple) 100%);
    border-radius: 12px;
    padding: 2px;
    z-index: -1;
}

.walkthrough-section::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(0, 166, 147, 0.1);
    border-radius: 10px;
    z-index: -1;
}

/* Build Logs Section Styles - Dark theme without teal gradients */
.build-log-section {
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid rgba(60, 60, 70, 0.5);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.walkthrough-toggle {
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(0, 166, 147, 0.2);
}

.walkthrough-toggle:hover {
    background: rgba(0, 166, 147, 0.05);
}

.toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.toggle-title {
    color: #00A693;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-icon {
    color: #00A693;
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.toggle-subtitle {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

.walkthrough-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.walkthrough-content.expanded {
    max-height: 500px;
    padding: 1.5rem;
}

/* Build logs specific overrides for dark theme */
.build-log-section .walkthrough-toggle {
    border-bottom: 1px solid rgba(60, 60, 70, 0.3);
}

.build-log-section .walkthrough-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.build-log-section .toggle-icon {
    color: var(--wtmf-gold);
}

/* Mobile adjustments for walkthrough */
@media (max-width: 768px) {
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .toggle-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .toggle-icon {
        align-self: flex-end;
    }
}

/* About Developer section with profile image */
.about-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--wtmf-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.about-text-content {
    flex: 1;
}

.about-text-content .about-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

.about-details {
    margin-bottom: 2rem;
}

/* Help Tabs Styling */
.help-tabs-container {
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid rgba(60, 60, 70, 0.5);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.tab-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.tab-header h3 {
    color: var(--wtmf-light) !important;
}

.tab-navigation {
    display: flex;
    gap: 0;
    margin-top: 1rem;
    border-bottom: 1px solid rgba(60, 60, 70, 0.3);
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

/* Requirements tab - Blue */
.tab-btn[onclick*="requirements"]:hover {
    color: #4A9EFF;
    background: rgba(74, 158, 255, 0.1);
}

.tab-btn[onclick*="requirements"].active {
    color: #4A9EFF;
    border-bottom-color: #4A9EFF;
    background: rgba(74, 158, 255, 0.15);
}

/* Walkthrough tab - Gold */
.tab-btn[onclick*="walkthrough"]:hover {
    color: var(--wtmf-gold);
    background: rgba(245, 195, 71, 0.1);
}

.tab-btn[onclick*="walkthrough"].active {
    color: var(--wtmf-gold);
    border-bottom-color: var(--wtmf-gold);
    background: rgba(245, 195, 71, 0.15);
}

/* Troubleshooting tab - Orange/Red */
.tab-btn[onclick*="troubleshooting"]:hover {
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

.tab-btn[onclick*="troubleshooting"].active {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
    background: rgba(255, 107, 53, 0.15);
}

/* Known Issues tab - Purple */
.tab-btn[onclick*="known-issues"]:hover {
    color: var(--wtmf-purple);
    background: rgba(123, 78, 232, 0.1);
}

.tab-btn[onclick*="known-issues"].active {
    color: var(--wtmf-purple);
    border-bottom-color: var(--wtmf-purple);
    background: rgba(123, 78, 232, 0.15);
}

.tab-content {
    padding: 1.5rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Requirements tab grid styling */
.requirements-tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.requirement-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.requirement-section ul li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.requirement-section ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Mobile adjustments for about section */
@media (max-width: 768px) {
    .about-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.5rem;
    }
    
    .about-profile-pic {
        width: 120px;
        height: 120px;
    }
    
    .tab-navigation {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid rgba(60, 60, 70, 0.2);
        border-right: none;
    }
    
    /* Mobile active states with color-coded left borders */
    .tab-btn[onclick*="requirements"].active {
        border-bottom-color: transparent;
        border-left: 3px solid #4A9EFF;
        padding-left: 0.75rem;
    }
    
    .tab-btn[onclick*="walkthrough"].active {
        border-bottom-color: transparent;
        border-left: 3px solid var(--wtmf-gold);
        padding-left: 0.75rem;
    }
    
    .tab-btn[onclick*="troubleshooting"].active {
        border-bottom-color: transparent;
        border-left: 3px solid #FF6B35;
        padding-left: 0.75rem;
    }
    
    .tab-btn[onclick*="known-issues"].active {
        border-bottom-color: transparent;
        border-left: 3px solid var(--wtmf-purple);
        padding-left: 0.75rem;
    }
    
    .requirements-tab-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Video Section Styles */
.video-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid rgba(60, 60, 70, 0.5);
    border-radius: 12px;
    padding: 2rem;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-description {
    text-align: center;
}

.video-description p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Mobile adjustments for video */
@media (max-width: 768px) {
    .video-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .video-description p {
        font-size: 0.9rem;
    }
}

/* About the Experience section spacing */
.description p {
    margin-bottom: 1.5rem;
}

.description p:last-child {
    margin-bottom: 0;
}

/* Experiment Agreement Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(245, 195, 71, 0.3);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(245, 195, 71, 0.3);
}

.modal-title {
    color: var(--wtmf-gold);
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal-body ul {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.modal-body li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.modal-btn.primary {
    background: var(--wtmf-gold);
    color: var(--wtmf-dark);
}

.modal-btn.primary:hover {
    background: #E6B84D;
    transform: translateY(-2px);
}

.modal-btn.secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}
