/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.logo p {
    opacity: 0.9;
    font-size: 1rem;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: white;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.hero h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Tutorials Section */
.tutorials-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.tutorials-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 3rem;
    font-weight: 700;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tutorial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.tutorial-icon {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.tutorial-card h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

.tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tutorial-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tutorial-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(4px);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: white;
}

.about-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 2rem;
    font-weight: 700;
}

.about-section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}

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

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature p {
    color: #4a5568;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .tutorials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tutorial-card {
        padding: 1.5rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tutorial-card {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .tutorials-section,
    .about-section {
        padding: 2rem 0;
    }
}



/* Search Container */
.search-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4a5568;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-input::placeholder {
    color: #4a5568;
}

/* Index Section */
.index-section {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

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

.index-header h2 {
    font-size: 2rem;
    color: #2d3748;
    font-weight: 700;
}

.index-stats {
    color: #4a5568;
    font-size: 1rem;
    background: #f7fafc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* Filters */
.filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-tag.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    border-color: #667eea;
}

/* Tutorials Index */
.tutorials-index {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tutorial-index-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.tutorial-index-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

.tutorial-index-icon {
    color: #667eea;
    margin-right: 1rem;
    flex-shrink: 0;
}

.tutorial-index-content {
    flex: 1;
}

.tutorial-index-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.tutorial-index-description {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tutorial-index-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tutorial-index-meta .tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
}

.tutorial-index-arrow {
    color: #667eea;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.tutorial-index-item:hover .tutorial-index-arrow {
    transform: translateX(4px);
}

/* Difficulty Indicators */
.difficulty-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #4a5568;
    margin-left: 1rem;
}

.difficulty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
}

.difficulty-dot.filled {
    background: #667eea;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #4a5568;
}

.no-results svg {
    margin-bottom: 1rem;
    color: #cbd5e0;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .search-container {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
    
    .index-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        align-items: flex-start;
    }
    
    .tutorial-index-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .tutorial-index-icon {
        margin-right: 0;
    }
    
    .tutorial-index-arrow {
        margin-left: 0;
        transform: rotate(90deg);
    }
    
    .tutorial-index-item:hover .tutorial-index-arrow {
        transform: rotate(90deg) translateX(4px);
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 0.75rem;
        width: 18px;
        height: 18px;
    }
    
    .filters {
        padding: 1rem;
    }
    
    .tutorial-index-item {
        padding: 1rem;
    }
}



/* Estilos para o conteúdo interno dos tutoriais */
.tutorial-content h1,
.tutorial-content h2,
.tutorial-content h3,
.tutorial-content h4,
.tutorial-content h5,
.tutorial-content h6 {
    color: #2d3748;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tutorial-content h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.tutorial-content h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.4rem;
}

.tutorial-content h3 {
    font-size: 1.5rem;
}

.tutorial-content p {
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.7;
}

.tutorial-content ul,
.tutorial-content ol {
    margin: 1rem 0 1rem 2rem;
    color: #4a5568;
}

.tutorial-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.tutorial-content code {
    background-color: #f7fafc;
    color: #e53e3e;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.tutorial-content pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tutorial-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.tutorial-content .highlight {
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.tutorial-content .info-box {
    background-color: #ebf8ff;
    border-left: 4px solid #3182ce;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.tutorial-content .step {
    background-color: #f0fff4;
    border: 1px solid #9ae6b4;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.tutorial-content .step h3 {
    color: #22543d;
    margin-top: 0;
}

/* Responsive para conteúdo de tutorial */
@media (max-width: 768px) {
    .tutorial-content {
        padding: 1rem;
    }
    .tutorial-content h1 {
        font-size: 1.8rem;
    }
    .tutorial-content h2 {
        font-size: 1.5rem;
    }
    .tutorial-content h3 {
        font-size: 1.2rem;
    }
    .tutorial-content pre {
        padding: 1rem;
    }
}

