/* Estilos para a página inicial com notícias e updates */

.home-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--light-background);
}

.home-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--theme-default) 0%, var(--active-bg-color) 100%);
  border-radius: 15px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.home-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.home-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.home-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  min-width: 120px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Seção de notícias */
.news-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--theme-body-font-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--theme-default);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.news-card {
  background: var(--body-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--shape-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--theme-default);
}

.news-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--theme-default) 0%, var(--active-bg-color) 100%);
  color: white;
}

.news-card.featured .news-meta {
  color: rgba(255, 255, 255, 0.8);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--font-color);
}

.news-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.news-category {
  background: var(--theme-default);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.news-card.featured .news-category {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--theme-body-font-color);
}

.news-card.featured .news-title {
  color: white;
}

.news-excerpt {
  color: var(--font-color);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-card.featured .news-excerpt {
  color: rgba(255, 255, 255, 0.9);
}

.news-read-more {
  color: var(--theme-default);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.news-card.featured .news-read-more {
  color: white;
}

.news-read-more:hover {
  gap: 0.5rem;
  text-decoration: none;
}

/* Seção de status dos serviços */
.status-section {
  margin-bottom: 3rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.status-card {
  background: var(--body-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--shape-border);
  transition: all 0.3s ease;
}

.status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--theme-default);
}

.status-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--theme-default) 0%, var(--active-bg-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.status-card-info {
  flex: 1;
  min-width: 0;
}

.status-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--theme-body-font-color);
}

.status-card-description {
  font-size: 0.85rem;
  color: var(--font-color);
  margin: 0;
  line-height: 1.4;
}

.status-card-indicator {
  flex-shrink: 0;
}

.status-card-indicator .status-indicator {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.status-card-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--shape-border);
}

