/* 
 * BuzzBuzz Main Theme Stylesheet
 * Created: June 25, 2025
 */

/* =============================================
   CORE STYLES & VARIABLES - UPDATED
============================================= */
:root {
  --brand-yellow: #FFD600;
  --brand-yellow-hover: #FFDD00;
  --brand-bg-light: #FFF9F0;
  
  /* Standardized card backgrounds */
  --card-bg-primary: rgba(255, 243, 200, 0.85);
  --card-bg-secondary: rgba(255, 255, 255, 0.7);
  --card-bg-input: rgba(255, 255, 255, 0.7);
  --card-bg-form: rgba(255, 255, 255, 0.5);
  
  /* Consistent border colors */
  --card-border: rgba(255, 220, 150, 0.7);
  --input-border: rgba(0, 0, 0, 0.1);
  --input-border-focus: #FFCC00;
  
  /* Text colors */
  --text-dark: #222;
  --text-medium: #333;
  --text-light: #555;
  
  /* Shadows */
  --shadow-light: 0 4px 10px rgba(0,0,0,0.06);
  --shadow-medium: 0 5px 15px rgba(80, 50, 0, 0.08);
  --shadow-strong: 0 8px 32px rgba(0,0,0,0.1);
  
  /* Alert colors */
  --alert-success-bg: rgba(232, 245, 233, 0.8);
  --alert-success-text: #2E7D32;
  --alert-warning-bg: rgba(255, 243, 224, 0.8);
  --alert-warning-text: #E65100;
  --alert-danger-bg: rgba(255, 235, 238, 0.8);
  --alert-danger-text: #C62828;
  
  /* Standard blur amount */
  --blur-amount: 5px;
  
  /* Standard border radius */
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 20px;
}

/* =============================================
   BASE LAYOUTS
============================================= */
/* Universal box sizing for consistent layouts */
*, *::before, *::after {
  box-sizing: border-box;
}
/* Base styles for all pages */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
}

/* Welcome page layout */
.welcome-layout {
  background: url('/images/Hive-Background.png') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  position: relative;
  padding: 1rem;
}

/* Dashboard/interior page layout */
.dashboard-layout {
  background: var(--brand-bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Backgrounds for dashboard style */
.bg-hero {
  position: fixed;
  inset: 0;
  background: url('/images/Hive-Background.png') center/cover no-repeat;
  filter: blur(1px) brightness(0.6);
  z-index: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 245, 235, 0.9); /* Increased opacity for better text contrast */
  z-index: 1;
}

/* =============================================
   CONTAINERS
============================================= */
.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 800px;
  gap: 2rem;
  position: relative;
  z-index: 5; /* Ensure content is above background */
  margin-top: 2rem;
}

main {
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* =============================================
   HEADER & NAVIGATION
============================================= */
/* Header for dashboard style pages */
header {
  position: relative;
  z-index: 10;
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-light);
  border-bottom: 2px solid var(--brand-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Logo styles - vertical for welcome, horizontal for dashboard */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  padding: 1rem;
  margin-bottom: 1rem;
  max-width: 80%;
}

.logo img {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  max-width: 100%;
}

.logo span {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Horizontal logo for dashboard */
.horizontal-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-decoration: none;
}

.horizontal-logo img {
  width: 40px;
  height: auto;
}

.horizontal-logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.tagline {
  color: rgba(0, 0, 0, 0.7);
  font-style: italic;
  font-size: 1.3rem;
  margin: 0.2rem 0 0 0;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
  mix-blend-mode: difference;
}

/* Navigation */
nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.menu-toggle .hamburger {
  transition: transform 0.3s ease;
}

.menu-toggle.open .hamburger {
  transform: rotate(90deg);
}

.menu-toggle .menu-label {
  font-size: 1rem;
  margin-right: 0.25rem;
}


nav a {
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  overflow: hidden;
}

/* Reset and standardize the underline animation */
nav a:after {
  content: '' !important;
  position: absolute !important;
  width: 0 !important;
  height: 2px !important;
  bottom: 0 !important;
  left: 0 !important; 
  background-color: #FFCC00 !important;
  transition: width 0.3s ease !important;
  transform: none !important; /* Reset any transform animations */
}

/* Ensure consistent hover behavior */
nav a:hover:after {
  width: 100% !important;
  transform: none !important;
}

/* Keep active styling but add underline */
nav a.active {
  background-color: rgba(255, 214, 0, 0.15);
  font-weight: 700;
}

nav a.active:after {
  width: 80%; /* Slightly shorter than hover */
  background-color: #FFCC00;
}

.logout-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: 600;
  background: var(--brand-yellow);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.login-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: 600;
  background: var(--brand-yellow);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.logout-btn:hover {
  background: var(--brand-yellow-hover);
}

.login-btn:hover {
  background: var(--brand-yellow-hover);
}

/* =============================================
   CARDS & CONTENT SECTIONS - UNIFIED
============================================= */
/* Core card style all pages will use */
.card-base {
  background: var(--card-bg-primary);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-strong);
  padding: 2rem;
  border: 1px solid var(--card-border);
  position: relative;
  z-index: 5;
  backdrop-filter: blur(var(--blur-amount));
  transition: all 0.3s ease;
}

