/*
Theme Name: examitall Theme
Description: Bootstrap-based theme for examitall certification exam platform
Author: examitall
Version: 1.0.5
Text Domain: eia-exam-app
*/

:root {
  /* Brand colors */
  --eia-blue: #00a3e0;
  --eia-red: #ef3340;
  --eia-slate: #41748d;
  --eia-black: #000000;
  --eia-white: #ffffff;
  --eia-lgray: #f0f0f0;
  --eia-dgray: #c4c2c2;
  
  /* Text colors */
  --eia-text: #333;
  --eia-text-muted: #666;
  --eia-text-disabled: #999;
  
  /* Interaction states */
  --eia-red-dark: #c82333;
  --eia-blue-light: #e3f2fd;
  
  /* Success colors */
  --eia-success: #28a745;
  --eia-success-bg: #d4edda;
  --eia-success-text: #155724;
  
  /* Error colors */
  --eia-error-bg: #f8d7da;
  --eia-error-text: #721c24;
  
  /* Warning colors */
  --eia-warning: #ffc107;
  --eia-warning-bg: #fff3cd;
  --eia-warning-text: #856404;
  
  /* Info colors */
  --eia-info-bg: #ddf3f8;
}

/* Layout Structure */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--eia-text);
  display: flex;
  flex-direction: column;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow selection in form fields */
input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Header */
.site-header {
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--eia-black) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Account for WordPress admin bar */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.site-header .navbar {
  height: 100%;
  padding: 0;
}

.site-header .container {
  height: 100%;
}

/* Logo */
.header-logo {
  max-height: 40px;
  width: auto;
  padding-top:10px;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 1.75rem;
  margin: 0;
  line-height: 1.2;
  color: var(--eia-white) !important;
  font-weight: 600;
}

.navbar-brand {
  color: var(--eia-white) !important;
  font-weight: 600;
  text-decoration: none !important;
  padding: 0;
}

.navbar-brand:hover {
  color: var(--eia-white) !important;
  text-decoration: none !important;
}

/* User Menu */
.user-menu-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 16px !important;
  color: var(--eia-white) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.user-menu-link::after {
  display: none !important;
}

.user-avatar {
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-name {
  color: var(--eia-white) !important;
  font-weight: 500 !important;
  font-size: 14px;
}

/* Hide username on mobile ONLY */
@media (max-width: 991px) {
  .user-name {
    display: none !important;
  }
}

.user-menu-link:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--eia-white) !important;
  text-decoration: none !important;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Login Link */
.login-link {
  color: var(--eia-white) !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.login-link:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--eia-white) !important;
  text-decoration: none !important;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu */
.dropdown-menu {
  border: 1px solid var(--eia-dgray);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  margin-top: 8px;
  min-width: 160px;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--eia-slate);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--eia-lgray);
  color: var(--eia-blue);
}

.dropdown-divider {
  margin: 8px 0;
  border-color: var(--eia-dgray);
}

/* Main Content */
.main-content {
  margin-top: 60px;
  padding-bottom: 20px;
  flex: 1;
}

/* Footer */
.site-footer {
  background-color: var(--eia-black) !important;
  padding: 7.5px 0;
}

.site-footer .copyright p {
  font-size: 14px;
  font-weight: 500;
  color: var(--eia-white);
  margin: 0;
}

/* Exam App Footer - same as site-footer but fixed */
.exam-footer {
  position: fixed !important;
  bottom: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--eia-black) !important;
  padding: 5px 0;
  z-index: 9999;
}

.exam-footer .copyright p {
  font-size: 14px;
  font-weight: 500;
  color: var(--eia-white);
  margin: 0;
}

/* Navigation Menu */
.navbar-nav {
  gap: 5px;
}

.navbar-nav .nav-link {
  color: var(--eia-white) !important;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 10px;
  }
  
  .navbar-nav {
    padding: 10px 0;
  }
  
  .mobile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 768px) {
  .header-logo {
    max-height: 45px;
  }
  
  .site-title {
    font-size: 1.5rem;
  }
  
  .site-header {
    height: 60px;
    position: relative;
  }
  
  .main-content {
    margin-top: 30px;
    padding-bottom: 15px;
  }
  
  .user-menu-link {
    padding: 6px 12px !important;
    gap: 6px;
  }
  
  .user-avatar {
    width: 28px !important;
    height: 28px !important;
  }
  
  .user-name {
    font-size: 13px;
  }
  
  .dropdown-menu {
    min-width: 140px;
    margin-top: 6px;
  }
  
  .dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Page Content Styling */
.page-title {
  color: var(--eia-slate);
  font-weight: 600;
  border-bottom: 3px solid var(--eia-blue);
  padding-bottom: 10px;
}

.page-content {
  margin-top: 20px;
  line-height: 1.6;
}

/* Utility Classes */
.text-eia-blue { color: var(--eia-blue); }
.text-eia-red { color: var(--eia-red); }
.text-eia-slate { color: var(--eia-slate); }
.bg-eia-blue { background-color: var(--eia-blue); }
.bg-eia-lgray { background-color: var(--eia-lgray); }

/* ===========================
   HOME PAGE STYLES
   =========================== */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--eia-blue) 0%, var(--eia-slate) 100%);
  padding: 80px 0;
  color: var(--eia-white);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 40px;
}

.hero-cta .btn {
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hero-cta .btn-primary {
  background-color: var(--eia-red);
  border-color: var(--eia-red);
}

.hero-cta .btn-primary:hover {
  background-color: var(--eia-red-dark);
  border-color: var(--eia-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 51, 64, 0.4);
}

.hero-cta .btn-outline-light {
  border: 2px solid var(--eia-white);
  color: var(--eia-white);
}

.hero-cta .btn-outline-light:hover {
  background-color: var(--eia-white);
  color: var(--eia-blue);
  transform: translateY(-2px);
}

/* Fix carousel indicators positioning */
.hero-section .carousel-indicators {
  bottom: -60px;
  position: absolute;
  margin-bottom: 0;
}

/* Exams Section */
.exams-section {
  padding: 60px 0;
  background-color: var(--eia-lgray);
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--eia-slate);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--eia-text-muted);
  margin: 0;
}

/* Features Section */
.features-section {
  padding: 60px 0;
  background-color: var(--eia-white);
}

.feature-box {
  padding: 30px 20px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--eia-blue), var(--eia-slate));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--eia-white);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--eia-slate);
  margin-bottom: 12px;
}

.feature-text {
  color: var(--eia-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta .btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
  
  .hero-cta .btn-lg {
    margin-bottom: 10px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .exams-section,
  .features-section {
    padding: 40px 0;
  }
  
  .exam-title {
    font-size: 1.25rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}