/* 
 * This file contains component-specific styles but relies on themes.css for theming.
 * Theme-related variables are now defined in themes.css.
 */

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

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content */
main {
  flex: 1;
}

.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.gradient-text {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--accent-color-purple, #8b5cf6), var(--accent-color-blue, #3b82f6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Code card */
.code-card {
  border-radius: 0.75rem;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  position: relative;
}

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

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.code-card pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
}

.code-card code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9rem;
}

.code-description {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* Features */
.features {
  padding: 4rem 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

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

.icon {
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gradient-text {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .features {
    padding: 3rem 0;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gradient-text {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 3rem 0 2rem;
  }
}

/* About us list item styles */
.about-us-list {
  list-style-type: none;
}

/* Override the Tailwind text-gray-700 class */
.about-us-list.text-gray-700 {
  color: inherit;
}

/* Increase specificity by using a more specific selector */
.text-gray-700 .text-item,
.text-item {
  text-wrap: wrap;
  line-height: 1.625;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  vertical-align: middle;
  user-select: none;
  font-family: 'Lato', sans-serif;
  transition: all 300ms ease-in;
  background-color: transparent;
  color: var(--text-color) !important;
}

.text-gray-700 .text-item:hover,
.text-item:hover {
  background-color: var(--navbar-hover-bg) !important;
  color: var(--navbar-hover-text) !important;
}

.text-gray-700 .text-item:focus,
.text-item:focus {
  background-color: var(--navbar-hover-bg) !important;
  color: var(--navbar-hover-text) !important;
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  .text-gray-700 .text-item,
  .text-item {
    color: var(--text-color) !important;
  }
  
  .text-gray-700 .text-item:hover,
  .text-item:hover {
    color: var(--link-hover-color) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  .text-gray-700 .text-item:focus,
  .text-item:focus {
    color: var(--link-hover-color) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  .text-gray-700 .text-item[data-selected="true"],
  .text-item[data-selected="true"] {
    color: var(--accent-color) !important;
  }
  
  .text-item {
    background-opacity: 70%;
  }
}

/* Disabled state */
.text-item[aria-disabled="true"] {
  opacity: 0.5;
}
  