/* Installation Guide Specific Styles */

/* Tab Navigation Styles */
.nav-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-tab {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: var(--background-color);
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-right: 1px solid var(--border-color);
    position: relative;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-tab:last-child {
    border-right: none;
}

.nav-tab.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 166, 0, 0.3);
}

.nav-tab:hover:not(.active) {
    background: rgba(255, 166, 0, 0.1);
    transform: translateY(-1px);
}

.nav-tab i {
    font-size: 1.1rem;
}

/* Tab Content Styles */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Terminal Styles */
.terminal-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 0;
    margin: 1.5rem 0;
    font-family: 'Red Hat Mono', monospace;
    color: #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    overflow: hidden;
}

.terminal-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    margin: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #4a4a4a;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.terminal-content {
    padding: 1.5rem;
}

.terminal-step {
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.terminal-step:hover {
    border-left-color: var(--primary-color);
    background: rgba(255, 166, 0, 0.05);
    border-radius: 0 8px 8px 0;
    margin-left: -1rem;
    padding-left: 1.5rem;
}

.terminal-step-success {
    margin: 1rem 0;
    padding: 0.75rem 0;
    color: #4ade80;
    border-left: 3px solid #4ade80;
    padding-left: 1rem;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 0 8px 8px 0;
    margin-left: -1rem;
    padding-left: 1.5rem;
}

.terminal-success {
    margin: 1rem 0;
    padding: 0.75rem 0;
    color: #4ade80;
    font-weight: 600;
    border-left: 3px solid #4ade80;
    padding-left: 1rem;
    background: rgba(74, 222, 128, 0.15);
    border-radius: 0 8px 8px 0;
    margin-left: -1rem;
    padding-left: 1.5rem;
}

.terminal-code {
    background: #1a1a1a;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-family: 'Red Hat Mono', monospace;
    color: #ffa600;
    border: 1px solid #333;
    display: inline-block;
    margin: 0.25rem 0;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.terminal-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #4a4a4a;
    font-weight: 600;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

/* Enhanced Download Buttons */
.download-buttons {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.download-option {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.download-option h4 {
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.download-option h4 i {
    font-size: 1.5rem;
}

.arch-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.arch-buttons .btn {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.arch-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 166, 0, 0.3);
}

.download-info {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.5rem;
    background: var(--background-color);
    border-radius: 6px;
}

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

.requirements-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.requirements-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.requirements-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements-card ul {
    list-style: none;
    padding: 0;
}

.requirements-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

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

.requirements-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Next Steps Section */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.next-steps-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.next-steps-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.next-steps-card .card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.next-steps-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

/* Installation Card Enhancements */
.installation-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: auto;
}

.installation-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #ff8c00);
    color: white;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.installation-card .card-content {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
    }
    
    .nav-tab {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }
    
    .nav-tab:last-child {
        border-bottom: none;
    }
    
    .arch-buttons {
        flex-direction: column;
    }
    
    .arch-buttons .btn {
        min-width: auto;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .next-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-container {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .terminal-content {
        padding: 1rem;
    }
    
    .terminal-step,
    .terminal-step-success,
    .terminal-success {
        margin-left: 0;
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-tab {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .download-option {
        padding: 1.5rem;
    }
    
    .installation-card .card-content {
        padding: 1.5rem;
    }
    
    .terminal-code {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .download-option,
    .requirements-card,
    .next-steps-card,
    .installation-card {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .download-option h4,
    .requirements-card h4,
    .next-steps-card h3 {
        color: #e0e0e0;
    }
    
    .download-info {
        background: #1a1a1a;
        color: #a0a0a0;
    }
}

/* Animation for loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced button styles for installation page */
.install-page .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.install-page .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.install-page .btn:hover::before {
    left: 100%;
}

.install-page .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff8c00);
    border: none;
    color: white;
}

.install-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 166, 0, 0.4);
}

.install-page .btn-secondary {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.install-page .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 166, 0, 0.3);
}
