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

body {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.06), transparent 28%, rgba(255, 255, 255, 0.045) 48%, transparent 68%),
    radial-gradient(circle at 12% 18%, rgba(76, 175, 80, 0.26), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(255, 193, 7, 0.22), transparent 24rem),
    radial-gradient(circle at 50% 92%, rgba(33, 150, 243, 0.2), transparent 28rem),
    linear-gradient(135deg, #241044 0%, #4b1d95 42%, #111827 100%);
  background-attachment: fixed;
}

.container#main-content {
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.main {
  background: transparent;
}

.hero,
.hero-section,
.welcome-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(76, 175, 80, 0.18), transparent 24rem),
    radial-gradient(circle at 86% 14%, rgba(255, 193, 7, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(36, 16, 68, 0.66), rgba(75, 29, 149, 0.5), rgba(17, 24, 39, 0.56));
  position: relative;
  overflow: hidden;
}

.hero::after,
.hero-section::after,
.welcome-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 32%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.08), transparent 18rem);
  pointer-events: none;
}

.hero > *,
.hero-section > *,
.welcome-hero > * {
  position: relative;
  z-index: 1;
}

.section-title {
  color: white;
}

.features-showcase .section-title,
.interfaces .section-title {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.features,
.features h3,
.features h4,
.features p,
.features .material-icons {
  color: rgba(255, 255, 255, 0.92);
}

.features h3,
.features h4 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.features p {
  color: rgba(255, 255, 255, 0.78);
}

.features .material-icons {
  color: #FFD54F;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer,
.footer span,
.footer a,
.footer-copyright {
  color: rgba(255, 255, 255, 0.82);
}

.footer a:hover {
  color: #FFD54F;
}

.features-showcase {
  background: transparent;
  padding: 4rem 0;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.94);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(17, 24, 39, 0.28);
}

.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: transparent;
  padding: 4rem 0;
}

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

.interface-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.24);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.55);
  position: relative;
  backdrop-filter: blur(12px);
}

.interface-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 65px rgba(17, 24, 39, 0.32);
}

.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) {
  body {
    background-attachment: scroll;
  }

  .feature-card,
  .interface-card {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.97);
  }

  .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) {
  .features-showcase,
  .interfaces {
    padding: 3rem 0;
  }

  .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;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .interface-card,
  .btn,
  .dropdown-content,
  .dropdown-arrow,
  .vision-mission-card {
    transition-duration: 0.01ms;
  }

  .feature-card:hover,
  .interface-card:hover,
  .btn:hover,
  .vision-mission-card:hover {
    transform: none;
  }
}

/* Interface Dropdowns - Minimalistic Style */
.interface-dropdowns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 2rem auto 0;
}

.interface-dropdown {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.interface-dropdown:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-header:hover {
  background: #f8f9fa;
}

.dropdown-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dropdown-left i {
  font-size: 28px;
}

.dropdown-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.dropdown-arrow {
  font-size: 24px;
  color: #666;
  transition: transform 0.3s ease;
}

.interface-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: #fafafa;
  border-top: 1px solid transparent;
}

.interface-dropdown.open .dropdown-content {
  max-height: 400px;
  padding: 20px;
  border-top-color: #eee;
}

.dropdown-content p {
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}

.dropdown-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.dropdown-content ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 0.95rem;
}

.dropdown-content ul li i {
  font-size: 18px;
  color: #4CAF50;
}

.dropdown-content .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Theme colors for dropdowns */
.interface-dropdown.admin-theme .dropdown-left i { color: #9E9E9E; }
.interface-dropdown.owner-theme .dropdown-left i { color: #FF9800; }
.interface-dropdown.manager-theme .dropdown-left i { color: #4CAF50; }
.interface-dropdown.waiter-theme .dropdown-left i { color: #2196F3; }
.interface-dropdown.customer-theme .dropdown-left i { color: #9C27B0; }

.interface-dropdown.admin-theme .btn-admin { background: #757575; color: white; }
.interface-dropdown.owner-theme .btn-owner { background: #FF9800; color: white; }
.interface-dropdown.manager-theme .btn-manager { background: #4CAF50; color: white; }
.interface-dropdown.waiter-theme .btn-waiter { background: #2196F3; color: white; }
.interface-dropdown.customer-theme .btn-customer { background: #9C27B0; color: white; }

.dropdown-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Vision Mission Ethics Section */
.vision-mission-section {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 193, 7, 0.14), transparent 20rem),
    radial-gradient(circle at 82% 82%, rgba(76, 175, 80, 0.13), transparent 22rem),
    linear-gradient(135deg, rgba(103, 58, 183, 0.76) 0%, rgba(81, 45, 168, 0.66) 100%);
  padding: 4rem 2rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vision-mission-section .section-title {
  color: white;
  margin-bottom: 3rem;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.vision-mission-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.vision-mission-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.vision-mission-card .card-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

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

.vision-mission-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #FFD54F;
}

.vision-mission-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .dropdown-content ul {
    grid-template-columns: 1fr;
  }
  
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }
}
