/* Homepage-specific styles */

/* Override accent color to purple for non-user pages */
:root {
  --accent-color: #9146ff;
  --accent-color-dark: #7b2cff;
  --accent-color-light: #a970ff;
}

/* Links hover with pink color */
a:hover {
  color: #ff6ba0 !important;
}

a:visited:hover {
  color: #ff6ba0 !important;
}

/* Dropdown links should have white text on purple background for readability and theme consistency */
.dropdown-content a:hover {
  background-color: var(--accent-color) !important;
  color: var(--secondary-color) !important;
}

/* Override global body styles for homepage */
body {
  background: linear-gradient(135deg, #18181b, #0e0e10);
  min-height: 100vh;
}

/* Hero section */
.hero-section {
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-logo {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #9146ff, #ff0099);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #a970ff;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #dedee3;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Auth section */
.auth-section {
  margin: 2rem 0;
  text-align: center;
}

.auth-button {
  background: #9146ff;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-button:hover {
  background: #7b2cff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(145, 70, 255, 0.4);
}

.nav-auth-button {
  background: #9146ff;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family);
}

.nav-auth-button:hover {
  background: #7b2cff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(145, 70, 255, 0.4);
}

.user-info-card {
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(145, 70, 255, 0.1);
  border-radius: 12px;
  max-width: 800px;
  display: none;
  border: 1px solid rgba(145, 70, 255, 0.2);
}

.user-info-card.visible {
  display: block;
}

.user-info-card h3 {
  color: #9146ff;
  margin-bottom: 1rem;
}

.subscription-badge {
  background: #9146ff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  display: none;
}

.subscription-badge.visible {
  display: inline-block;
}

/* Pricing section */
.pricing-section {
  margin: 3rem 0;
  padding: 0 1rem;
}

.pricing-section h2 {
  color: #9146ff;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.pricing-intro {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 2rem;
}

.pricing-footer p {
  margin-top: 0.5rem;
}

.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

/* Pricing card variants */
.pricing-card.tier-free {
  background: rgba(145, 70, 255, 0.05);
  border: 2px solid rgba(145, 70, 255, 0.1);
}

.pricing-card.tier-lite {
  background: rgba(145, 70, 255, 0.1);
  border: 2px solid rgba(145, 70, 255, 0.2);
}

.pricing-card.tier-plus,
.pricing-card.tier-pro {
  background: rgba(145, 70, 255, 0.15);
  border: 2px solid #9146ff;
}

.pricing-card.featured {
  box-shadow: 0 4px 20px rgba(145, 70, 255, 0.3);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #9146ff;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-card h3 {
  color: #9146ff;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.pricing-description {
  font-size: 0.95rem;
  color: #dedee3;
  margin-bottom: 1rem;
}

.pricing-amount {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pricing-amount span {
  font-size: 1rem;
  color: #dedee3;
}

.pricing-note {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.pricing-features {
  margin: 2rem 0;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.feature-icon {
  color: #9146ff;
  font-size: 1.1rem;
  min-width: 24px;
}

.badge-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.badge-icon i {
  color: white;
  font-size: 12px;
}

.badge-icon.badge-lite {
  background: #9146ff;
}

.badge-icon.badge-plus {
  background: #ff69b4;
}

.badge-icon.badge-vanity {
  background: #129e3c;
}

.badge-icon.badge-pro {
  background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #0000ff, #8000ff);
}

.get-plan-button {
  background: #9146ff;
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-weight: 600;
}

.get-plan-button:hover {
  background: #7b2cff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(145, 70, 255, 0.4);
}

.get-plan-button.gradient {
  background: linear-gradient(45deg, #9146ff, #ff69b4);
}

.get-plan-button.gradient-rainbow {
  background: linear-gradient(45deg, #9146ff, #ff0000, #ff8000, #ffff00);
}

/* Comparison table */
.comparison-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(145, 70, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(145, 70, 255, 0.2);
}

.comparison-section h3 {
  color: #9146ff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table thead {
  background: #9146ff;
  color: white;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  text-align: center;
  border-bottom: 1px solid #333;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.check-icon {
  color: #129e3c;
}

.cross-icon {
  color: #ff0000;
}

/* Info section */
.info-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(145, 70, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(145, 70, 255, 0.2);
}

.info-section h3 {
  color: #9146ff;
  margin-bottom: 1rem;
}

.info-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.info-note {
  color: #9146ff;
  margin-top: 1rem;
}

/* User profile actions */
.user-actions {
  margin-top: 1.5rem;
}

.user-actions .auth-button {
  margin: 1rem 0.5rem 0 0;
  text-decoration: none;
}

/* Navigation logo */
.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Footer adjustments for homepage */
.site-footer {
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9146ff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ff6ba0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .pricing-container {
    grid-template-columns: 1fr;
  }

  .comparison-section {
    padding: 1rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .auth-button {
    width: 100%;
    justify-content: center;
  }

  .nav-auth-button {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .pricing-section h2 {
    font-size: 1.5rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }
}


/* Resource pages */
main.resource-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

.resource-header {
  text-align: center;
  margin-bottom: 3rem;
}

.resource-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #9146ff, #ff0099);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.resource-description {
  font-size: 1.1rem;
  color: #dedee3;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tool cards */
.tool-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(145, 70, 255, 0.2);
  transition: all 0.3s ease;
}

.tool-card:hover {
  border-color: rgba(145, 70, 255, 0.5);
  box-shadow: 0 5px 20px rgba(145, 70, 255, 0.2);
}

.tool-card h3 {
  color: #a970ff;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.tool-card p {
  color: rgba(222, 222, 227, 0.82);
  line-height: 1.68;
  margin: 0.5rem 0 0;
}

.tool-card ul {
  color: rgba(222, 222, 227, 0.8);
  line-height: 1.65;
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}

.tool-card li {
  margin-bottom: 0.4rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #dedee3;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(145, 70, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-family: var(--font-family);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #9146ff;
  box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.2);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(145, 70, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: #9146ff;
  box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.2);
}

.form-select option {
  background: #18181b;
  color: #ffffff;
}

/* Buttons */
.btn-primary {
  background: #9146ff;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family);
  font-weight: 500;
}

.btn-primary:hover {
  background: #7b2cff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(145, 70, 255, 0.4);
}

.btn-primary:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(145, 70, 255, 0.3);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family);
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #9146ff;
}

/* Results display */
.result-box {
  background: rgba(145, 70, 255, 0.1);
  border: 1px solid rgba(145, 70, 255, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.result-box.success {
  background: rgba(0, 255, 0, 0.1);
  border-color: rgba(0, 255, 0, 0.3);
}

.result-box.error {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.3);
}

.result-box.warning {
  background: rgba(255, 165, 0, 0.1);
  border-color: rgba(255, 165, 0, 0.3);
}

.result-label {
  font-size: 0.9rem;
  color: #a970ff;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #9146ff;
  animation: spin 0.8s linear infinite;
}

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

/* Info boxes */
.info-box {
  background: rgba(0, 150, 255, 0.1);
  border-left: 4px solid #0096ff;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.info-box i {
  color: #0096ff;
  margin-right: 0.5rem;
}

.warning-box {
  background: rgba(255, 165, 0, 0.1);
  border-left: 4px solid #ffa500;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.warning-box i {
  color: #ffa500;
  margin-right: 0.5rem;
}

/* Grid layouts */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.resource-grid-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(145, 70, 255, 0.2);
  transition: all 0.3s ease;
}

.resource-grid-item:hover {
  border-color: rgba(145, 70, 255, 0.5);
  transform: translateY(-2px);
}

/* Color preview */
.color-preview {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

/* Progress bars */
.progress-bar {
  width: 100%;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #9146ff, #ff0099);
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Tables */
.resource-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.resource-table th,
.resource-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(145, 70, 255, 0.2);
}

.resource-table th {
  background: rgba(145, 70, 255, 0.2);
  color: #a970ff;
  font-weight: 600;
}

.resource-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Copy button */
.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(145, 70, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.copy-btn:hover {
  background: #9146ff;
  border-color: #9146ff;
}

.copy-btn.copied {
  background: #00ff00;
  border-color: #00ff00;
  color: #000;
}

/* Responsive design */
@media (max-width: 768px) {
  main.resource-page {
    padding: 1rem;
  }

  .resource-title {
    font-size: 2rem;
  }

  .tool-card {
    padding: 1.5rem;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }
}