/* Coding Interview Algorithms Tutorial Styles */

/* Tutorial Main Title */
.tutorial-main-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.2;
}

.tutorial-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #555;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Algorithm Cards */
.algorithm-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.algorithm-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.algorithm-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.algorithm-card h3 {
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.algorithm-card h4 {
    color: #555;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Use Case Boxes */
.use-case-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.use-case-box h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 1rem;
}

.use-case-box ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.use-case-box li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Code Explanations */
.code-explanation {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.code-explanation h4 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 1rem;
}

.code-step {
    margin: 0.8rem 0;
    padding: 0.8rem;
    background: #fff;
    border-radius: 4px;
    border-left: 2px solid #28a745;
}

.code-step strong {
    color: #28a745;
}

/* Code Blocks */
pre {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
    font-size: 0.9em;
}

pre code {
    font-size: 0.85rem;
}

/* Lists */
.algorithm-card ul,
.algorithm-card ol {
    margin: 1rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.algorithm-card li {
    margin: 0.5rem 0;
}

/* Summary Box */
.algorithm-card[style*="background: #f0f8ff"] {
    background: #f0f8ff !important;
    border: 2px solid #007bff !important;
    padding: 2rem;
}

.algorithm-card[style*="background: #f0f8ff"] h2 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

/* Buttons - Use green gradient from main.css */
.azbn-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

/* Tag Buttons - Override default green with blue-gray */
.azbn-card .azbn-skills .azbn-tag {
    background-color: #6c757d;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.azbn-card .azbn-skills .azbn-tag:hover {
    background-color: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
    .tutorial-main-title {
        font-size: 2rem;
    }
    
    .tutorial-subtitle {
        font-size: 1rem;
    }
    
    .algorithm-card {
        padding: 1.5rem;
    }
    
    pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