/* Dashboard card */
.dashboard-card {
  position: relative;
  z-index: 10;
  max-width: 650px;
  margin: 2rem auto;
  background: var(--card-bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-strong);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 90%;
  backdrop-filter: blur(var(--blur-amount));
}

.dashboard-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* Form styling */
.forward-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--card-bg-form);
  border-radius: var(--radius-medium);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--card-border);
}

/* =============================================
   TYPOGRAPHY
============================================= */
.main-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0.5rem 0 1rem 0;
  line-height: 1.1;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.desc {
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 470px;
  margin: 0 auto;
}

.arrow-down {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0.5rem 0;
}

/* =============================================
   INFO DISPLAYS
============================================= */
.info-group {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--text-medium);
}

.info-label {
  font-weight: 600;
  color: var(--text-dark);
}

.info-value {
  color: var(--text-dark);
  text-align: right;
}

/* =============================================
   ALERTS & NOTIFICATIONS
============================================= */
.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-small);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(var(--blur-amount));
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-left: 4px solid transparent;
}

.alert-success {
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
  border-left-color: #2E7D32;
}

.alert-warning {
  background: var(--alert-warning-bg);
  color: var(--alert-warning-text);
  border-left-color: #E65100;
}

.alert-danger {
  background: var(--alert-danger-bg);
  color: var(--alert-danger-text);
  border-left-color: #C62828;
}

/* Add these plan-specific alert styles */
.alert-plan-none {
  background: #FFF0F0;
  color: #991B1B;
}

.alert-plan-share {
  background: #E5F3FF;
  color: #1C4E80;
}

.alert-plan-single {
  background: #F2F2F2;
  color: #333;
}

.alert-plan-worker {
  background: #E8F5E9;
  color: #2E7D32;
}

.alert-hardware {
  background: #FFF7E5;
  color: #AA6C00;
}

/* =============================================
   BUTTONS & INTERACTIVE ELEMENTS - UPDATED
============================================= */
.btn, .btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

/* Primary button style - used inside cards */
.btn-primary, .btn-inline {
  background: var(--brand-yellow);
  color: var(--text-dark);
  border: none;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover, .btn-inline:hover {
  background: var(--brand-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Secondary button style - used outside cards */
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--text-medium);
  border: 2px solid var(--brand-yellow);
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 214, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Button inline styles */
.btn-inline {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 0.5rem auto;
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--text-dark);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Google sign-in button styling */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.85);
  color: #757575;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: var(--shadow-medium);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  margin: 1.5rem auto;
  max-width: 250px;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.google-btn:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.google-icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
}

/* Phone input container styling */
.phone-input-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0.5rem auto;
  display: flex;
  align-items: center;
}

/* Verification styling */
.verification-container {
  background: var(--card-bg-secondary);
  border-radius: var(--radius-small);
  border: 1px solid var(--input-border-focus);
  padding: 1rem;
  margin: 0.5rem auto;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.verification-code-container {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
}

.verification-code {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-small);
  font-size: 1rem;
  background: var(--card-bg-input);
}

