/* CopyrightChains Portal - Theme Styles */
/* Using SempreID theme: #0674bb with grey shades */

:root {
  /* Primary Colors - Same as SempreID */
  --nim-primary: #0674bb;
  --nim-primary-dark: #054d8a;
  --nim-primary-light: #3a92d0;
  
  /* Grey Shades - Same as SempreID */
  --grey-900: #1a1a1a;
  --grey-800: #2d2d2d;
  --grey-700: #404040;
  --grey-600: #595959;
  --grey-500: #737373;
  --grey-400: #999999;
  --grey-300: #b3b3b3;
  --grey-200: #d9d9d9;
  --grey-100: #f0f0f0;
  
  /* Functional Colors */
  --white: #ffffff;
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Borders */
  --border-radius: 4px;
  --border-radius-lg: 8px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-primary);
  background: linear-gradient(135deg, var(--grey-100) 0%, var(--white) 100%);
  color: var(--grey-800);
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Fixed Header - Same as SempreID */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--nim-primary);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  height: 70px;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

header h1 {
  font-size: 1.5rem;
  color: var(--nim-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

header .logo {
  height: 40px;
  width: auto;
}

/* Navigation - Same style as SempreID */
nav {
  display: flex;
  gap: var(--spacing-lg);
}

nav a {
  color: var(--grey-700);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: all 150ms ease;
}

nav a:hover {
  color: var(--nim-primary);
  background: var(--grey-100);
}

nav a.active {
  color: var(--nim-primary);
  background: var(--grey-100);
}

/* Main Content Area */
main {
  flex: 1;
  margin-top: 70px; /* Account for fixed header */
  margin-bottom: 60px; /* Account for fixed footer */
  padding: var(--spacing-xxl) var(--spacing-lg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--spacing-xxl) 0;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-xxl);
}

.hero h2 {
  font-size: 2.5rem;
  color: var(--grey-900);
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.2rem;
  color: var(--grey-600);
  margin-bottom: var(--spacing-xl);
}

/* Date Display */
#current-date {
  font-size: 1rem;
  color: var(--grey-500);
  margin-bottom: var(--spacing-xl);
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 150ms ease;
  display: inline-block;
}

.btn-primary {
  background: var(--nim-primary);
  color: var(--white);
  border: 2px solid var(--nim-primary);
}

.btn-primary:hover {
  background: var(--nim-primary-dark);
  border-color: var(--nim-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--nim-primary);
  border: 2px solid var(--nim-primary);
}

.btn-secondary:hover {
  background: var(--nim-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-xxl) 0;
}

.feature {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 150ms ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature h3 {
  color: var(--nim-primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
}

.feature p {
  color: var(--grey-600);
  line-height: 1.6;
}

/* Network Info Section */
.network-info {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: var(--spacing-xxl);
}

.network-info h3 {
  color: var(--grey-900);
  margin-bottom: var(--spacing-lg);
}

#network-stats {
  background: var(--grey-100);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  font-family: var(--font-mono);
  color: var(--grey-700);
}

/* Fixed Footer - Same as SempreID */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--grey-900);
  color: var(--grey-300);
  text-align: center;
  padding: var(--spacing-lg);
  border-top: 2px solid var(--nim-primary);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    height: auto;
    padding: var(--spacing-md);
  }
  
  header {
    height: auto;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  main {
    margin-top: 120px; /* Adjust for taller mobile header */
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
}

/* Loading State */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--grey-300);
  border-top-color: var(--nim-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Footer - Same as Portal */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--grey-900);
  color: var(--white);
  padding: var(--spacing-md) 0;
  text-align: center;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

footer p {
  margin: 0;
  color: var(--grey-300);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-links a {
  color: var(--grey-300);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: var(--white);
}

/* Sub Navigation Menu */
.sub-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.sub-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.sub-nav-menu {
  display: flex;
  gap: 0;
  align-items: center;
  height: 48px;
}

.sub-nav-item {
  padding: 12px 20px;
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sub-nav-item:hover {
  color: #0674bb;
  background: #f8f9fa;
}

.sub-nav-item.active {
  color: #0674bb;
  border-bottom-color: #0674bb;
  background: #f0f8ff;
}
