/*
Theme Name: NameGator
Description: AI-powered business name generator WordPress theme
Version: 1.0
Author: NameGator Team
*/

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(to right, #10b981, #14b8a6);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, #059669, #0d9488);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #10b981;
  color: #10b981;
  background: transparent;
}

.btn-outline:hover {
  background: #10b981;
  color: white;
}

/* Responsive grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}
.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}
.animate-bounce {
  animation: bounce 1s ease-in-out infinite;
}

/* Custom animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

/* Background gradients */
.bg-gradient-emerald {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 50%, #f0fdfa 100%);
}

.bg-gradient-footer {
  background: linear-gradient(135deg, #065f46, #064e3b, #134e4a);
}

/* Text gradients */
.text-gradient {
  background: linear-gradient(to right, #10b981, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive utilities */
.hidden {
  display: none;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }
  .md\:flex {
    display: flex;
  }
  .md\:hidden {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block;
  }
  .lg\:flex {
    display: flex;
  }
  .lg\:hidden {
    display: none;
  }
}

/* WordPress specific styles */
.wp-block-image {
  margin: 2rem 0;
}

.wp-block-quote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
}

/* Admin styles */
.namegator-meta-box {
  padding: 20px;
}

.namegator-meta-box .form-table th {
  width: 150px;
  font-weight: 600;
}

.namegator-meta-box .form-table td {
  padding: 10px 0;
}

.namegator-meta-box input[type="text"],
.namegator-meta-box textarea,
.namegator-meta-box select {
  width: 100%;
  max-width: 500px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
}
/* بهبود نمایش نام‌های تولید شده */
/* بهبود نمایش نام‌های تولید شده */
#business-names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

#business-names-grid > div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    position: relative;
}

#business-names-grid .text-lg {
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.domain-register-btn {
    white-space: nowrap;
    min-width: 160px;
    max-width: 190px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #business-names-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #business-names-grid > div {
        min-height: 100px;
        padding: 0.875rem;
    }
    
    #business-names-grid .text-lg {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .domain-register-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    #business-names-grid .text-lg {
        font-size: 0.9rem;
    }
    
    .domain-register-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        min-width: 80px;
    }
}
/* Domain Search Styles */
#domain-search {
  padding: 2rem 0;
}

#domain-check-result {
  animation: fadeIn 0.5s ease-in-out;
  margin-top: 1.5rem;
  width: 100%;
}

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

#domain-status {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.domain-register-btn {
  white-space: nowrap;
  min-width: 140px;
  transition: all 0.3s ease;
}

/* Responsive adjustments for domain search */
@media (max-width: 768px) {
  #domain-search .flex-col {
    gap: 1rem;
  }

  .domain-register-btn {
    width: 100%;
    min-width: auto;
  }

  #domain-status .flex-col {
    text-align: center;
  }
}

/* Loading animation for domain check */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced button styles */
.domain-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.domain-register-btn:active {
  transform: translateY(0);
}

/* Status indicators */
.bg-green-50 {
  background-color: #f0fdf4;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.border-green-200 {
  border-color: #bbf7d0;
}

.border-red-200 {
  border-color: #fecaca;
}

.text-green-800 {
  color: #166534;
}

.text-red-800 {
  color: #991b1b;
}

.text-green-600 {
  color: #16a34a;
}

.text-red-600 {
  color: #dc2626;
}

.bg-green-500 {
  background-color: #22c55e;
}

.bg-red-500 {
  background-color: #ef4444;
}

/* Domain search input styling */
.domain-search-input {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s ease;
}

.domain-search-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  outline: none;
}

.domain-search-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.domain-result-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-radius: 0.5rem;
}

.domain-result-available {
  width: 490px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.domain-result-unavailable {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
}

.domain-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.domain-price {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.domain-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.status-available {
  background-color: #dcfce7;
  color: #166534;
}

.status-unavailable {
  background-color: #fee2e2;
  color: #991b1b;
}
.domain-result-container {
    border: 2px solid;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.domain-result-available {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.domain-result-unavailable {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}
.domain-result-box {
    width: 490px;
    border: 2px solid;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.domain-result-available {
    width: 490px;
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.domain-result-unavailable {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

#domain-result-container {
    animation: fadeIn 0.5s ease-in-out;
}

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




/* Domain Result Card Styles */
.domain-result-card {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 2px solid #a7f3d0;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  max-width: 500px;  /* از 400px به 500px تغییر */
  width: 100%;       /* اضافه شد */
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .domain-result-card {
    margin: 0 1rem;
    padding: 1.5rem;
    max-width: none;   /* اضافه شد - حذف محدودیت عرض در موبایل */
    width: calc(100% - 2rem);  /* اضافه شد - عرض کامل منهای margin */
  }
}

@media (max-width: 640px) {
  .domain-result-card {
    margin: 0 0.5rem;
    padding: 1rem;
    width: calc(100% - 1rem);  /* اضافه شد */
  }
}
