/* Root Variables */
:root {

  --primary: hsl(24, 100%, 50%);
  --primary-dark: hsl(16, 100%, 45%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(224, 71.4%, 4.1%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(224, 71.4%, 4.1%);
  --border: hsl(220, 13%, 91%);
  --input: hsl(220, 13%, 91%);
  --muted: hsl(220, 14.3%, 95.9%);
  --muted-foreground: hsl(220, 8.9%, 46.1%);
  --accent: hsl(220, 14.3%, 95.9%);
  --accent-foreground: hsl(220, 8.9%, 46.1%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(210, 20%, 98%);
  --ring: hsl(24, 100%, 50%);
  --radius: 0.5rem;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.dark {
      background-image: url("bg.webp");
  background-repeat: repeat;
  --background: hsl(0deg 0% 11.17%);
  --foreground: hsl(210, 20%, 98%);
  --card: hsl(224, 71.4%, 4.1%);
  --card-foreground: hsl(210, 20%, 98%);
  --border: hsl(215, 27.9%, 16.9%);
  --input: hsl(215, 27.9%, 16.9%);
  --muted: hsl(215, 27.9%, 16.9%);
  --muted-foreground: hsl(217.9, 10.6%, 64.9%);
  --accent: hsl(215, 27.9%, 16.9%);
  --accent-foreground: hsl(210, 20%, 98%);
  --destructive: hsl(0, 62.8%, 30.6%);
  --destructive-foreground: hsl(210, 20%, 98%);
  --ring: hsl(24, 100%, 50%);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {

  
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  transition: all 0.3s ease;

}

.dark body {
  background-color: var(--background);
  color: var(--foreground);
      background-image: url("bg.webp");
        background-repeat: repeat;
}

/* App Container */
.app-container {
  min-height: 100vh;
  background-color: var(--background);
}

/* Header */
.header {
  background-color: var(--primary);
  padding: 1.5rem;
  border-radius: 1rem;
  margin: 1rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.6s ease-out;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;

}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.header-text h1 {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.header-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin: 0;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
  padding: 1rem;
}

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

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  animation: slideUp 0.4s ease-out;

}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  
}

.card-title i {
  color: white;
  font-size: 1.25rem;
}

.card-title h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.card-content {
  padding: 1.5rem;
}

/* Video Icon */
.video-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* AI Icon */
.ai-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group label.required::after {
  content: '*';
  color: var(--destructive);
  font-weight: bold;
  margin-left: 0.25rem;
  animation: pulse 2s infinite;
  
  
  
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 127, 0, 0.2);
    animation: pulseGlow 0.5s infinite;
  box-shadow: 0 0 1px #ff6a00;
}

/* Checkbox Groups */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}

.checkbox-item label {
  font-size: 0.875rem;
  margin: 0;
  cursor: pointer;
}

/* Generate Button */
.generate-btn {
  cursor: pointer;
  width: 100%;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  min-height: 3rem;
  cursor: url(https://sweezy-cursors.com/wp-content/uploads/cursor/auto-draft/white-stylus-computer-mouse-pointer-32x32.png), pointer!important;
}

.generate-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
          box-shadow: 0 0 10px #FF4D00;
		transition: all 0.5s ease-in-out;
  
    cursor: url(https://sweezy-cursors.com/wp-content/uploads/cursor/auto-draft/white-stylus-computer-mouse-pointer-32x32.png), pointer!important;
}

.generate-btn:active {
  transform: translateY(0);
  cursor: url(https://sweezy-cursors.com/wp-content/uploads/cursor/auto-draft/white-stylus-computer-mouse-pointer-32x32.png), pointer!important;
}

.generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  
}

/* Output Section */
.output-section {
  margin-top: 2rem;
  animation: fadeIn 0.6s ease-out;
}

.output-card .card-content {
  padding: 0;
}

.content-output {
  padding: 1.5rem;
  background: var(--muted);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--foreground);
  min-height: 150px;
}

.ai-content-wrapper {
  background: hsl(24, 100%, 97%);
  border: 2px solid hsl(24, 100%, 90%);
  border-radius: var(--radius);
  margin: 1.5rem;
}

.dark .ai-content-wrapper {
  background: hsl(24, 50%, 10%);
  border-color: hsl(24, 50%, 20%);
}

.ai-content-wrapper .content-output {
  background: transparent;
  border: none;
  margin: 0;
}

/* Copy Button */
.copy-btn {
  cursor: url(https://sweezy-cursors.com/wp-content/uploads/cursor/auto-draft/white-stylus-computer-mouse-pointer-32x32.png), pointer!important;
  background:#FF4D00;
  border: none; /* No border */

  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  box-shadow: 0 0 10px #FF4D00;
  transition: all 0.5s ease-in-out;
  border-radius: 8px; /* Rounded corners */
}

.copy-btn:hover {

  cursor: url(https://sweezy-cursors.com/wp-content/uploads/cursor/auto-draft/white-stylus-computer-mouse-pointer-32x32.png), pointer!important;

  background: #ff6600;
  box-shadow: 0 0 20px #ffd580;


  background-image: linear-gradient(to right, #FFB75E, #ED8F03); /* Orange gradient from light to dark */
  color: white; /* Text color */
  border: none; /* No border */
  border-radius: 8px; /* Rounded corners */

  cursor: pointer; /* Pointer cursor on hover */
  transition: background-image 0.3s ease; /* Smooth transition for background on hover */

}

/* Social Footer */
.social-footer {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.social-footer p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.gemini-link {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.gemini-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 400px;
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  border-left: 4px solid var(--destructive);
}

.toast.success {
  border-left: 4px solid hsl(24, 100%, 50%);
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast.error .toast-icon {
  color: var(--destructive);
}

.toast.success .toast-icon {
  color: hsl(24, 100%, 50%);
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Field Error Styles */
.field-error {
  border-color: var(--destructive) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
  background-color: hsl(0, 100%, 97%);
  animation: shake 0.5s ease-in-out;
}

.dark .field-error {
  background-color: hsl(0, 50%, 10%);
}

.required-field::after {
  animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

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

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .header-left {
    flex-direction: column;
  }
  
  .card-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .header,
  .main-content {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .generate-btn {
    padding: 0.875rem 1rem;
  }
}

a:link {
  text-decoration: none;
  color:#D3D3D3;
}

a:visited {
  text-decoration: none;
    color:#D3D3D3;
}

a:hover {
  text-decoration: none;
    color:#D3D3D3;
}

a:active {s
  text-decoration: none;
    color:#D3D3D3;
}


    .glow-spin-element.glowing {
        box-shadow: 0 0 10px #FF4D00;
		transition: all 0.5s ease-in-out;
    }


.pulse-orange {
  background: #ff6a00;
  color: white;
  border-radius: 5px;
  padding: 5px 10px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: none; /* default state */
}

/* Trigger animation on hover */


@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px #ff6a00, 0 0 5px #ff6a00;
  }
  50% {
    box-shadow: 0 0 20px #ff6a00, 0 0 10px #ff8000;
  }
  100% {
    box-shadow: 0 0 10px #ff6a00, 0 0 5px #ff6a00;
  }
}

