/*
Theme Name: CursosDownloader Pro
Theme URI: https://seudominio.com/
Author: Seu Nome
Author URI: https://seudominio.com/
Description: Tema estilo NulledScripts para download de cursos.
Version: 1.0
Text Domain: cursosdown
*/

/* ===== RESET BÁSICO ===== */
/* ====================================
   BIBLIOTECA DE CURSOS - CSS WORDPRESS
   ==================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ====================================
   VARIÁVEIS E RESET
   ==================================== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* ====================================
   WRAPPER PRINCIPAL
   ==================================== */
.page-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* ====================================
   HERO / TOPO
   ==================================== */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ====================================
   CAIXA DE BUSCA
   ==================================== */
.search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.search-box:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.search-box input[type="text"] {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
}

.search-box input[type="text"]::placeholder {
    color: var(--text-light);
}

.search-box button {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ====================================
   BARRA DE FILTROS
   ==================================== */
.course-filters-bar {
   
    max-width: 1400px;
    margin: -2rem auto 2rem;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.6s ease;
}

.course-filters-left,
.course-filters-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.course-filters-left {
    flex-wrap: wrap;
}

.course-filters-left .label,
.course-filters-right .label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.course-filters-scroll {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}

.course-filters-scroll a,
.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

.course-filters-scroll a:hover,
.category-btn:hover,
.category-btn.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.course-filters-right {
    padding-top: 1rem;
    border-top: 2px solid var(--bg-light);
    justify-content: space-between;
}

.course-filters-right select {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    background: var(--white);
    font-family: 'Inter', sans-serif;
}

.course-filters-right select:hover {
    border-color: var(--primary-color);
}

.no-categories {
    color: var(--text-light);
    font-style: italic;
}

/* ====================================
   CABEÇALHO DA LISTA
   ==================================== */
.courses-header-row {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--white);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
}

.courses-counter {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

/* ====================================
   GRID DE CURSOS
   ==================================== */
.course-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* ====================================
   CARD DO CURSO
   ==================================== */
.course-card {
    background: var(--white);
   
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Thumbnail do Curso */
.course-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--primary-gradient);
    display: block;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .course-thumb img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Conteúdo do Card */
.course-content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: var(--transition);
}

.course-card:hover .course-title {
    color: var(--primary-color);
}

/* Meta Informações */
.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Excerpt */
.course-excerpt {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer do Card */
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--bg-light);
    gap: 1rem;
}

.course-tag {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
    white-space: nowrap;
}

.course-btn {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.course-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ====================================
   PAGINAÇÃO
   ==================================== */
.pagination {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    transition: var(--transition);
    min-width: 45px;
    text-align: center;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ====================================
   ANIMAÇÕES
   ==================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ====================================
   RESPONSIVO
   ==================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 1rem;
    }
    
    .search-box button {
        width: 100%;
    }
    
    .course-filters-bar {
        margin: -1rem 1rem 1.5rem;
        padding: 1rem;
    }
    
    .course-filters-left,
    .course-filters-right {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .course-filters-scroll {
        width: 100%;
    }
    
    .courses-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
    
    .course-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .course-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .course-meta {
        gap: 1rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ====================================
   ESTADOS E EFEITOS ESPECIAIS
   ==================================== */

/* Efeito de loading */
.course-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Highlight para curso em destaque */
.course-card.featured {
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

/* Estados vazios */
.course-grid:empty::after {
    content: "Nenhum curso encontrado. Tente outro filtro.";
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--white);
    font-size: 1.2rem;
}

/* ====================================
   MELHORIAS DE ACESSIBILIDADE
   ==================================== */
.course-btn:focus,
.search-box button:focus,
.category-btn:focus,
.course-filters-scroll a:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* ====================================
   PRINT STYLES
   ==================================== */
@media print {
    .search-box,
    .course-filters-bar,
    .pagination,
    .course-btn {
        display: none;
    }
    
    .page-wrapper {
        background: white;
    }
    
    .course-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}