.status-card-status,
.status-card-uptime {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.status-label,
.uptime-label {
  font-size: 0.75rem;
  color: var(--font-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-value,
.uptime-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.status-value.text-success { color: #28a745; }
.status-value.text-warning { color: #ffc107; }
.status-value.text-danger { color: #dc3545; }
.status-value.text-info { color: #17a2b8; }
.status-value.text-muted { color: #6c757d; }

/* Seção de updates */
.updates-section {
  margin-bottom: 3rem;
}

.updates-list {
  background: var(--body-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--shape-border);
}

.update-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--shape-border);
  transition: all 0.2s ease;
}

.update-item:last-child {
  border-bottom: none;
}

.update-item:hover {
  background: var(--table-hover-color);
  margin: 0 -1rem;
  padding: 1rem;
  border-radius: 8px;
}

.update-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.update-icon.new {
  background: #28a745;
  color: white;
}

.update-icon.improvement {
  background: #17a2b8;
  color: white;
}

.update-icon.fix {
  background: #ffc107;
  color: #212529;
}

.update-icon.security {
  background: #dc3545;
  color: white;
}

.update-content {
  flex: 1;
}

.update-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--theme-body-font-color);
}

.update-description {
  color: var(--font-color);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--font-color);
}

/* Botão de ação principal */
.home-actions {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--body-color);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--shape-border);
}

.start-chat-btn {
  background: linear-gradient(135deg, var(--theme-default) 0%, var(--active-bg-color) 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.start-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}

.start-chat-btn:active {
  transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
  .home-container {
    padding: 1rem;
  }
  
  .home-header h1 {
    font-size: 2rem;
  }
  
  .home-stats {
    gap: 1rem;
  }
  
  .stat-item {
    min-width: 100px;
    padding: 0.75rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-card.featured {
    grid-column: span 1;
  }
  
  .status-grid {
    grid-template-columns: 1fr;
  }
  
  .status-card-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .status-card-details {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .home-container {
    padding: 0.5rem;
    min-width: 0;
  }
  .home-header {
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
  }
  .home-header h1 {
    font-size: 1.3rem;
  }
  .home-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  .stat-item {
    min-width: 80px;
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  .status-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .status-card {
    padding: 1rem;
    font-size: 0.95rem;
  }
  .status-card-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .status-card-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .status-card-indicator .status-indicator {
    width: 16px;
    height: 16px;
  }
  .status-card-details {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding-top: 0.5rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .news-card {
    padding: 1rem;
    font-size: 0.95rem;
  }
  .updates-list {
    padding: 1rem;
  }
  .update-item {
    gap: 0.5rem;
    padding: 0.7rem 0;
  }
  .update-icon {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  .home-actions {
    padding: 1rem;
    margin-top: 1.5rem;
  }
  .start-chat-btn {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }
}

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

.news-card,
.update-item,
.status-card {
  animation: fadeInUp 0.6s ease forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }

.update-item:nth-child(1) { animation-delay: 0.1s; }
.update-item:nth-child(2) { animation-delay: 0.2s; }
.update-item:nth-child(3) { animation-delay: 0.3s; }
.update-item:nth-child(4) { animation-delay: 0.4s; }
.update-item:nth-child(5) { animation-delay: 0.5s; }

.status-card:nth-child(1) { animation-delay: 0.1s; }
.status-card:nth-child(2) { animation-delay: 0.2s; }
.status-card:nth-child(3) { animation-delay: 0.3s; }
.status-card:nth-child(4) { animation-delay: 0.4s; }
.status-card:nth-child(5) { animation-delay: 0.5s; }

/* Loading state */
.home-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  color: var(--font-color);
}

.home-loading .spinner-border {
  margin-right: 1rem;
} 

/* --- ANIMAÇÕES EFEITOS SUAVES --- */
.status-card, .news-card, .update-item {
  animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) both;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.25s cubic-bezier(0.4,0,0.2,1), background 0.3s;
}

.status-card:hover, .news-card:hover, .update-item:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  border-color: var(--theme-default);
  background: linear-gradient(135deg, var(--active-bg-color) 0%, var(--body-color) 100%);
}

/* Pulse para status críticos/degradados */
.status-card .status-indicator.text-danger,
.status-card .status-indicator.text-warning {
  animation: pulseStatus 1.2s infinite;
}

@keyframes pulseStatus {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,53,69,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(220,53,69,0.15); }
}
.status-card .status-indicator.text-warning {
  animation: pulseStatusWarning 1.2s infinite;
}
@keyframes pulseStatusWarning {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,193,7,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,193,7,0.15); }
}

/* Suavizar transição de cor da bolinha de status */
.status-indicator {
  transition: background-color 0.4s, box-shadow 0.4s;
}

/* Botões principais com efeito suave */
.start-chat-btn, .btn {
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.start-chat-btn:active, .btn:active {
  transform: scale(0.97);
}

/* Responsividade das animações */
@media (max-width: 768px) {
  .status-card, .news-card, .update-item {
    animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) both;
  }
} 

/* SKELETON LOADING */
.skeleton {
  background: linear-gradient(90deg, #ececec 25%, #f3f3f3 37%, #ececec 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: 8px;
  min-height: 1em;
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.skeleton-card {
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--shape-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.skeleton-status-header, .skeleton-news-header, .skeleton-update-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ececec;
  position: relative;
  overflow: hidden;
}
.skeleton-title {
  width: 60%;
  height: 1.2em;
}
.skeleton-text {
  width: 90%;
  height: 0.9em;
}
.skeleton-badge {
  width: 50px;
  height: 1em;
  border-radius: 20px;
}
.skeleton-meta {
  width: 30%;
  height: 0.8em;
}
@media (max-width: 600px) {
  .skeleton-card { padding: 1rem; }
  .skeleton-circle { width: 28px; height: 28px; }
} 

/* Sidebar Explore GPTs */
#gpt-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 16px rgba(0,0,0,0.08);
  z-index: 1200;
  transition: right 0.3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
#gpt-sidebar.open {
  right: 0;
}
.gpt-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid #eee;
}
#gpt-sidebar-body {
  flex: 1;
  overflow-y: auto !important;
  height: 100vh !important;
  max-height: 100vh !important;
  padding: 1.5rem;
}
#gpt-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.25);
  z-index: 1199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#gpt-sidebar.open ~ #gpt-sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 600px) {
  #gpt-sidebar {
    width: 100vw;
    right: -100vw;
  }
  #gpt-sidebar.open {
    right: 0;
  }
} 