
/*
Theme Name: AGQ EAD Theme
Description: Tema personalizado para plataforma EAD da AGQ
Version: 1.0
Author: AGQ Development Team
*/

/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Variáveis CSS */
:root {
    --agq-blue: #1e3a8a;
    --agq-light-blue: #3b82f6;
    --agq-gray: #6b7280;
    --agq-light-gray: #f3f4f6;
    --agq-white: #ffffff;
    --agq-dark: #1f2937;
}

/* Header */
.header {
    background: var(--agq-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--agq-blue);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--agq-dark);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.btn-primary {
    background: var(--agq-blue);
    color: var(--agq-white);
}

.whatsapp-btn {
    background: #25D366 !important;
    color: white !important;
}

.whatsapp-btn:hover {
    background: #20ba5a !important;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--agq-blue), var(--agq-light-blue));
    color: var(--agq-white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Filtros */
.filters {
    background: var(--agq-white);
    padding: 30px 0;
    border-bottom: 1px solid #e5e7eb;
}

.filter-form {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-select, .filter-input {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    min-width: 200px;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: var(--agq-blue);
}

.filter-btn {
    background: var(--agq-blue);
    color: var(--agq-white);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-btn:hover {
    background: var(--agq-light-blue);
}

/* Grid de cursos */
.courses-grid {
    padding: 50px 0;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(4, auto);
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background: var(--agq-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.course-image {
    height: 200px;
    background: linear-gradient(45deg, var(--agq-light-blue), var(--agq-blue));
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-area {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    color: var(--agq-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--agq-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--agq-gray);
    font-size: 14px;
}

.course-description {
    color: var(--agq-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-prices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.price {
    font-weight: bold;
    color: var(--agq-blue);
}

.price-label {
    font-size: 12px;
    color: var(--agq-gray);
    display: block;
}

.price-value {
    font-size: 18px;
}

/* Paginação */
.pagination {
    text-align: center;
    padding: 40px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 5px;
    color: var(--agq-blue);
    text-decoration: none;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--agq-blue);
    color: var(--agq-white);
    border-color: var(--agq-blue);
}

/* Página do curso */
.course-header {
    background: var(--agq-white);
    padding: 50px 0;
    border-bottom: 1px solid #e5e7eb;
}

.course-header-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: start;
}

.course-info h1 {
    font-size: 2.5rem;
    color: var(--agq-dark);
    margin-bottom: 20px;
}

.course-details {
    background: var(--agq-light-gray);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.course-details h3 {
    color: var(--agq-blue);
    margin-bottom: 20px;
}

.detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d1d5db;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: bold;
    color: var(--agq-dark);
    display: block;
    margin-bottom: 5px;
}

.detail-value {
    color: var(--agq-gray);
}

.course-body {
    padding: 50px 0;
}

.course-section {
    background: var(--agq-white);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.course-section h2 {
    color: var(--agq-blue);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.course-section p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.learning-topics {
    list-style: none;
}

.learning-topics li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    padding-left: 30px;
}

.learning-topics li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--agq-blue);
    font-weight: bold;
}

.learning-topics li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: var(--agq-dark);
    color: var(--agq-white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--agq-light-blue);
}

.footer-section p, .footer-section a {
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: var(--agq-light-blue);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-top: 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-select, .filter-input {
        min-width: auto;
        width: 100%;
    }
    
    .courses-container {
        grid-template-columns: 1fr;
    }
    
    .course-header-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .course-info h1 {
        font-size: 2rem;
    }
    
    .course-section {
        padding: 25px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Botões utilitários */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--agq-blue);
    color: var(--agq-white);
}

.btn-primary:hover {
    background: var(--agq-light-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--agq-blue);
    border: 2px solid var(--agq-blue);
}

.btn-outline:hover {
    background: var(--agq-blue);
    color: var(--agq-white);
}
