
/*
Theme Name: Blog Unifafevest - Faculdade São Luís EAD Pleno
Description: Tema customizado para Blog Unifafevest da Faculdade São Luís - EAD Pleno
Version: 1.0
Author: Faculdade São Luís
*/
/* Importar Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');


/* CSS Reset e Configurações Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Variáveis CSS */
:root {
    --primary-red: #BA1A26;
    --dark-gray: #3A3A3A;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #CCCCCC;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-titillium: 'Titillium Web', sans-serif;
}

body {
    font-family: var(--font-montserrat);
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

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

/* Header Styles */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-red);
}

.header-buttons {
    display: flex;
    gap: 15px;
}

/* Mobile: quebra em linhas */
@media (max-width: 768px) {
    .header-buttons {
        flex-wrap: wrap;
        justify-content: center; /* centraliza os botões */
    }

    .header-buttons a,
    .header-buttons button {
        flex: 0 0 100%; /* cada botão ocupa largura inteira */
        text-align: center;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./assets/images/meio-1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-family: var(--font-titillium);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 22px;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Search Section */
.search-section {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--light-gray);
}

.search-form {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-red);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #a01621;
}

/* Main Content */
.main-content {
    padding: 60px 0;
    background: var(--light-gray);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Categories Section */
.categories-section h2,
.trending-section h2,
.blog-section h2 {
    font-family: var(--font-titillium);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 25px;
    text-align: center;
}

.categories-list {
    list-style: none;
}

.category-item {
    background: var(--white);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-2px);
}

.category-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: background-color 0.3s ease;
}

.category-link:hover {
    background: var(--light-gray);
}

.category-checkbox {
    margin-right: 15px;
    accent-color: var(--primary-red);
}

.category-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    opacity: 0.7;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    gap: 25px;
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-red);
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.post-date {
    font-weight: 500;
}

.post-category {
    background: var(--primary-red);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Trending Section */
.trending-posts {
    display: grid;
    gap: 20px;
}

.trending-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-red);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.trending-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.trending-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    line-height: 1.4;
}

.trending-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.trending-title a:hover {
    color: var(--primary-red);
}

.trending-meta {
    font-size: 12px;
    color: #999;
}

/* YouTube Section */
.youtube-section {
    background: var(--white);
    padding: 60px 0;
    text-align: center;
}

.youtube-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.youtube-title {
    font-family: var(--font-titillium);
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-gray);
}

.youtube-subtitle {
    font-size: 18px;
    color: var(--primary-red);
    font-weight: 600;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.youtube-video {
    background: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.youtube-video:hover {
    transform: translateY(-5px);
}

.video-placeholder {
    width: 100%;
    height: 200px;
    background: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.forum-section h3 {
    font-family: var(--font-titillium);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
}

.forum-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.form-input {
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-red);
}

.form-submit {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background: #a01621;
}

.footer-info {
    text-align: center;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    font-size: 14px;
    color: var(--medium-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .youtube-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-btn {
        position: static;
        width: 100%;
    }
}
