/* Christmas Wishes Generator - All Related Styles */

/* New Tool Highlight Section (Home Page) */
.new-tool-section {
  margin: 64px 0;
  padding: 64px 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(249, 115, 22, 0.08));
  border-top: 2px solid rgba(239, 68, 68, 0.2);
  border-bottom: 2px solid rgba(239, 68, 68, 0.2);
  animation: fadeIn 0.8s ease forwards;
  position: relative;
  overflow: hidden;
}

.new-tool-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(239, 68, 68, 0.1), transparent 50%);
  pointer-events: none;
}

.new-tool-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.new-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease forwards;
}

.new-badge-icon {
  font-size: 18px;
  animation: spin 2s linear infinite;
}

.new-badge-text {
  font-size: 13px;
}

.new-tool-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  animation: fadeInUp 0.8s ease forwards;
}

.new-tool-text h2 {
  font-size: clamp(36px, 5vw, 48px);
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.2;
}

.new-tool-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 24px;
  font-weight: 500;
}

.new-tool-description {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 32px;
}

.new-tool-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.new-tool-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text);
}

.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.new-tool-button {
  font-size: 18px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border: none;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  transition: all 0.3s ease;
}

.new-tool-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
}

.new-tool-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.new-tool-preview {
  width: 100%;
  max-width: 400px;
}

.preview-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: float 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.preview-header {
  font-size: 48px;
  text-align: center;
  margin-bottom: 20px;
  animation: spin 3s linear infinite;
}

.preview-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--bg);
  border-radius: 12px;
  border-left: 4px solid #ef4444;
}

.preview-footer {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 968px) {
  .new-tool-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .new-tool-visual {
    order: -1;
  }
  
  .new-tool-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .new-tool-section {
    padding: 48px 16px;
    margin: 48px 0;
  }
  
  .new-tool-text h2 {
    font-size: 28px;
  }
  
  .new-tool-subtitle {
    font-size: 18px;
  }
  
  .new-tool-description {
    font-size: 16px;
  }
  
  .preview-card {
    padding: 24px;
  }
  
  .preview-text {
    font-size: 14px;
    padding: 16px;
  }
}

/* New Tool Modal Popup Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--surface);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
  border: 2px solid var(--border);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpFromBottom {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 6px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
  margin: 0;
  font-weight: 400;
  line-height: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
  transform: rotate(90deg);
}

.new-tool-modal {
  padding: 0;
}

.modal-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  padding: 12px 24px;
  border-radius: 20px 20px 0 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-badge-icon {
  font-size: 18px;
  animation: spin 2s linear infinite;
}

.modal-body {
  padding: 40px;
  text-align: center;
  overflow-y: auto;
}

.modal-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.modal-title {
  font-size: clamp(28px, 5vw, 36px);
  margin: 0 0 12px;
  color: var(--text);
}

.modal-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.modal-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text);
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.modal-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-button {
  font-size: 18px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border: none;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
}

.modal-close-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
}

@media (max-width: 720px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile */
    animation: slideUpFromBottom 0.4s ease;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
  }

  .modal-body {
    padding: 16px 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    text-align: center;
    box-sizing: border-box;
  }

  .modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
  }

  .modal-title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .modal-subtitle {
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.4;
  }

  .modal-features {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0;
    flex-shrink: 0;
  }

  .modal-feature {
    font-size: 14px;
    padding: 10px;
  }

  .modal-badge {
    padding: 12px 20px;
    font-size: 12px;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .modal-icon,
  .modal-title,
  .modal-subtitle {
    flex-shrink: 0;
  }

  .modal-actions {
    flex-shrink: 0;
    padding: 16px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: auto;
    box-sizing: border-box;
  }
}

/* Christmas Wishes Generator Styles */
.wishes-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.wishes-category-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wishes-category-selector label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.select-input {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-input:hover {
  border-color: var(--accent);
}

.select-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.wishes-generate-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}

.wishes-output-container {
  margin-top: 24px;
}

.wishes-output {
  min-height: 200px;
  padding: 32px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.wishes-output.has-content {
  border-color: var(--accent);
  background: var(--card-bg);
}

.wishes-placeholder {
  text-align: center;
  color: var(--muted);
}

.wishes-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.wishes-placeholder p {
  font-size: 16px;
  margin: 0;
}

.wishes-text {
  width: 100%;
}

.wishes-text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
  text-align: center;
}

.wishes-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.wishes-copy-btn,
.wishes-clear-btn {
  padding: 12px 24px;
  font-size: 14px;
}

.wishes-copy-btn:disabled,
.wishes-clear-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.info-section {
  margin-top: 64px;
  padding: 48px 0;
}

.info-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: var(--text);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.info-card {
  padding: 32px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.info-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.info-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.features-section {
  margin-top: 48px;
  padding: 48px 0;
}

.features-section h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 32px;
  color: var(--text);
}

.features-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.features-list li {
  padding: 16px 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li strong {
  color: var(--accent);
}

@media (max-width: 720px) {
  .wishes-controls {
    gap: 12px;
  }
  
  .wishes-output {
    min-height: 150px;
    padding: 24px 16px;
  }
  
  .wishes-text p {
    font-size: 16px;
  }
  
  .wishes-actions {
    flex-direction: column;
  }
  
  .wishes-copy-btn,
  .wishes-clear-btn {
    width: 100%;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .info-section h2,
  .features-section h2 {
    font-size: 24px;
  }
}

