/*
Theme Name: CE247 Neon Dark Mode
Theme URI: https://staging.ce247.online
Author: Antigravity
Author URI: https://staging.ce247.online
Description: Premium Dark Mode interface designed for CE247 compliance and LearnDash performance.
Version: 1.0.0
Text Domain: ce247
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* CE247 Premium Dark Mode Branding */
  --bg-main: #030303; 
  --bg-card: rgba(15, 15, 15, 0.7); /* Dark Glass */
  --text-main: #ffffff; 
  --text-muted: #a0a0a0;
  
  --accent-blue: #0047FF; /* Vivid CE247 Blue for outlines/secondary */
  --accent-blue-hover: #1D4ED8;
  
  --accent-red: #E60000; /* Energetic CE247 Red for Primary actions */
  --accent-red-hover: #b30000;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --header-glass: rgba(10, 10, 10, 0.85); /* Dark neutral glass header */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 1rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  /* Interactive Interactive Sweep/Glow Base */
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sweep effect using CE247 Blue */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(0, 71, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none; /* Prevents blocking clicks on elements inside the card */
  z-index: 0;
}

/* Ensure card contents stay above the sweep */
.card > * {
  position: relative;
  z-index: 1;
}

/* Upon hover, light up and sweep! */
.card:hover {
  border-color: var(--accent-red); 
  background: rgba(15, 15, 15, 0.95);
  box-shadow: 0 8px 30px var(--ce-blue-glow); /* If ce-blue-glow isn't in root it might fallback, let's use rgba */
  box-shadow: 0 8px 30px rgba(0, 71, 255, 0.6);
  transform: translateY(-3px);
}

.card:hover::before {
  transform: translateX(100%);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  margin-bottom: 0.5rem;
}

.badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-red);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  min-height: 44px; /* Minimum tap target */
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--accent-red-hover);
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-block {
  width: 100%;
}

/* Modal Overlay */
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.hidden {
  display: none !important;
}

/* File Input override */
input[type="file"] {
  display: none;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border: 2px dashed var(--accent-blue);
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  min-height: 150px;
  transition: background-color 0.2s;
}

.file-upload-label:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

.camera-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Video specific */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #111;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }

/* State Landing Page Specifics */
.hero-section {
  padding: 4rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-main) 100%);
}
.hero-section h1 { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
.hero-section p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem auto; }

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Disable interactive hover glow on purely informational text cards */
.requirements-grid .card:hover {
  border-color: var(--border-color);
  background-color: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: none;
  cursor: default;
}
.requirements-grid .card::before {
  display: none;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin: 1rem 0;
}

/* Checkout and Form Specifics */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}
.form-group input:focus, .form-group select:focus {
    outline: 2px solid var(--accent-blue);
}
.license-field {
    background: rgba(37, 99, 235, 0.05);
    border: 2px solid var(--accent-blue);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}
.license-field label {
    color: var(--accent-blue);
    font-size: 1.2rem;
}
.order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--border-color);
  background: var(--header-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.site-title a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.main-navigation a:hover {
  color: white;
}

/* Certificate Specifics */
.cert-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.cert-details h3 {
    margin-bottom: 0.25rem;
}
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}
.status-reported {
    background-color: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid #4ade80;
}
.status-pending {
    background-color: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border: 1px solid #facc15;
}
@media (max-width: 600px) {
    .cert-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .cert-actions {
        width: 100%;
    }
}

/* ==========================================================================
   GLOBAL BRANDING COMPONENTS (Inherited from Premium Dark Mode Prototype)
   ========================================================================== */

/* Ambient CE247 Brand Background Glow */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 80vh;
    background: 
        radial-gradient(circle at 30% 0%, var(--ce-blue-glow) 0%, transparent 40%),
        radial-gradient(circle at 70% 0%, var(--ce-red-glow) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Premium Glassmorphism Header */
.global-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    background: var(--header-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 20, 137, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    height: 48px;
    max-width: 200px;
    object-fit: contain;
    aspect-ratio: 3 / 1;
}

.header-login {
    background: var(--ce-red);
    color: #fff;
    padding: 0.6rem 1.75rem;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.header-login:hover {
    background: #b30000;
    box-shadow: 0 4px 15px var(--ce-red-glow);
    transform: translateY(-1px);
}
