/* Project Genesis - Beachy Minimalism Theme */
/* style.css */

:root {
  --bg: #f8f9fa;
  --text: #000000;
  --primary: #3498db;        /* Sky Blue */
  --primary-hover: #2980b9;
  --accent: #27ae60;         /* Palm Green */
  --accent-hover: #219653;
  --card-bg: #ffffff;
  --border: #e0e6ed;
  --shadow: rgba(0, 0, 0, 0.08);
  --font-main: 'Poppins', sans-serif;
  --font-ui: 'Quicksand', sans-serif;
}

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

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.container {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  overflow: hidden;
  margin-top: 20px;
}

/* ===== LAYOUT ===== */
.ad-banner {
  width: 100%;
  background-color: #f1f1f1;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #777;
  border-bottom: 1px solid #ddd;
}
.ad-content {
  font-style: italic;
}

/* ===== Fade-In Animation ===== */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.ad-banner {
  animation: fadeIn 1s ease forwards;  /* fade in from top over 1 second */
}
/* ===== Banner Container ===== */
.ad-banner {
  width: 100%;                 /* full width */
  display: flex;
  justify-content: center;      /* center horizontally */
  margin: 20px 0;              /* spacing from header/footer */
  padding: 0 10px;             /* small side padding for mobile */
  box-sizing: border-box;
}

/* ===== Banner Image ===== */
.ad-banner img {
  max-width: 100%;             /* never overflow container */
  height: auto;                /* maintain aspect ratio */
  border-radius: 8px;          /* optional rounded corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* soft shadow */
  transition: transform 0.3s ease; /* subtle hover effect */
  display: block;              /* removes inline spacing issues */
}

/* ===== Hover Effect ===== */
.ad-banner img:hover {
  transform: scale(1.03);      /* gentle grow on hover */
}

/* ===== Mobile / Tablet Responsiveness ===== */
@media (max-width: 768px) {
  .ad-banner {
    margin: 15px 0;
    padding: 0 5px;
  }

  .ad-banner img {
    border-radius: 6px;        /* slightly smaller corners */
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }
}

@media (max-width: 480px) {
  .ad-banner {
    margin: 10px 0;
  }

  .ad-banner img {
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
}


.main-nav, .main-footer {
  background-color: #f8f9fa;
  padding: 1rem 0;
  border-bottom: 1px solid #eaeaea;
}
.main-footer {
  border-top: 1px solid #eaeaea;
  border-bottom: none;
  margin-top: 2rem;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}
.main-nav .logo {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}
.main-nav nav ul, .main-footer nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.main-nav nav a, .main-footer nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav nav a:hover, .main-footer nav a:hover {
  color: #007bff;
}

/* ===== BUTTON STYLES ===== */
.platform-btn {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: #e9ecef;
  color: #495057;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #ddd;
}
.platform-btn:hover {
  background-color: #dde2e6;
  transform: translateY(-1px);
}
.platform-btn.selected {
  background-color: #007bff;
  color: white;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#customBtn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}
#customBtn:hover {
  background-color: #218838;
}

#generateBtn {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  transition: all 0.2s ease;
}
#generateBtn.btn-disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}
#generateBtn.btn-active {
  background-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .main-nav nav ul, .main-footer nav ul {
    gap: 1rem;
  }
}


header {
  background: var(--primary);
  color: white;
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

header h1 {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 2.2em;
  margin-bottom: 8px;
}

header p {
  font-size: 1.1em;
  opacity: 0.9;
}

/* ===== SECTIONS LAYOUT ===== */
#presetsSection, #customSection {
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

#presetsSection h2, #customSection h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 2px solid #007bff;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* ===== PRESET CARDS GRID ===== */
#presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.preset-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.preset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
  border-color: #007bff;
}

.preset-card.selected {
  border: 2px solid #007bff;
  background-color: #f8f9ff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.preset-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.preset-card span {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

/* ===== TAB BUTTONS: Modern Style for .tab ===== */
.tab-buttons {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  max-width: 800px;
  background-color: #f1f3f5;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.tab {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  background-color: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.tab:hover {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.05);
}

.tab.active {
  color: white;
  background-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
  transform: translateY(-2px);
}

/* Optional: Rounded corners only on ends when active */
.tab:first-child.active {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.tab:last-child.active {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Responsive */
@media (max-width: 500px) {
  .tab {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
}


/* ===== CUSTOM TEXTAREA ===== */
#customSection {
  background-color: #f9fafa;
  border-top: 1px solid #eee;
}

#customStructure {
  width: 100%;
  height: 300px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
  resize: vertical;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#customStructure:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

#customStructure::placeholder {
  color: #aaa;
  opacity: 1;
}

/* Responsive improvements */
@media (max-width: 768px) {
  #presetsSection, #customSection {
    padding: 1.5rem 1rem;
  }

  #presets {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  #customStructure {
    font-size: 14px;
    height: 240px;
  }
}


.wizard {
  padding: 30px;
}

.step {
  margin-bottom: 30px;
}

.step h2 {
  font-family: var(--font-main);
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.4em;
}

/* Presets Grid */
#presets {
 display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 10px;
  justify-items: center;
}

.preset-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  font-size: 0.95em;
}

.preset-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px var(--shadow);
}

.preset-card.selected {
  border-color: var(--accent);
  background: rgba(39, 174, 96, 0.1);
  font-weight: 600;
}

.preset-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* Input Fields */
input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-ui);
  background: white;
  transition: border 0.2s;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Generate Button */
#generateBtn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 18px;
  font-family: var(--font-main);
  font-weight: 600;
  text-align: center;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}

#generateBtn:hover:not(:disabled) {
  background: var(--accent-hover);
}

#generateBtn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.modal-content h2 {
  font-family: var(--font-main);
  color: var(--primary);
  margin-bottom: 10px;
}

.modal-content p {
  margin-bottom: 20px;
  color: #555;
}

/* Artifact & Folder Preview */
.artifact-preview, .folder-preview {
  margin: 20px 0;
  border: 1px dashed var(--border);
  padding: 15px;
  border-radius: 8px;
  background: #f9f9f9;
}

.artifact-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.folder-preview pre {
  background: #2d2d2d;
  color: #f8f8f9;
  padding: 15px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}

/* Download Links */
.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.btn {
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-main);
  display: inline-block;
  transition: all 0.2s;
}

.btn.primary {
  background: var(--primary);
  color: white;
}

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

.btn.secondary {
  background: #ecf0f1;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: #bdc3c7;
  color: white;
}

.btn.close {
  background: #95a5a6;
  color: white;
  width: 100%;
}

.btn.close:hover {
  background: #7f8c8d;
}

/* Hidden Class */
.hidden {
  display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .container {
    margin: 0;
    border-radius: 0;
  }

  header {
    padding: 20px;
  }

  header h1 {
    font-size: 1.8em;
  }

  .wizard {
    padding: 20px;
  }

  .modal-content {
    margin: 10px;
    padding: 20px;
  }
}