/* ===============================
   1️⃣ Global Styles
=============================== */
body {
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #1f2937;
}

h1, h2, h3 {
  margin: 0.5rem 0;
}

a {
  text-decoration: none;
  color: #3b82f6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 0.25rem;
}

/* ===============================
   2️⃣ Header & Footer
=============================== */
header, footer {
  background: #1e293b;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

header nav a, footer a {
  color: #3b82f6;
  margin: 0 0.5rem;
}

header h1, footer p {
  margin: 0.5rem 0;
}

/* ===============================
   3️⃣ Buttons
=============================== */
button, .btn {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
}

button:hover, .btn:hover {
  background: #059669;
}

/* ===============================
   4️⃣ Builder Page
=============================== */
#builderArea {
  background: #fff;
  padding: 1rem;
  min-height: 300px;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin: 1rem 0;
  overflow-y: auto;
}

/* ===============================
   5️⃣ Library Templates
=============================== */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 1rem auto;
}

.template-card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.template-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.template-card h3 {
  margin: 0.5rem 0;
}

/* ===============================
   6️⃣ Dashboard
=============================== */
.dashboard-container {
  max-width: 900px;
  margin: 1rem auto;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dashboard-container h2 {
  margin-bottom: 1rem;
}

/* ===============================
   7️⃣ FAQ & Blog Collapsible
=============================== */
.faq-question, .blog-item h3 {
  background: #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer, .blog-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0.5rem;
  padding: 0 0.5rem;
}

/* ===============================
   8️⃣ Contact Form
=============================== */
form {
  max-width: 600px;
  margin: 1rem auto;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

form input, form textarea {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
}

form button {
  width: 100%;
}

/* ===============================
   9️⃣ Responsive Design
=============================== */
@media(max-width:768px){
  header, footer {
    flex-direction: column;
    text-align: center;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   10️⃣ Misc Utilities
=============================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
