/* ============================================
   DECOFONT PAGE STYLES
   ============================================ */

/* Intro Section */
.decofont-intro {
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  margin-bottom: 40px;
}

.decofont-intro__content {
  max-width: 800px;
  margin: 0 auto;
}

.decofont-intro__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  word-break: keep-all;
}

.decofont-intro__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0.95;
}

.decofont-intro__description {
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.85;
  margin: 0;
}

@media (max-width: 768px) {
  .decofont-intro {
    padding: 40px 20px;
    margin-bottom: 30px;
  }
  
  .decofont-intro__title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .decofont-intro__subtitle {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .decofont-intro__description {
    font-size: 0.9rem;
  }
}

/* Main Section */
.decofont-main {
  padding: 40px 20px;
  min-height: calc(100vh - 300px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Input Card */
.decofont-input-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
}

[data-theme="dark"] .decofont-input-card {
  background: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.decofont-input-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
}

[data-theme="dark"] .decofont-input-card__title {
  color: #fff;
}

.decofont-input-field {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  background: white;
  color: #333;
  transition: all 0.2s ease;
}

[data-theme="dark"] .decofont-input-field {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

.decofont-input-field:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .decofont-input-field:focus {
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
}

.decofont-input-hint {
  font-size: 0.85rem;
  color: #999;
  margin: 10px 0 0 0;
}

[data-theme="dark"] .decofont-input-hint {
  color: #888;
}

@media (max-width: 768px) {
  .decofont-input-card {
    padding: 20px;
  }
  
  .decofont-input-field {
    min-height: 80px;
    font-size: 0.95rem;
  }
}

/* Styles Card */
.decofont-styles-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
}

[data-theme="dark"] .decofont-styles-card {
  background: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.decofont-styles-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
}

[data-theme="dark"] .decofont-styles-card__title {
  color: #fff;
}

.decofont-styles-card__subtitle {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 20px 0;
}

[data-theme="dark"] .decofont-styles-card__subtitle {
  color: #aaa;
}

/* Styles Grid */
.decofont-styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

@media (max-width: 1024px) {
  .decofont-styles-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
}

@media (max-width: 768px) {
  .decofont-styles-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
  }
}

/* Style Button (Pill) */
.decofont-style-btn {
  padding: 12px 10px;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: #333;
  transition: all 0.2s ease;
  word-break: break-word;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

[data-theme="dark"] .decofont-style-btn {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

.decofont-style-btn:hover {
  background: #e8e8e8;
  border-color: #bbb;
  transform: translateY(-2px);
}

[data-theme="dark"] .decofont-style-btn:hover {
  background: #333;
  border-color: #555;
}

.decofont-style-btn--active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.decofont-style-btn--active:hover {
  background: linear-gradient(135deg, #5568d3 0%, #693a96 100%);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Action Area */
.decofont-action-area {
  text-align: center;
  margin-bottom: 40px;
}

.decofont-convert-btn {
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 700;
}

/* Result Card */
.decofont-result-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
}

[data-theme="dark"] .decofont-result-card {
  background: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.decofont-result-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
}

[data-theme="dark"] .decofont-result-card__title {
  color: #fff;
}

.decofont-result-box {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 80px;
  word-break: break-all;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  max-height: 300px;
  overflow-y: auto;
}

[data-theme="dark"] .decofont-result-box {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

.decofont-result-empty {
  color: #999;
  text-align: center;
  margin: 0;
  font-size: 0.95rem;
}

[data-theme="dark"] .decofont-result-empty {
  color: #888;
}

.decofont-result-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .decofont-result-card {
    padding: 20px;
  }
  
  .decofont-result-box {
    min-height: 60px;
    font-size: 1rem;
  }
  
  .decofont-result-actions {
    gap: 10px;
  }
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 120px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--secondary {
  background: #e0e0e0;
  color: #333;
}

[data-theme="dark"] .btn--secondary {
  background: #333;
  color: #e0e0e0;
}

.btn--secondary:hover:not(:disabled) {
  background: #ccc;
  transform: translateY(-2px);
}

[data-theme="dark"] .btn--secondary:hover:not(:disabled) {
  background: #444;
}

.btn--primary-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn--primary-gradient:hover:not(:disabled) {
  background: linear-gradient(135deg, #5568d3 0%, #693a96 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Tips Card */
.decofont-tips-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  border-left: 4px solid #667eea;
}

[data-theme="dark"] .decofont-tips-card {
  background: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  border-left-color: #764ba2;
}

.decofont-tips-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 15px 0;
}

[data-theme="dark"] .decofont-tips-card__title {
  color: #fff;
}

.decofont-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.decofont-tips-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

[data-theme="dark"] .decofont-tips-list li {
  color: #aaa;
}

.decofont-tips-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: 700;
}

@media (max-width: 768px) {
  .decofont-tips-card {
    padding: 20px;
  }
  
  .decofont-tips-card__title {
    font-size: 1.1rem;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  z-index: 1000;
  max-width: 300px;
  word-break: break-word;
}

[data-theme="dark"] .toast {
  background: #e0e0e0;
  color: #333;
}

.toast--success {
  background: #4caf50;
  color: white;
}

.toast--error {
  background: #f44336;
  color: white;
}

.toast--warning {
  background: #ff9800;
  color: white;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .toast {
    bottom: 90px;
    right: 10px;
    left: 10px;
    max-width: unset;
  }
}
