/* New Year 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(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.2));
  border-top: 3px solid rgba(251, 191, 36, 0.5);
  border-bottom: 3px solid rgba(251, 191, 36, 0.5);
  animation: fadeIn 0.8s ease forwards;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.15), inset 0 0 60px rgba(251, 191, 36, 0.1);
}

.new-tool-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(251, 191, 36, 0.25), transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(245, 158, 11, 0.2), transparent 50%),
              radial-gradient(circle at 50% 100%, rgba(217, 119, 6, 0.15), transparent 60%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

.new-tool-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 50px,
    rgba(251, 191, 36, 0.03) 50px,
    rgba(251, 191, 36, 0.03) 52px
  );
  pointer-events: none;
  opacity: 0.5;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.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, #fbbf24, #f59e0b, #d97706);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.5), 0 0 30px rgba(251, 191, 36, 0.2);
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease forwards;
  position: relative;
  overflow: hidden;
}

.new-tool-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.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, #fbbf24, #f59e0b);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.new-tool-button {
  font-size: 18px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

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

.feature-nav-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
}

.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 #3b82f6;
}

.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, #fbbf24, #f59e0b, #d97706);
  color: white;
  padding: 12px 24px;
  border-radius: 20px 20px 0 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.modal-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
}

.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, #fbbf24, #f59e0b);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

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

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

.modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 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);
}

/* Feature Navigation Cards */
.feature-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.feature-nav-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

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

.feature-nav-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text);
}

.feature-nav-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.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,
.wishes-download-btn {
  padding: 12px 24px;
  font-size: 14px;
}

.wishes-share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.share-btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* Image Generation Controls */
.image-controls,
.card-controls,
.social-controls,
.wallpaper-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.image-style-selector,
.card-type-selector,
.social-platform-selector,
.wallpaper-type-selector,
.wallpaper-style-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.image-text-input,
.card-text-input,
.social-text-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.image-text-input textarea,
.card-text-input textarea,
.social-text-input textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}

.image-text-input textarea:focus,
.card-text-input textarea:focus,
.social-text-input textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

#imagePreview,
#cardPreview,
#socialPreview,
#wallpaperPreview {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#imagePreviewContainer,
#cardPreviewContainer,
#socialPreviewContainer,
#wallpaperPreviewContainer {
  text-align: center;
}

#imagePreviewContainer > div,
#cardPreviewContainer > div,
#socialPreviewContainer > div,
#wallpaperPreviewContainer > div {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.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) {
  .feature-nav-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-nav-card {
    padding: 24px 20px;
  }
  
  .feature-nav-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }
  
  .feature-nav-card h3 {
    font-size: 18px;
  }
  
  .feature-nav-card p {
    font-size: 13px;
  }
  
  .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,
  .wishes-download-btn {
    width: 100%;
  }
  
  .wishes-share-actions {
    flex-direction: column;
  }
  
  .share-btn {
    width: 100%;
  }
  
  #imagePreview,
  #cardPreview,
  #socialPreview,
  #wallpaperPreview {
    max-width: 100%;
    height: auto;
  }
  
  .image-controls,
  .card-controls,
  .social-controls,
  .wallpaper-controls {
    gap: 12px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .info-section h2,
  .features-section h2 {
    font-size: 24px;
  }
}

