/*
Theme Name: QuantumLab
Theme URI: https://mooc-science.eu/quantum-lab
Description: Quantum Water Memory Laboratory - Advanced Research Platform
Author: CNDC Research Team
Author URI: https://mooc-science.eu
Template: vlog
Version: 1.0.0
License: GPL v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: quantumlab-child
Domain Path: /languages
*/

/* ============================================
   === RESET & BASE STYLES ===
   ============================================ */

:root {
  --color-quantum-primary: #64b5f6;
  --color-quantum-secondary: #81c784;
  --color-quantum-dark: #0a0e27;
  --color-quantum-bg: #1a1f3a;
  --color-quantum-text: #e8e6dc;
  --color-quantum-muted: #b0bec5;
  --color-quantum-success: #81c784;
  --color-quantum-warning: #ff9800;
}

/* Override parent theme completely */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
  color: #e8e6dc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

body {
  background-attachment: fixed;
}

/* Hide parent theme header/banner */
.site-header,
.header-wrapper,
.site-title,
.site-description,
.navbar,
.nav,
nav,
.menu-wrapper {
  display: none !important;
}

/* ============================================
   === HEADER OVERRIDE ===
   ============================================ */

header {
  display: none !important;
}

.wp-site-blocks > * {
  margin: 0;
}

/* ============================================
   === LOGIN PAGE STYLES ===
   ============================================ */

#login {
  background: transparent !important;
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  padding: 20px !important;
}

html.wp-login,
html.wp-login body {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%) !important;
  height: 100vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

.login {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

#loginform,
.login form {
  background: rgba(50, 70, 120, 0.2) !important;
  border: 1px solid rgba(100, 181, 246, 0.3) !important;
  border-radius: 16px !important;
  padding: 50px 40px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  margin: 0 !important;
}

#login h1 {
  text-align: center !important;
  margin-bottom: 40px !important;
}

#login h1 a {
  background: none !important;
  width: auto !important;
  height: auto !important;
  color: #64b5f6 !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.15em !important;
  font-family: 'Space Mono', monospace !important;
  display: inline-block !important;
}

#login .user-login-wrap {
  margin-bottom: 0 !important;
}

.login label {
  color: #81c784 !important;
  font-weight: 600 !important;
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 0.95rem !important;
}

.login input[type="text"],
.login input[type="password"],
.login input[type="email"],
.login select {
  background: rgba(20, 30, 60, 0.8) !important;
  border: 1px solid rgba(100, 181, 246, 0.3) !important;
  color: #e8e6dc !important;
  border-radius: 8px !important;
  padding: 12px !important;
  width: 100% !important;
  font-size: 1rem !important;
  margin-bottom: 15px !important;
  box-sizing: border-box !important;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus,
.login select:focus {
  outline: none !important;
  border-color: #64b5f6 !important;
  background: rgba(20, 30, 60, 0.95) !important;
  box-shadow: 0 0 15px rgba(100, 181, 246, 0.3) !important;
}

.login input[type="checkbox"] {
  accent-color: #64b5f6 !important;
  margin-right: 8px !important;
}

.login .forgetmenot {
  margin-bottom: 20px !important;
}

.login .forgetmenot label {
  color: #b0bec5 !important;
  font-weight: 400 !important;
  margin-bottom: 0 !important;
  display: inline !important;
}

.login input[type="submit"] {
  background: linear-gradient(135deg, #64b5f6, #42a5f5) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px !important;
  width: 100% !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-top: 10px !important;
}

.login input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px rgba(100, 181, 246, 0.4) !important;
}

#login_error,
.message {
  background: rgba(255, 152, 0, 0.15) !important;
  border: 1px solid rgba(255, 152, 0, 0.3) !important;
  color: #ffb74d !important;
  padding: 12px !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
}

#login_error a {
  color: #64b5f6 !important;
}

#backtoblog,
#nav {
  text-align: center !important;
  margin-top: 30px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(100, 181, 246, 0.2) !important;
}

#backtoblog a,
#nav a {
  color: #64b5f6 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.3s ease !important;
}

#backtoblog a:hover,
#nav a:hover {
  color: #81c784 !important;
}

