/* blockenergy-public/website/styles/main.css */

/* === Original Styles Preserved Exactly === */
:root { 
  font-size: 16px; 
  }

body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0;
    font-size: 16px;
  }
  
  header, footer { 
    background-color: #1E90FF; 
    color: white; 
    padding: 20px; 
    text-align: center; 
  }
  
  .logo img {
    width: 150px;
    height: auto;
    margin-top: 10px;
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
    gap: 20px;
  }
  
  .header-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    margin-left: auto;
  }
  
  .language-switcher {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
  }
  
  .language-switcher select {
    padding: 8px 12px;
    border-radius: 5px;
    background: white;
    color: #1E90FF;
    border: 1px solid #1E90FF;
  }
  
  nav { 
    background-color: #333; 
    overflow: hidden; 
  }
  
  nav a { 
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none; 
  }
  
  nav a:hover { 
    background-color: #ddd; 
    color: black; 
  }
  
  section { 
    margin: 20px; 
    padding: 20px; 
    border-radius: 10px; 
    background-color: #f9f9f9; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
  }
  
  #about p {
    font-size: 1rem;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.6;
    text-align: left;
  }
  
  #session-timer {
    position: relative !important;  /* override previous fixed positioning */
    margin: 0 auto 10px auto;       /* center horizontally with spacing */
    display: block;
    text-align: center;
    color: red;
    font-weight: bold;
    font-size: 1.2em;
  }
  
  .cta-button {
    background-color: #1E90FF;
    color: white !important;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .cta-button:hover {
    background-color: #0066CC;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  }
  
  .timeline, .tokenomics { 
    display: flex; 
    justify-content: space-between; 
    margin: 20px 0; 
  }
  
  .timeline-item, .tokenomics-item { 
    flex: 1; 
    text-align: center; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    margin: 0 5px; 
  }
  
  :root:lang(ar) {
    direction: rtl;
    unicode-bidi: embed;
  }
  
  :lang(ar) {
    body, header, footer, section, nav {
      text-align: right;
      font-family: Tahoma, Arial, sans-serif;
    }
    
    header { 
      flex-direction: row-reverse;
      justify-content: flex-end;
    }
    
    nav a { float: right; }
    
    .language-switcher { 
      left: 20px;
      right: auto;
    }
    
    .timeline, .tokenomics { 
      flex-direction: row-reverse; 
    }
    
    #about p {
      text-align: right;
      margin: 0;
    }
    
    input, select, textarea { 
      direction: rtl; 
    }
    
    .header-content {
      margin-right: 20px;
      margin-left: 0;
    }
  }
  
  /* === Fixes Added Below === */
  
  /* 1. Auth Tabs Hover Effect */
  .auth-tab:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  /* 2. Register Button Shadow Fix */
  #registerForm .cta-button {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* 3. Mobile Responsiveness Preserved */
  @media (max-width: 768px) {
    header {
      flex-direction: column;
      padding: 10px;
    }
  
    .auth-container {
      position: static;
      width: 100%;
      margin-top: 15px;
    }
  
    nav a {
      float: none;
      display: block;
      width: 100%;
    }
  }

  /* Flashing animation */
@keyframes flash {
  0%   { color: red; }
  50%  { color: yellow; }
  100% { color: red; }
}

#session-timer.flash-warning {
  animation: flash 1s infinite;
}
