/* style.css – ANXCAT Brand (Sky Theme) */

* {
  box-sizing: border-box;
}

/* ========================================
   GLOBAL BACKGROUND – Sky blue gradient
   ======================================== */
body {
  margin: 0;
  font-family: 'Fredoka', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #5EB3FF 0%, #8FD0FF 100%);
  background-attachment: fixed;
  color: #333;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ========================================
   HEADER
   ======================================== */
.mc-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 10;
}

.mc-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mc-logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5A623, #F7B84E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(245, 166, 35, 0.3);
}

.mc-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.mc-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

/* ========================================
   MAIN LAYOUT – 3 columns on desktop
   ======================================== */
.mc-main {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr minmax(260px, 320px);
  gap: 20px;
  padding: 20px;
  position: relative;
  z-index: 5;
  max-width: 1440px;
  margin: 0 auto;
}

/* ========================================
   CARD BACKGROUNDS – Cream / off-white
   ======================================== */
.mc-panel {
  background: #FFFEF8;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #333;
  box-shadow: 4px 4px 0 #333;
}

.mc-panel-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F5A623;
  font-weight: 600;
}

.mc-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.mc-field label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #444;
  font-weight: 500;
}

.mc-field select,
.mc-field textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #333;
  font-size: 14px;
  font-family: 'Fredoka', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mc-field select:focus,
.mc-field textarea:focus {
  outline: none;
  border-color: #F5A623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

.mc-field textarea {
  resize: vertical;
  min-height: 80px;
}

.mc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mc-actions button {
  padding: 10px 18px;
  border-radius: 24px;
  border: 2px solid #333;
  font-size: 14px;
  font-family: 'Fredoka', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  cursor: pointer;
  background: #FFFEF8;
  color: #333;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 #333;
}

.mc-actions button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #333;
}

.mc-actions button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #333;
}

.mc-actions button:first-child,
.mc-actions button#generateBtn,
#generateBtn {
  background: linear-gradient(135deg, #F5A623, #F7B84E);
  color: #fff;
  border-color: #333;
}

.mc-actions button:first-child:hover,
.mc-actions button#generateBtn:hover,
#generateBtn:hover {
  background: linear-gradient(135deg, #E5961A, #F5A623);
}

.mc-actions-right {
  margin-top: 14px;
  justify-content: flex-start;
}

.mc-canvas-wrapper {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #FFFEF8;
  box-shadow: 4px 4px 0 #333;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mc-canvas-wrapper:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #333;
}

#memeCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
}

/* ========================================
   HOW TO PANEL – Desktop (right side)
   ======================================== */
.howto-panel {
  background: #FFFEF8;
  border-radius: 16px;
  padding: 24px;
  border: 2px solid #333;
  box-shadow: 4px 4px 0 #333;
  align-self: start;
  min-width: 260px;
}

.howto-panel h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: #F5A623;
}

.howto-panel ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.howto-panel li {
  font-size: 14px;
  margin-bottom: 8px;
  color: #444;
}

.howto-panel p {
  font-size: 13px;
  margin: 0 0 8px 0;
  color: #555;
  line-height: 1.5;
}

.howto-divider {
  border: none;
  border-top: 1px solid #E0D8D0;
  margin: 16px 0;
}

/* ========================================
   HOW TO ACCORDION – Mobile only
   ======================================== */
.howto-accordion {
  display: none;
}

.howto-toggle {
  width: 100%;
  padding: 14px 16px;
  background: #FFFEF8;
  border: 2px solid #333;
  border-radius: 14px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 3px 3px 0 #333;
  transition: all 0.2s;
}

.howto-toggle:hover {
  background: #FFF9E6;
}

.howto-arrow {
  transition: transform 0.3s;
}

.howto-accordion.open .howto-arrow {
  transform: rotate(180deg);
}

.howto-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #FFFEF8;
  border: 2px solid #333;
  border-top: none;
  border-radius: 0 0 14px 14px;
  margin-top: -4px;
  padding: 0 16px;
}

.howto-accordion.open .howto-content {
  max-height: 400px;
  padding: 16px;
}

.howto-content h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #F5A623;
}

.howto-content ul {
  margin: 0 0 12px 0;
  padding-left: 18px;
}

.howto-content li {
  font-size: 13px;
  margin-bottom: 6px;
  color: #444;
}

.howto-content p {
  font-size: 12px;
  margin: 0 0 6px 0;
  color: #555;
  line-height: 1.4;
}

/* ========================================
   ABOUT MEMECAT SECTION
   ======================================== */
.about-section {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 20px;
  margin-top: 20px;
}

.about-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-section h2 {
  margin: 0 0 16px 0;
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.about-section p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.about-section h4 {
  margin: 24px 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #F5A623;
}

.about-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-section li {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.about-section li::before {
  content: "• ";
  color: #F5A623;
}

/* ========================================
   ANXCAT FOOTER
   ======================================== */
.anxcat-footer {
  background: #333;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
}

.anxcat-footer h2 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: #F5A623;
}

.anxcat-footer p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.anxcat-footer .tagline {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 20px 0;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #F5A623, #F7B84E);
  color: #fff;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 500;
  font-size: 14px;
  border: 2px solid #F5A623;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E5961A, #F5A623);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: #F5A623;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 500;
  font-size: 14px;
  border: 2px solid #F5A623;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(245, 166, 35, 0.1);
  transform: translateY(-2px);
}

.footer-credit {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 16px;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .mc-main {
    grid-template-columns: minmax(280px, 360px) 1fr;
  }
  
  .howto-panel {
    display: none;
  }
  
  .howto-accordion {
    display: block;
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .mc-main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .howto-accordion {
    grid-column: 1;
  }

  .mc-panel {
    padding: 16px;
    border-radius: 14px;
  }

  .mc-header {
    padding: 12px 16px;
  }

  .mc-title {
    font-size: 20px;
  }

  .mc-subtitle {
    font-size: 12px;
  }

  .mc-field select,
  .mc-field textarea {
    font-size: 14px;
  }

  .mc-actions {
    flex-direction: row;
    justify-content: space-between;
  }

  .mc-actions button {
    flex: 1;
    text-align: center;
    padding: 12px 14px;
  }

  .mc-canvas-wrapper {
    max-width: 100%;
    border-radius: 14px;
  }

  #memeCanvas {
    width: 100%;
    height: auto;
  }

  .about-section {
    padding: 30px 16px;
  }

  .about-section h2 {
    font-size: 20px;
  }

  .anxcat-footer {
    padding: 30px 16px;
  }

  .anxcat-footer .tagline {
    font-size: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
