/* 
 * Dunamis Growth - Welcome Page Styles
 * Enhanced UI/UX for the main landing page
 */

/* Features Showcase */
.features-showcase {
  background: white;
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Interface Cards */
.interfaces {
  background: #fafafa;
  padding: 4rem 0;
}

.interface-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.interface-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.interface-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
  padding: 2rem 2rem 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon i {
  font-size: 2rem;
  color: white;
}

.role-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.card-content {
  padding: 0 2rem 1rem;
}

.card-content h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.card-footer {
  padding: 1rem 2rem 2rem;
}

/* Role-based Themes */
.admin-theme {
  border-top: 4px solid var(--admin-primary);
}

.admin-theme .card-header {
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
}

.admin-theme .card-icon {
  background: rgba(255, 255, 255, 0.2);
}

.owner-theme {
  border-top: 4px solid var(--owner-primary);
}

.owner-theme .card-header {
  background: linear-gradient(135deg, var(--owner-primary), var(--owner-secondary));
}

.owner-theme .card-icon {
  background: rgba(255, 255, 255, 0.2);
}

.manager-theme {
  border-top: 4px solid var(--manager-primary);
}

.manager-theme .card-header {
  background: linear-gradient(135deg, var(--manager-primary), var(--manager-secondary));
}

.manager-theme .card-icon {
  background: rgba(255, 255, 255, 0.2);
}

.waiter-theme {
  border-top: 4px solid var(--waiter-primary);
}

.waiter-theme .card-header {
  background: linear-gradient(135deg, var(--waiter-primary), var(--waiter-secondary));
}

.waiter-theme .card-icon {
  background: rgba(255, 255, 255, 0.2);
}

.customer-theme {
  border-top: 4px solid var(--customer-primary);
}

.customer-theme .card-header {
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-secondary));
}

.customer-theme .card-icon {
  background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  justify-content: center;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 12px;
  margin: 0 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(103, 58, 183, 0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Role-specific buttons */
.btn-admin {
  background: var(--admin-primary);
  color: white;
  width: 100%;
}

.btn-admin:hover {
  background: var(--admin-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 71, 79, 0.3);
}

.btn-owner {
  background: var(--owner-primary);
  color: white;
  width: 100%;
}

.btn-owner:hover {
  background: var(--owner-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.btn-manager {
  background: var(--manager-primary);
  color: white;
  width: 100%;
}

.btn-manager:hover {
  background: var(--manager-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 142, 60, 0.3);
}

.btn-waiter {
  background: var(--waiter-primary);
  color: white;
  width: 100%;
}

.btn-waiter:hover {
  background: var(--waiter-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-customer {
  background: var(--customer-primary);
  color: white;
  width: 100%;
}

.btn-customer:hover {
  background: var(--customer-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 31, 162, 0.3);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-description h2 {
    font-size: 2rem;
  }
  
  .hero-description p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .interface-cards {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .auth-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-large {
    width: 100%;
    max-width: 300px;
  }
  
  .container-inner {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 80px;
    height: 80px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .card-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .card-content {
    padding: 0 1.5rem 1rem;
  }
  
  .card-footer {
    padding: 1rem 1.5rem 1.5rem;
  }
}
