/* ================================================================
   HEADER CLIENTE - CSS
   Estilos para o header das páginas do cliente
   ================================================================ */

:root {
  --cor-gradiente: #009fff;
  /* --header-height definido em cliente_layout.css */
}

header.cliente-header {
  /* Position fixed definido em cliente_layout.css */
  width: 100%;
  max-width: 430px;
  color: white;
  background-color: whitesmoke;
  margin: 0 auto;
}

/* Info Card Container */
.infocardContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  /* min-height: 120px; */
  /* width: 100%; */
  margin: 0 0.5rem;
  /* width: -webkit-fill-available; */
  border-radius: 10rem 0rem 10rem 10rem;
  transition: all 500ms ease-in;
  transition-delay: 1s;
  /* margin-top: 10px; */
  /* padding: 0rem 1rem; */
  /* box-sizing: border-box; */
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, var(--cor-gradiente) 100%);
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); */
  gap: 1rem;
}

.infocardContainer #main {
  flex-shrink: 0;
  width: fit-content;
}

.infocardContainer #main img {
  height: 120px;
  width: 120px;
  border-radius: 50%;
  object-fit: cover;
  transition: none;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.9);
  margin: 0 1.2rem 0 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Text Container */
#textbois {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  gap: 0.6rem;
  padding: 0;
}

.textbois-div {
  font-size: 2rem;
  font-weight: 500;
  word-break: break-word;
  text-align: left;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

/* Status Pills */
.status-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.status-pill i {
  font-size: 0.8rem;
}

.status-pill.aberto {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.status-pill.aberto i {
  animation: pulseGlow 2s ease-in-out infinite;
}

.status-pill.fechado {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Social Links */
.social-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0;
}

.insta-link {
  color: #fff;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.insta-link .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.insta-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.insta-link:active {
  transform: translateY(0) scale(0.95);
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  right: 1.2rem;
  top: 0.8rem;
  display: none !important;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2rem;
  backdrop-filter: blur(6px);
}

.theme-toggle i {
  font-size: 1.3rem;
}

.theme-dark .theme-toggle {
  background: var(--bg-tertiary, #303030);
  border: 1px solid var(--border, #ffffff26);
  color: var(--bg-primary-inverted, #fff);
}

/* Placar (Navigation Bar) */
#placar {
  position: relative;
  overflow: visible;
  color: whitesmoke;
  background: linear-gradient(10deg, rgba(0, 0, 0, 1) 33%, var(--cor-gradiente) 100%);
  height: 5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding: 0 5rem 0 1.5rem;
  margin-bottom: 1rem;
}

/* Pedidos Wrapper */
.pedidos-wrapper {
  position: absolute;
  right: 4.5rem;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Cart Wrapper */
.cart-wrapper {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.cart-link {
  position: relative;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  font-size: 2rem;
  padding: 0 1.5rem;
  cursor: pointer;
  border: none;
  background: none;
  transition: transform 0.2s;
}

.cart-link.has-items {
  animation: cartBounce 2s ease-in-out infinite;
}

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

@keyframes cartBounce {
  0%, 100% { transform: translateY(0); }
  10% { transform: translateY(-8px); }
  20% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
  40% { transform: translateY(0); }
}

/* Mini Carrinho */
.mini-carrinho {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 1rem;
  width: 380px;
  max-height: 500px;
  background: white;
  border-radius: 1.2rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  overflow: hidden;
}

.mini-carrinho-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.mini-carrinho-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: #1f2937;
}

.mini-carrinho-header span {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e40af;
}

.mini-carrinho-items {
  max-height: 320px;
  overflow-y: auto;
  padding: 1.2rem;
}

.mini-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  font-size: 1.4rem;
  border-bottom: 1px solid #f3f4f6;
}

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

.mini-qty {
  font-weight: 700;
  color: #6b7280;
  min-width: 30px;
}

.mini-nome {
  flex: 1;
  color: #374151;
}

.mini-preco {
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

.mini-vazio {
  text-align: center;
  padding: 2rem 1rem;
  color: #9ca3af;
  font-size: 1.4rem;
}

.mini-carrinho-footer {
  padding: 1.2rem 1.6rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.btn-mini-cart {
  display: block;
  width: 100%;
  padding: 1.2rem 0.8rem;
  text-align: center;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  text-decoration: none;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1.4rem;
  transition: transform 0.2s;
  box-sizing: border-box;
}

.btn-mini-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Responsive */
@media (min-width: 768px) {
  header.cliente-header {
    max-width: 1100px;
  }
}
