/* Tutorials page specific styles */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #22d3ee, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: #3b82f6;
}

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

.tutorial-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #22d3ee, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutorial-header p {
    font-size: 1.2rem;
    color: #64748b;
}

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

.tutorial-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.tutorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutorial-card:hover::before {
    opacity: 1;
}

.tutorial-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tutorial-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.tutorial-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tutorial-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.duration, .difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.duration {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.difficulty {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.tutorial-link {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tutorial-link:hover {
    color: #1d4ed8;
    transform: translateX(4px);
}

.tutorial-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tutorial-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e293b;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    padding-bottom: 0.5rem;
}

.tutorial-step {
    margin-bottom: 2rem;
}

.tutorial-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.tutorial-step p {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tutorial-step ol, .tutorial-step ul {
    color: #475569;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tutorial-step li {
    margin-bottom: 0.5rem;
}

.parameter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.param-card {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.param-card h4 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.param-card p {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.param-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.param-card li {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .tutorial-header h1 {
        font-size: 2rem;
    }
    
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
    
    .parameter-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced code block styling */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 12px 12px 0 0;
}

.code-block code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* Directory tree styling */
.directory-tree {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

.directory-tree::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(45deg, #8b5cf6, #f59e0b);
    border-radius: 12px 12px 0 0;
}

/* Step cards with better styling */
.step-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

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

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.step-number {
    display: inline-block;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Concept cards */
.concept-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

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

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

/* Pipeline steps */
.pipeline-step {
    display: flex;
    align-items: flex-start;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.pipeline-step:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(4px);
}

.step-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

/* Enhanced parameter grid */
.parameter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.param-card {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.param-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.param-card h4 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.param-card p {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.param-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.param-card li {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

/* Highlight styling */
.highlight {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    color: #1e40af;
}

/* Warning boxes */
.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
}

.warning::before {
    content: "⚠️ ";
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Info boxes */
.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
}

.info::before {
    content: "💡 ";
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Enhanced tutorial section */
.tutorial-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

.tutorial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.tutorial-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e293b;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    padding-bottom: 0.5rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .pipeline-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .parameter-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card, .concept-card {
        padding: 1.5rem;
    }
    
    .code-block, .directory-tree {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

/* Remove blur effects for better readability */
.simple-card {
    backdrop-filter: none !important;
}

.tutorial-card {
    backdrop-filter: none !important;
}

.tutorial-section {
    backdrop-filter: none !important;
}

.concept-card {
    backdrop-filter: none !important;
}

.step-card {
    backdrop-filter: none !important;
}
