/* Estilos para o Blog da Invest A.I */

/* Estilos específicos para a página do blog */
.blog-page-container {
    min-height: calc(100vh - 150px);
    padding: 2rem 0;
}

/* Introdução do Blog */
#blog-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease forwards;
}

#blog-intro h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.blog-intro {
    color: #a9b3c1;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.blog-actions {
    margin-top: 2rem;
}

.button-primary {
    background-color: #00ffcc;
    color: #1a1f36;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.button-primary:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 255, 204, 0.2);
}

.button-secondary {
    background-color: #3a435a;
    color: #d1d9e6;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-secondary:hover {
    background-color: #4a5568;
}

/* Formulário de Nova Pergunta */
.form-container {
    background-color: #2a324d;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease forwards;
}

.form-container h2 {
    color: #00ffcc;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #ffffff;
    font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: #1f273e;
    border: 1px solid #3a435a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffcc;
    box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Filtros e Pesquisa */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: space-between;
    background-color: #2a324d;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-box {
    display: flex;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    background-color: #1f273e;
    border: 1px solid #3a435a;
    border-radius: 8px 0 0 8px;
    color: #ffffff;
    font-size: 1rem;
}

.search-box button {
    background-color: #00ffcc;
    color: #1a1f36;
    border: none;
    padding: 0 1rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #ffffff;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.category-filters span {
    color: #a9b3c1;
    font-size: 0.9rem;
}

.filter-btn {
    background-color: #1f273e;
    color: #d1d9e6;
    border: 1px solid #3a435a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #00ffcc;
    color: #1a1f36;
    border-color: #00ffcc;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    color: #a9b3c1;
    font-size: 0.9rem;
}

.sort-options select {
    padding: 0.5rem;
    background-color: #1f273e;
    border: 1px solid #3a435a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
}

/* Lista de Perguntas */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.post-card {
    background-color: #2a324d;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #00ffcc;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.post-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #a9b3c1;
}

.category-tag {
    background-color: #1f273e;
    color: #00ffcc;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
}

.post-preview {
    color: #d1d9e6;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #a9b3c1;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.no-posts-message {
    text-align: center;
    padding: 3rem;
    background-color: #2a324d;
    border-radius: 12px;
    color: #a9b3c1;
}

/* Detalhes da Pergunta */
.post-details-container {
    background-color: #2a324d;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}

.post-header {
    margin-bottom: 2rem;
}

.back-button {
    background-color: transparent;
    color: #00ffcc;
    border: none;
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #ffffff;
}

.post-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.post-content {
    color: #d1d9e6;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #3a435a;
}

.action-button {
    background-color: #1f273e;
    color: #d1d9e6;
    border: 1px solid #3a435a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-button:hover {
    background-color: #3a435a;
}

.post-responses h3 {
    color: #00ffcc;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.response-card {
    background-color: #1f273e;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid #a9b3c1;
}

.response-author {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.response-date {
    font-size: 0.9rem;
    color: #a9b3c1;
    font-weight: normal;
}

.response-content {
    color: #d1d9e6;
    line-height: 1.6;
}

.new-response {
    background-color: #1f273e;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.new-response h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Toast para notificações */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #00ffcc;
    color: #1a1f36;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-weight: 600;
    display: none;
}

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

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

/* Responsividade */
@media (max-width: 992px) {
    #blog-intro h1 {
        font-size: 2.2rem;
    }
    
    .blog-intro {
        font-size: 1.1rem;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .search-box {
        width: 100%;
    }
    
    .category-filters {
        width: 100%;
        justify-content: flex-start;
    }
    
    .sort-options {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-buttons {
        flex-direction: column;
    }
    
    .button-primary,
    .button-secondary {
        width: 100%;
    }
    
    #blog-intro h1 {
        font-size: 2rem;
    }
    
    .blog-intro {
        font-size: 1rem;
    }
    
    .post-card h3 {
        font-size: 1.2rem;
    }
    
    .post-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .form-container,
    .post-details-container {
        padding: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
        justify-content: center;
    }
}