/* ============================================
   === HOME PAGE ===
   ============================================ */

.quantum-lab-hero {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
  color: #e8e6dc;
  padding: 80px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin-bottom: 80px;
}

.hero-title {
  font-size: 3.5rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  background: linear-gradient(90deg, #64b5f6, #81c784, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 20px 0;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #b0bec5;
  margin: 20px 0;
  font-family: 'Courier Prime', monospace;
  letter-spacing: 0.05em;
}

.hero-description {
  max-width: 800px;
  font-size: 1.1rem;
  color: #b0bec5;
  line-height: 1.8;
  margin: 30px auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 60px auto;
  max-width: 1200px;
  width: 100%;
}

.feature-card {
  background: rgba(50, 70, 120, 0.2);
  border: 1px solid rgba(100, 181, 246, 0.2);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: rgba(50, 70, 120, 0.4);
  border-color: rgba(100, 181, 246, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(100, 181, 246, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: inline-block;
}

.feature-title {
  color: #64b5f6;
  font-size: 1.5rem;
  margin: 0 0 15px 0;
  font-weight: 600;
  text-align: left;
}

.feature-card:hover .feature-title {
  color: #81c784;
}

.feature-description {
  color: #b0bec5;
  margin: 0;
  font-size: 0.95rem;
  text-align: left;
  flex-grow: 1;
  line-height: 1.6;
}

.feature-arrow {
  color: #64b5f6;
  font-size: 1.2rem;
  margin-top: 15px;
  display: inline-block;
  font-weight: 600;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-arrow {
  color: #81c784;
  transform: translateX(5px);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 40px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #64b5f6, #42a5f5);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(100, 181, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #64b5f6;
  border: 1px solid #64b5f6;
}

.btn-secondary:hover {
  background: rgba(100, 181, 246, 0.1);
  border-color: #81c784;
  color: #81c784;
}

.footer-info {
  margin-top: 100px;
  padding-top: 30px;
  border-top: 1px solid rgba(100, 181, 246, 0.2);
  color: #b0bec5;
  font-size: 0.9rem;
}

.footer-info a {
  color: #64b5f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-info a:hover {
  color: #81c784;
}

/* ============================================
   === INTERNAL PAGES ===
   ============================================ */

.quantum-page {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
  color: #e8e6dc;
  padding: 80px 20px;
  min-height: 100vh;
}

.page-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-header h1 {
  font-size: 3rem;
  font-family: 'Space Mono', monospace;
  background: linear-gradient(90deg, #64b5f6, #81c784);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 20px 0;
  letter-spacing: 0.1em;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #b0bec5;
  margin: 0;
}

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

/* ============================================
   === SIMULATORS GRID ===
   ============================================ */

.simulators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.simulator-card {
  background: rgba(50, 70, 120, 0.2);
  border: 1px solid rgba(100, 181, 246, 0.2);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.simulator-card:hover {
  background: rgba(50, 70, 120, 0.4);
  border-color: rgba(100, 181, 246, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(100, 181, 246, 0.2);
}

.simulator-card h3 {
  color: #64b5f6;
  font-size: 1.3rem;
  margin: 0 0 15px 0;
}

.simulator-card p {
  color: #b0bec5;
  margin: 0 0 15px 0;
  line-height: 1.6;
}

.simulator-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.simulator-card li {
  color: #81c784;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.simulator-card li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #64b5f6;
  font-weight: 600;
}

.btn-simulator {
  background: linear-gradient(135deg, #64b5f6, #42a5f5);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-simulator:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(100, 181, 246, 0.4);
}

/* ============================================
   === RESPONSIVE ===
   ============================================ */

@media (max-width: 768px) {
  .quantum-lab-hero {
    padding: 40px 20px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .features-grid {
    gap: 20px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .simulators-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   === FOOTER ===
   ============================================ */

.page-footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(100, 181, 246, 0.2);
  margin-top: 60px;
}

.btn-back {
  color: #64b5f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.btn-back:hover {
  color: #81c784;
}

/* ============================================
   === END OF STYLESHEET ===
   ============================================ */
