/* Import Google Fonts for Manga Style */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&family=Metal+Mania&family=Kalam:wght@400;700&family=Griffy&family=Bangers&family=Permanent+Marker&family=Fredoka+One&display=swap');

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

                .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.1);
}

header h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
	    color: white !important;
/*     font-family: inherit; */
	}

.manga-text {
  font-family: 'Metal Mania', cursive;
  color: white;
  text-shadow: 
    2px 2px 0 #ad1457,
    4px 4px 10px rgba(255, 23, 68, 0.3);
  transform: rotate(-2deg);
}

.font-text {
  color: white;
  font-family: 'Kalam', cursive;
}

.subtitle {
  color: white;
  font-size: 1.1rem;
  font-weight: 400;
}

/* Main Content */
.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Preview Section */
.preview-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.15);
  text-align: center;
}

.preview-container {
  background: 
    linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border-radius: 12px !important;
  padding: 40px 20px !important;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 3px dashed #f48fb1;
}

.preview-text {
  font-family: 'Permanent Marker', cursive;
  font-size: 72px;
  font-weight: bold;
  color: #ff1744;
  background: #ffffff;
  padding: 20px 30px !important;
  border-radius: 8px !important;
  text-shadow: 
    3px 3px 0 #000000,
    -2px -2px 0 #000000,
    2px -2px 0 #000000,
    -2px 2px 0 #000000,
    5px 5px 10px rgba(0,0,0,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  word-break: break-word;
  line-height: 1.2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  border: 3px solid rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  font-style: normal;
  transform: rotate(-1deg);
}

/* Controls Section */
.controls-section {
  background: #ffffff;
  border-radius: 12px !important;
  padding: 30px !important;
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.15);
}

.control-group {
  margin-bottom: 25px;
}

.control-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #424242;
  margin-bottom: 10px;
  font-size: 1rem;
}

.icon {
  margin-right: 8px;
  font-size: 1.2rem;
}

/* Text Input */
.text-input {
  width: 100%;
  padding: 12px 16px !important;
  font-size: 1rem;
  border: 2px solid #fce4ec !important;
  border-radius: 12px !important;
  background: #f5f5f5 !important;
  font-family: 'Kalam', cursive;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-input:focus {
  outline: none !important;
  border-color: #e91e63 !important;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
  background: #ffffff !important;
}

/* Slider */
.slider {
  width: 100%;
  height: 6px;
	padding:3px !important;
  border-radius: 3px !important;
  background: linear-gradient(to right, #fce4ec, #e91e63);
  outline: none;
  -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50% !important;
  background: #ff1744;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 23, 68, 0.4);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff1744;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Color Controls */
.color-controls {
  display: flex;
  align-items: end;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.color-group {
  flex: 1;
  min-width: 140px;
}

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5 !important;
  padding: 8px !important;
  border-radius: 12px !important;
  border: 2px solid #fce4ec !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-picker-wrapper:hover {
  border-color: #e91e63;
}

.color-picker {
  width: 40px;
  height: 40px;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer;
	padding:1px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-picker:hover {
  transform: scale(1.05);
}

.color-value {
  font-family: monospace;
  font-size: 0.9rem;
  color: #757575;
  font-weight: 600;
}

.swap-btn {
  background:linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
  color: #ffffff;
  border: none !important;
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
	padding:10px !important;
}

.swap-btn:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* Theme Grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.theme-btn {
  background: #ffffff;
  border: 2px solid #fce4ec !important;
  border-radius: 12px !important;
  padding: 0px !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 50px;
}

.theme-btn:hover {
  border-color: #e91e63;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.theme-preview {
  width: 100%;
  height: 100%;
  border-radius: 6px !important;
  overflow: hidden;
}

.theme-preview div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: 'Bangers', cursive;
  font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  padding: 12px 24px !important;
  font-size: 1rem;
  font-weight: 600;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Kalam', cursive;
}

.reset-btn {
  background: linear-gradient(135deg, #757575, #424242) !important;
  color: #ffffff !important;
}

.save-btn {
 background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: #ffffff !important;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 30, 99, 0.25);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
  color: #757575;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (min-width: 768px) {
  .main-content {
    grid-template-columns: 2fr 1fr;
  }
  
  .color-controls {
    flex-wrap: nowrap;
  }
  
  .action-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0px !important;
  }
  
  .header {
    margin-bottom: 25px;
    padding: 20px 15px;
  }
  
  .preview-container {
    padding: 20px 10px !important;
    min-height: 150px;
  }
  
  .preview-text {
    font-size: clamp(24px, 8vw, 60px);
    padding: 15px 20px;
  }
  
  .controls-section,
  .preview-section {
    padding: 20px;
  }
  
  .color-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .swap-btn {
    align-self: center;
    order: 3;
  }
  
  .theme-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 480px) {
  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .title {
    flex-direction: column;
    gap: 5px;
  }
}

/* Loading Animation */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success Animation */
@keyframes success {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.success-animation {
  animation: success 0.3s ease-in-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
button:focus-visible,
input:focus-visible {
  outline: 2px solid #e91e63;
  outline-offset: 2px;
}

/* WordPress compatibility styles */
.wp-block-html .container {
  max-width: none;
  margin: 0;
}

.widget .container {
  padding: 0;
}
