﻿/* ==========================================================================
   CONFUSA.top - Blog da FOCA (Light Theme 2.0)
   ========================================================================== */

html, body {
  min-height: 100vh !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

body {
  font-family: 'Montserrat', sans-serif !important;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  color: #0f172a !important;
  display: flex !important;
  flex-direction: column !important;
  padding-top: 60px !important;
  overflow-y: auto !important;
}

html body #logged-user {
  display: none !important;
}

html body #top-bar {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html body #bottom-bar {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: auto !important;
}

#copyright-text::after {
  content: " and Zé D'Agostini";
}

#container-home-octamotor {
  background: transparent !important;
  flex: 1 0 auto !important;
  min-height: calc(100vh - 110px) !important;
  height: auto !important;
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
}

#blog-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1300px;
  gap: 24px;
  height: auto;
  box-sizing: border-box;
}

/* ==========================================================================
   Sidebar & Lista de Posts (Light Theme)
   ========================================================================== */
#blog-menu {
  width: 300px;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  box-sizing: border-box;
}

#blog-lateral-bar {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: 12px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
}

#blog-lateral-bar > button {
  flex: 1;
  min-width: 65px;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  margin: 0;
  transition: all 0.2s ease;
  text-align: center;
}

#new-button {
  background-color: #0284c7 !important;
  border: 1px solid #0284c7 !important;
  color: white !important;
}

#new-button:hover {
  background-color: #0369a1 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

#edit-button {
  background-color: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}

#edit-button:hover {
  background-color: #e2e8f0 !important;
  transform: translateY(-1px);
}

#save-button {
  background-color: #10b981 !important;
  border: 1px solid #10b981 !important;
  color: white !important;
}

#save-button:hover {
  background-color: #059669 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

#blog-lateral-bar > button:disabled, 
#blog-lateral-bar > button:disabled:hover {
  background-color: #e2e8f0 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  opacity: 0.7 !important;
  transform: none !important;
  box-shadow: none !important;
}

#blog-menu > label {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 4px;
  filter: none;
}

#blog-post-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: 10px;
  overflow-y: auto;
}

.admin-height {
  max-height: calc(100vh - 280px);
}

.full-height {
  max-height: calc(100vh - 210px);
}

#blog-post-list > button {
  margin: 0;
  padding: 12px 14px;
  background: #f8fafc;
  color: #1e293b;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.35;
}

#blog-post-list > button:hover {
  background: #0284c7;
  color: white;
  border-color: #0284c7;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

#blog-post-list > button.active {
  background: #0284c7;
  color: white;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   Área de Conteúdo do Post (Light Theme)
   ========================================================================== */
#blog-text-area {
  flex: 1;
  min-height: 500px;
  max-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 36px 44px;
  overflow-y: auto;
}

#blog-text-area > div {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  outline: none;
}

#blog-text-area > div h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin-top: 8px;
  margin-bottom: 12px;
  outline: none;
}

#blog-text-area > div h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
  margin-top: 28px;
  margin-bottom: 10px;
}

#blog-text-area > div h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: #334155;
  margin-top: 22px;
  margin-bottom: 8px;
}

#blog-text-area > div h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 6px;
  margin-bottom: 16px;
  outline: none;
}

#blog-text-area > div p {
  font-family: 'Montserrat', sans-serif;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-top: 16px;
  margin-bottom: 16px;
  text-rendering: optimizeLegibility;
}

#blog-text-area > div blockquote {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #0369a1;
  background: #f0f9ff;
  border-left: 4px solid #0284c7;
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
}

#blog-text-area > div a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

#blog-text-area > div a:hover {
  color: #0369a1;
  text-decoration: underline;
}

#credit_div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

#credit_author {
  font-family: 'Montserrat', sans-serif;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
}

#credit_date {
  font-family: 'Montserrat', sans-serif;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 500;
}

.medium-insert-active {
  background-color: transparent !important;
}

/* ==========================================================================
   Responsividade Mobile (Blog da FOCA)
   ========================================================================== */
@media only screen and (max-width: 768px) {
  #container-home-octamotor {
    padding: 12px;
  }

  #blog-container {
    flex-direction: column;
    gap: 16px;
  }

  #blog-menu {
    width: 100%;
  }

  .admin-height, .full-height {
    max-height: 250px;
  }

  #blog-text-area {
    padding: 20px;
    max-height: none;
  }

  #blog-text-area > div h1 {
    font-size: 1.7rem;
  }
}
