/* OrealMine Main Stylesheet */
/* Main layout and component styles */

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Header Styles */
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #2c3e50;
}

.logo img {
  height: 50px;
  width: auto;
  margin-right: 0.75rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.logo-text span {
  color: #e67e22;
}

/* Navigation */
.main-navigation {
  flex-grow: 1;
  margin: 0 2rem;
  width: 900px;
}

.nav-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
  margin: 0 0.5rem;
}

.nav-menu > li > a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.nav-menu > li > a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-menu > li.active > a {
  color: #e67e22;
  background-color: rgba(230, 126, 34, 0.1);
}

/* Dropdown Menus */
.menu-item-has-children > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 0.5rem;
  font-size: 0.7rem;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  color: #2c3e50;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sub-menu li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #e67e22;
}

/* User Actions */
.user-actions {
  display: flex;
  align-items: center;
}

.auth-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn {
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #e67e22;
  color: #fff;
}

.btn-primary:hover {
  background-color: #d35400;
}

.btn-outline {
  border: 1px solid #2c3e50;
  color: #2c3e50;
}

.btn-outline:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.user-profile {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  transition: all 0.3s ease;
}

.user-profile:hover {
  color: #e67e22;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.5rem;
  border: 2px solid #e2e8f0;
}

.user-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  border: 2px solid #e2e8f0;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.user-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #e67e22;
}

/* Notification Icon */
.notification-icon {
  position: relative;
  color: #2c3e50;
  margin-left: 1rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.notification-icon:hover {
  color: #e67e22;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e74c3c;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: bold;
}

/* Market Ticker */
.market-ticker {
  background-color: #2c3e50;
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.market-ticker .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.ticker-container {
  display: flex;
  overflow: hidden;
  gap: 2rem;
  flex-grow: 1;
}

.ticker-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-name {
  margin-right: 0.25rem;
}

.ticker-price {
  font-weight: 600;
  margin-right: 0.5rem;
}

.ticker-change {
  display: flex;
  align-items: center;
}

.ticker-change.up {
  color: #27ae60;
}

.ticker-change.down {
  color: #e74c3c;
}

.ticker-more {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.ticker-more:hover {
  color: #e67e22;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: inline-block;
  background-color: #e67e22;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background-color: #d35400;
  transform: translateY(-2px);
}

/* Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

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

.feature-card i {
  font-size: 3rem;
  color: #e67e22;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.feature-card p {
  color: #666;
}

/* Footer */
.main-footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: #e67e22;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: #e67e22;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1rem;
  text-align: center;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-navigation {
    margin: 0 1rem;
  }

  .nav-menu > li {
    margin: 0 0.25rem;
  }

  .nav-menu > li > a {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .ticker-container {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-header .container {
    flex-wrap: wrap;
    padding: 0.75rem;
  }

  .header-branding {
    width: 100%;
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
  }

  .main-navigation {
    display: none;
    width: 100%;
    margin: 0;
    order: 3;
    padding-top: 1rem;
  }

  .main-navigation.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
  }

  .nav-menu > li {
    margin: 0;
  }

  .nav-menu > li > a {
    padding: 0.75rem 1rem;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    display: none;
  }

  .menu-item-has-children:hover .sub-menu,
  .menu-item-has-children.active .sub-menu {
    display: block;
  }

  .user-actions {
    margin-left: auto;
  }

  .market-ticker {
    display: none;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-buttons .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .logo img {
    height: 32px;
  }

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

  .hero-section h1 {
    font-size: 1.75rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #e67e22;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
