/*
Theme Name: Gadget Certo
Theme URI: https://gadgetcerto.com.br
Author: Gadget Certo Team
Author URI: https://gadgetcerto.com.br
Description: Custom editorial tech theme for Gadget Certo.
Version: 1.0
Text Domain: gadgetcerto
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Space+Grotesk:wght@700&display=swap');

:root {
  --bg-color: #FAFAFA;
  --navbar-bg: #111111;
  --brand-primary: #00C853;
  --brand-secondary: #3B82F6;
  --gray-medium: #6B7280;
  --gray-light: #E5E7EB;
  --text-primary: #111111;
  --text-secondary: #4B5563;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }

a {
  color: inherit;
  text-decoration: none;
}

/* Utils */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tag {
  display: inline-block;
  background-color: var(--brand-primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-primary);
  color: #fff;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--brand-secondary);
}

.meta-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--gray-medium);
}

/* Navbar */
.navbar {
  background-color: var(--navbar-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-family: var(--font-heading);
  font-size: 24px;
  color: #fff;
}

.navbar .logo span {
  color: var(--brand-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--brand-primary);
}

.search-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  cursor: pointer;
}

/* Hamburguer */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #111111;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1.25rem;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }
}

/* Hero Section */
.hero {
  padding: 4rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
}

.hero-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 16px;
}

.hero-content h1 {
  margin-bottom: 16px;
}

/* Grid de Cards */
.latest-posts {
  padding: 2rem 0 4rem;
}

.section-title {
  margin-bottom: 2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  margin-bottom: 8px;
}

.card-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 14px;
  flex-grow: 1;
}

/* Ofertas */
.offers-section {
  background-color: var(--gray-light);
  padding: 4rem 0;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.offer-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.offer-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #FAFAFA;
  border-radius: 4px;
}

.offer-details {
  flex: 1;
}

.offer-details h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.offer-price {
  font-size: 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

/* Footer */
.footer {
  background-color: var(--navbar-bg);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--gray-medium);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  color: var(--gray-medium);
  font-size: 13px;
}
.single-post.container{padding-top:3rem;padding-bottom:4rem;max-width:780px}
.single-header{margin-bottom:2rem}
.single-header h1{font-size:36px;margin-top:.75rem;line-height:1.25}
.single-meta{display:flex;gap:.5rem;color:var(--gray-medium);font-size:14px}
.single-thumbnail{margin-bottom:2rem;border-radius:12px;overflow:hidden}
.single-image{width:100%;max-height:480px;object-fit:cover;object-position:center top;display:block}
.single-content{font-size:17px;line-height:1.8;color:var(--text-secondary)}
.single-content h2,.single-content h3{color:var(--text-primary);margin-top:2rem;margin-bottom:.75rem}
.single-content p{margin-bottom:1.25rem}
.single-content a{color:var(--brand-primary);text-decoration:underline}
.single-content ul,.single-content ol{margin-left:1.5rem;margin-bottom:1.25rem}
.single-content img{max-width:100%;border-radius:8px;margin:1rem 0}
}
