/* ====== Global Reset ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f9fbfd;
  color: #333;
  overflow-x: hidden;
}

/* ====== Topbar ====== */
.topbar {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.topbar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0057d9;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003366;
}

#sidebarNav {
  display: none;
  flex-direction: column;
  background-color: #fff;
  position: absolute;
  top: 64px;
  right: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  min-width: 160px;
}

#sidebarNav.show {
  display: flex;
}

#sidebarNav a {
  text-decoration: none;
  color: #0057d9;
  font-weight: 600;
  margin: 0.5rem 0;
  transition: color 0.3s ease;
}

#sidebarNav a:hover {
  color: #007bff;
}

/* ====== Hero Section ====== */
.hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(to right, #e8f0ff, #f4f8ff);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.signup-form-button {
  background-color: #0057d9;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.signup-form-button:hover {
  background-color: #0047ba;
  transform: scale(1.05);
}

/* ====== Signup Modal ====== */
.signup-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.signup-popup-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.signup-popup-content h2 {
  margin-bottom: 0.5rem;
}

.signup-popup-content p {
  margin-bottom: 1rem;
}

.signup-popup .signup-form input,
.signup-popup .signup-form button {
  width: 100%;
  margin: 0.5rem 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.signup-popup .signup-form button {
  background-color: #0057d9;
  color: white;
  border: none;
  cursor: pointer;
}

.close-signup {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

/* ====== Tools Section ====== */
.tools-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  background-color: #ffffff;
}

.tool-card {
  background: #f1f5f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  text-align: center;
}

.tool-card:hover {
  transform: translateY(-5px);
}

.tool-card i {
  margin-right: 10px;
  color: #0057d9;
}

.toggle-btn {
  margin-top: 0.5rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-btn:hover {
  background-color: #0056b3;
}

.scanner-content {
  display: none;
  margin-top: 1rem;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.scanner-result {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #333;
}

/* ====== Resume Templates Section ====== */
.template-gallery {
  padding: 40px 20px;
  background: #f4f7fb;
  text-align: center;
}

.template-gallery h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

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

.template-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-align: center;
  transition: all 0.3s ease;
}

.template-card:hover {
  transform: translateY(-5px);
}

.template-card h4 {
  margin-bottom: 0.5rem;
}

.template-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.free-badge {
  background: #28a745;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.premium-badge {
  background: #e68a00;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.template-actions {
  margin-top: 10px;
}

.template-actions button,
.template-actions a.download-btn {
  padding: 10px 18px;
  background: #0057d9;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 5px;
  transition: all 0.3s ease;
}

.template-actions button:hover,
.template-actions a.download-btn:hover {
  background-color: #0046b3;
  transform: scale(1.03);
}

.template-actions .locked {
  background: #999;
  color: white;
  cursor: not-allowed;
  opacity: 0.8;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
}

/* ====== Articles Section ====== */
.articles-preview {
  padding: 40px 20px;
  background-color: #ffffff;
}

.articles-preview h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.8rem;
}

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

.article-card {
  background: #fdfdfd;
  border-left: 4px solid #0057d9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.article-card:hover {
  background-color: #f4f8ff;
  transform: translateY(-3px);
}

/* ====== Responsive ====== */
@media (max-width: 600px) {
  .brand-name { font-size: 1.25rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
}