/* Button styling */
.btn-inline {
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-small);
  font-size: 0.95rem;
  margin: 0.8rem auto;
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--text-medium);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-inline:hover {
  background: var(--brand-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.verify-btn {
  background: var(--brand-yellow);
  color: var(--text-medium);
  border: none;
  border-radius: var(--radius-small);
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

.verify-btn:hover {
  background: var(--brand-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Add number button */
.add-number-btn {
  background: var(--card-bg-secondary);
  border: 1px dashed var(--input-border-focus);
  color: var(--text-light);
  border-radius: var(--radius-small);
  padding: 0.8rem;
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin: 1rem auto;
  font-size: 0.95rem;
}

.add-number-btn:hover {
  background: rgba(255, 250, 230, 0.8);
  color: var(--text-medium);
}

/* =============================================
   WELCOME & AUTH PAGES STYLING
============================================= */
/* Unified auth/welcome card style */
.auth-card {
  background: rgba(255, 243, 200, 0.85);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 2rem;
  border: 1px solid rgba(255, 220, 150, 0.7);
  position: relative;
  z-index: 5;
  backdrop-filter: blur(5px);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 450px;
}

/* Shared info text style on auth pages */
.info-text {
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Unified mascot positioning */
.mascot-container {
  position: relative;
  width: 100%;
}

.mascot-bee {
  position: absolute;
  left: -80px;
  width: 140px;
  z-index: 2;
  max-width: 140px;
  height: auto;
}

/* Auth page layout */
.login-layout, .signup-layout, .reset-layout, .forgot-layout, .logout-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: url('/images/Hive-Background.png') center/cover no-repeat;
  padding: 2rem 1rem;
}

.content-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  width: 100%;
}

.card-links {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #333;
  text-align: center;
}

.card-links a {
  text-decoration: underline;
  color: #333;
}

/* Footer styling for all pages */
footer {
  text-align: center;
  padding: 0.8rem 1.5rem;
  margin-top: 2rem;
  background-color: rgba(255, 243, 200, 0.7);
  border-top: 1px solid rgba(255, 214, 0, 0.3);
  border-radius: 12px 12px 0 0;
  backdrop-filter: blur(5px);
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  position: relative;
  z-index: 5;
  left: 50%;
  transform: translateX(-50%);
}

footer a {
  color: #333;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

footer a:hover {
  color: #000;
}

footer a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #FFCC00;
  transition: width 0.3s;
}

footer a:hover:after {
  width: 100%;
}

.copyright {
  margin-left: 5px;
}

/* Media queries for responsive designs across all pages */
@media (max-width: 768px) {
  .mascot-bee {
    width: 100px;
    left: -50px;
  }
  
  .auth-card {
    padding: 1.5rem;
  }
  
  .content-section {
    flex-direction: column;
    gap: 1rem;
  }
  
  .service-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mascot-bee {
    position: static;
    margin-bottom: 1rem;
    width: 100px;
  }
  
  .content-section {
    text-align: center;
  }
  
  .main-title {
    font-size: 1.8rem;
  }
}

/* Force consistent navigation styling across ALL views */
:root nav a {
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  text-decoration: none !important;
  position: relative !important;
  padding: 0.5rem 0.8rem !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  overflow: hidden !important;
}

:root nav a:after {
  content: '' !important;
  position: absolute !important;
  width: 0 !important;
  height: 2px !important;
  bottom: 0 !important;
  left: 0 !important; 
  background-color: #FFCC00 !important;
  transition: width 0.3s ease !important;
  transform: none !important;
}

:root nav a:hover:after {
  width: 100% !important;
}

:root nav a.active {
  background-color: rgba(255, 214, 0, 0.15) !important;
  font-weight: 700 !important;
}

:root nav a.active:after {
  width: 80% !important;
  background-color: #FFCC00 !important;
}
/* Mobile navigation improvements */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-self: flex-end;
    margin-bottom: 0.5rem;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  header nav {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  }

  header nav.open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  }
}
/* Additional mobile layout fixes */
@media (max-width: 600px) {
  .main-container {
    width: 95%;
    padding: 0 0.5rem;
  }

  .auth-card,
  .dashboard-card,
  .card-base {
    padding: 1rem;
  }


  .input-group {
    flex-wrap: wrap;
  }

  .verify-btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  footer {
    width: 100%;
  }
}
