/*
 * Portal Marvão - Estilos modernos
 * Tema com degradê azul e lilás
 */

/* Variáveis de cores */
:root {
    --primary-blue: #3a36e0;
    --secondary-lilac: #8a4baf;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--secondary-lilac));
    --gradient-secondary: linear-gradient(135deg, #2a26d0, #7a3b9f);
    --dark-blue: #1a1a7a;
    --light-lilac: #b586ca;
    --light-gray: #f5f7fc;
    --medium-gray: #e1e5f0;
    --dark-gray: #5d5d6f;
    --white: #ffffff;
    --black: #1a1a2e;
    --accent: #ff6b6b;
  }
  
  /* Estilos gerais */
  body {
    background-color: var(--light-gray);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--black);
    line-height: 1.6;
  }
  
  a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  a:hover {
    color: var(--secondary-lilac);
  }
  
  .img-fluid {
    max-width: 100%;
    height: auto;
  }
  
  .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .btn-primary {
    background: var(--gradient-primary);
    border: none;
  }
  
  .btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 54, 224, 0.3);
  }
  
  .btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
  }
  
  .btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
  }
  
  /* Top Bar */
  .top-bar {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
  }
  
  .top-bar a {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .top-bar a:hover {
    color: var(--white);
    text-decoration: none;
  }
  
  /* Header e navegação */
  .navbar {
    padding: 15px 0;
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }
  
  .navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    margin: 0 12px;
    position: relative;
    padding: 5px 0;
  }
  
  .nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
  }
  
  .nav-link:hover::after, .nav-link.active::after {
    width: 100%;
  }
  
  .search-form {
    position: relative;
  }
  
  .search-form input {
    padding: 10px 45px 10px 15px;
    border-radius: 30px;
    border: 1px solid var(--medium-gray);
    background: var(--light-gray);
    transition: all 0.3s ease;
  }
  
  .search-form input:focus {
    box-shadow: 0 0 0 3px rgba(58, 54, 224, 0.1);
    border-color: var(--primary-blue);
    outline: none;
  }
  
  .search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.3s ease;
  }
  
  .search-form button:hover {
    background: var(--gradient-primary);
    color: var(--white);
  }
  
  /* Trending News */
  .trending {
    background-color: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--medium-gray);
    overflow: hidden;
  }
  
  .trending-label {
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-right: 15px;
    box-shadow: 0 2px 10px rgba(58, 54, 224, 0.2);
  }
  
  .trending a {
    color: var(--dark-gray);
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
  }
  
  .trending a:hover {
    color: var(--primary-blue);
  }
  
  .trending a i {
    color: var(--secondary-lilac);
    margin-right: 5px;
  }
  
  .trending-news {
    display: flex;
    animation: scroll-left 30s linear infinite;
  }
  
  @keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }
  
  /* Featured News */
  .featured {
    margin: 30px 0;
  }
  
  .main-featured {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
  }
  
  .main-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .main-featured:hover img {
    transform: scale(1.05);
  }
  
  .featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: white;
  }
  
  .featured-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
  }
  
  .featured-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
  }
  
  .category-label {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  /* Category Titles */
  .category-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--dark-blue);
    border-bottom: 2px solid var(--medium-gray);
  }
  
  .category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--gradient-primary);
  }
  
  /* News Cards */
  .news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
  }
  
  .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .news-card-body {
    padding: 20px;
    flex-grow: 1;
  }
  
  .news-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
  }
  
  .news-card-body p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.6;
  }
  
  .news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .news-card:hover img {
    transform: scale(1.05);
  }
  
  .news-card-footer {
    padding: 15px 20px;
    background-color: var(--light-gray);
    border-top: 1px solid var(--medium-gray);
    font-size: 0.8rem;
    color: var(--dark-gray);
  }
  
  /* Sidebar */
  .sidebar-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: none;
  }
  
  .sidebar-card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
  }
  
  .sidebar-card-body {
    padding: 20px;
  }
  
  /* Popular Posts Widget */
  .popular-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
  }
  
  .popular-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .popular-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 5px;
  }
  
  .popular-item-body h5 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.4;
  }
  
  .popular-item-body p {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 0;
  }
  
  /* Tag Cloud Widget */
  .tag-cloud a {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 30px;
    margin: 0 5px 10px 0;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .tag-cloud a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
  }
  
  /* Social Icons */
  .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }
  
  .social-icons a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
  }
  
  /* Newsletter Form */
  .newsletter input {
    border-radius: 30px 0 0 30px;
    border: 1px solid var(--medium-gray);
    padding: 10px 15px;
  }
  
  .newsletter button {
    border-radius: 0 30px 30px 0;
    background: var(--gradient-primary);
    border: none;
  }
  
  .newsletter button:hover {
    background: var(--gradient-secondary);
  }
  
  /* Footer */
  .footer {
    background: linear-gradient(to right, #1a1a3a, #432864);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
    margin-top: 50px;
  }
  
  .footer h5 {
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    font-weight: 600;
  }
  
  .footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
  }
  
  .footer ul {
    list-style: none;
    padding-left: 0;
  }
  
  .footer ul li {
    margin-bottom: 12px;
  }
  
  .footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .footer a:hover {
    color: white;
    padding-left: 5px;
  }
  
  .footer .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .footer .social-icons a:hover {
    background: var(--gradient-primary);
  }
  
  .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }
  
  /* Página de Categoria */
  .category-header {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
  }
  
  .category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.1)" d="M0,192L48,186.7C96,181,192,171,288,170.7C384,171,480,181,576,186.7C672,192,768,192,864,181.3C960,171,1056,149,1152,144C1248,139,1344,149,1392,154.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center bottom;
    z-index: 1;
  }
  
  .category-header h1 {
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
  }
  
  .category-header p {
    opacity: 0.9;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
  }
  
  /* Página de Notícia */
  .news-header {
    margin-bottom: 25px;
  }
  
  .news-header h1 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-blue);
  }
  
  .news-meta {
    color: var(--dark-gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
  }
  
  .news-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
  }
  
  .news-meta i {
    color: var(--secondary-lilac);
    margin-right: 5px;
  }
  
  .news-image {
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .news-image img {
    width: 100%;
    border-radius: 10px;
  }
  
  .news-content {
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--black);
  }
  
  .news-summary {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-gray);
    border-left: 3px solid var(--primary-blue);
    padding-left: 20px;
    margin-bottom: 30px;
  }
  
  .news-tags {
    margin: 30px 0;
  }
  
  .news-tags a {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 30px;
    margin: 0 5px 10px 0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .news-tags a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
  }
  
  .share-links {
    background-color: var(--light-gray);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 30px 0;
  }
  
  .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--dark-gray);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .share-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
  }
  
  /* Comentários */
  .comments-section {
    margin-top: 40px;
  }
  
  .comment {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    position: relative;
  }
  
  .comment::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 3px 0 0 3px;
  }
  
  .comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
  }
  
  .comment-author {
    font-weight: 600;
    color: var(--dark-blue);
  }
  
  .comment-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
  }
  
  .comment-body {
    color: var(--black);
  }
  
  .comment-form {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  }
  
  /* Paginação */
  .pagination {
    margin-top: 30px;
  }
  
  .page-link {
    color: var(--primary-blue);
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    margin: 0 5px;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(58, 54, 224, 0.3);
  }
  
  .page-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    transform: translateY(-2px);
  }
  
  .page-item.active .page-link:hover {
    background: var(--gradient-primary);
    color: var(--white);
  }
  
  /* Breadcrumb */
  .breadcrumb {
    background-color: transparent;
    padding: 15px 0;
    margin-bottom: 20px;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--dark-gray);
  }
  
  .breadcrumb-item.active {
    color: var(--secondary-lilac);
  }
  
  /* Alerts */
  .alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  }
  
  .alert-info {
    background-color: rgba(58, 54, 224, 0.1);
    color: var(--primary-blue);
  }
  
  .alert-success {
    background-color: rgba(40, 199, 111, 0.1);
    color: #28c76f;
  }
  
  .alert-danger {
    background-color: rgba(234, 84, 85, 0.1);
    color: #ea5455;
  }
  
  /* Responsividade */
  @media (max-width: 991.98px) {
    .navbar-brand {
      font-size: 1.5rem;
    }
    
    .trending {
      font-size: 0.8rem;
    }
    
    .featured-content h2 {
      font-size: 1.2rem;
    }
  }
  
  @media (max-width: 767.98px) {
    .navbar {
      padding: 12px 0;
    }
    
    .featured-content h2 {
      font-size: 1.1rem;
    }
    
    .search-form {
      margin-top: 15px;
    }
    
    .top-bar {
      text-align: center;
    }
    
    .top-bar .text-end {
      text-align: center !important;
      margin-top: 5px;
    }
    
    .social-icons a {
      width: 36px;
      height: 36px;
      line-height: 36px;
      font-size: 1rem;
    }
    
    .news-meta {
      flex-direction: column;
    }
    
    .news-meta span {
      margin-bottom: 5px;
    }
  }
  
  @media (max-width: 575.98px) {
    .main-featured {
      height: 250px;
    }
    
    .featured-content h2 {
      font-size: 1rem;
    }
    
    .featured-content p {
      display: none;
    }
    
    .news-card img {
      height: 180px;
    }
    
    .trending-label {
      padding: 3px 10px;
      font-size: 0.7rem;
    }
    
    .category-header {
      padding: 30px 0;
    }
    
    .category-header h1 {
      font-size: 1.5rem;
    }
  }