/* Tutorial Components - For tutorial listing and content pages */

/* Tutorial Grid */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tutorial-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.tutorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.tutorial-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8faff, white);
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tutorial-icon {
    font-size: 2rem;
}

.tutorial-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tutorial-difficulty.beginner {
    background: #dcfce7;
    color: #166534;
}

.tutorial-difficulty.intermediate {
    background: #fef3c7;
    color: #92400e;
}

.tutorial-difficulty.advanced {
    background: #fce7f3;
    color: #be185d;
}

.tutorial-new {
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f59e0b;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tutorial-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.tutorial-card p {
    color: var(--text-light);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.tutorial-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tutorial-meta span {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Troubleshooting Components */
.trouble-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.trouble-item {
    background: #fff8f0;
    border: 1px solid #ffeaa7;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-left: 4px solid #ff8c00;
}

.trouble-item h4 {
    margin: 0 0 0.5rem 0;
    color: #cc7000;
}

.trouble-item p {
    margin: 0;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
    
    .tutorial-card {
        padding: 1rem;
    }
    
    .tutorial-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tutorial-header {
        justify-content: center;
        text-align: center;
    }
}