/* Estilos Premium para a Página de Detalhes de Projetos */

:root {
  --color-proj-dark: #070f1e;
  --color-proj-accent: #2ec4b6;
}

/* Hero Section */
.projeto-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-proj-dark) 100%);
  padding: 140px 0 80px;
  color: var(--color-white);
  overflow: hidden;
}

.projeto-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(46, 196, 182, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.projeto-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 30px;
}

.projeto-breadcrumb a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s;
}

.projeto-breadcrumb a:hover {
  color: var(--color-gold);
}

.projeto-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.projeto-meta-badges span {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-status {
  text-transform: uppercase;
}

.badge-status.em-andamento {
  background: #ffb703;
  color: var(--color-navy);
}

.badge-status.concluido {
  background: var(--color-proj-accent);
  color: var(--color-white);
}

.badge-tech {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.projeto-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--color-white);
}

.projeto-title span {
  color: var(--color-gold);
  font-weight: 400;
}

@media (max-width: 768px) {
  .projeto-title {
    font-size: 2.2rem;
  }
}

.projeto-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 800px;
  margin-bottom: 40px;
}

.projeto-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Stats Section */
.projeto-stats {
  background: var(--color-white);
  padding: 50px 0;
  border-bottom: 1px solid var(--color-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 20px;
  background: var(--color-light);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Sobre o Projeto */
.projeto-sobre {
  padding: 100px 0;
  background: var(--color-white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 991px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.sobre-info h2 {
  font-size: 2.2rem;
  color: var(--color-navy);
  margin: 10px 0 25px;
  font-weight: 800;
  line-height: 1.2;
}

.sobre-info p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.sobre-detalhes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  border-top: 1px solid var(--color-light);
  padding-top: 30px;
}

@media (max-width: 480px) {
  .sobre-detalhes {
    grid-template-columns: 1fr;
  }
}

.detalhe-item {
  display: flex;
  flex-direction: column;
}

.detalhe-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detalhe-valor {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
}

.detalhe-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  text-decoration: none;
  transition: opacity 0.2s;
}

.detalhe-link:hover {
  opacity: 0.8;
}

.status-badge {
  font-weight: 700;
  color: #d48f02;
}

/* Modulos List */
.sobre-modulos {
  background: var(--color-light);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.02);
}

.sobre-modulos h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 25px;
}

.modulos-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modulo-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.03);
}

.modulo-icon {
  font-size: 1.5rem;
  background: var(--color-light);
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modulo-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.modulo-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

.modulo-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: auto;
  text-transform: uppercase;
  flex-shrink: 0;
}

.modulo-item.active .modulo-badge {
  background: #e2fbf5;
  color: #0e7b64;
}

.modulo-item.expanding .modulo-badge {
  background: #fff6e0;
  color: #d48f02;
}

/* Galeria Section */
.projeto-galeria {
  padding: 100px 0;
  background: var(--color-light);
}

.galeria-showcase {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
}

.galeria-destaque {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: center;
  background: var(--color-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

@media (max-width: 991px) {
  .galeria-destaque {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }
}

.galeria-info .tela-numero {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  opacity: 0.5;
  display: block;
  margin-bottom: 10px;
}

.galeria-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 15px;
}

.galeria-info p {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 25px;
}

.tela-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tela-features li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
}

/* Browser Mockup styling */
.browser-mock {
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
}

.browser-bar {
  background: #f1f3f4;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid #e1e3e4;
  gap: 15px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: #ccc;
}

.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }

.browser-url {
  background: var(--color-white);
  height: 22px;
  border-radius: 4px;
  flex-grow: 1;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #e1e3e4;
  font-family: monospace;
}

.browser-mock img {
  width: 100%;
  display: block;
  height: auto;
}

/* Galeria Grid */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.galeria-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.galeria-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.browser-mock.small .browser-bar {
  height: 30px;
  gap: 10px;
}

.browser-mock.small .browser-url {
  height: 18px;
  font-size: 0.7rem;
}

.galeria-card-info {
  padding: 20px;
}

.galeria-card-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.galeria-card-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Stack Section */
.projeto-stack {
  padding: 80px 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-light);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stack-item {
  text-align: center;
  padding: 25px 15px;
  background: var(--color-light);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.01);
  transition: all 0.2s;
}

.stack-item:hover {
  background: var(--color-white);
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  border-color: rgba(212, 175, 55, 0.2);
}

.stack-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.stack-item span {
  display: block;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.stack-item small {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* CTA Box */
.projeto-cta {
  padding: 80px 0;
  background: var(--color-light);
}

.cta-box {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-proj-dark) 100%);
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.cta-box p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 15, 30, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}
