/*
 * Shared CSS Framework for GoAgatha, GoWalkWise, and GamesAfoot
 * This file contains common styling patterns used across all websites
 */

/* ===== FONT LOADING ===== */
@font-face {
  font-family: 'Timeburner';
  src: url('../assets/fonts/timeburner.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Timeburner';
  src: url('../assets/fonts/timeburnerbold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ===== BRAND COLORS ===== */
:root {
  /* Agatha App Colors */
  --agatha-seafoam-blue: #7FB3D3;
  --agatha-light-blue: #E3F2FD;
  
  /* WalkWise App Colors */
  --walkwise-blue: #4484CE;
  --walkwise-green: #3CB66A;
  
  /* Common Colors */
  --primary-blue: #007bff;
  --primary-green: #28a745;
  --primary-red: #dc3545;
  --primary-yellow: #ffc107;
  --primary-cyan: #17a2b8;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --gray: #6c757d;
  --dark-gray: #343a40;
  --black: #000000;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--light-gray);
}

/* ===== BRAND LOGOS ===== */
.brand-logo {
  font-family: 'Timeburner', sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
}

.brand-logo.agatha {
  color: var(--agatha-seafoam-blue);
}

.brand-logo.walkwise {
  color: var(--walkwise-blue);
}

.brand-logo.gamesafoot {
  color: var(--dark-gray);
}

/* ===== HEADER STYLES ===== */
.header-agatha {
  background: linear-gradient(135deg, var(--agatha-seafoam-blue) 0%, var(--agatha-light-blue) 100%);
  color: white;
}

.header-walkwise {
  background: linear-gradient(135deg, var(--walkwise-blue) 0%, var(--walkwise-green) 100%);
  color: white;
}

.header-gamesafoot {
  background: var(--white);
  color: var(--dark-gray);
  border-bottom: 2px solid var(--agatha-seafoam-blue);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: #555;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 4rem 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-header {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.card-title {
  color: var(--dark-gray);
  font-size: 1.5rem;
  font-weight: 600;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-gray);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-control.error {
  border-color: var(--primary-red);
}

.form-error {
  color: var(--primary-red);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--gray);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #545b62;
}

.btn-success {
  background-color: var(--primary-green);
  color: var(--white);
}

.btn-success:hover {
  background-color: #1e7e34;
}

.btn-danger {
  background-color: var(--primary-red);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===== ALERTS ===== */
.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-success {
  background-color: #d4edda;
  border-color: var(--primary-green);
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border-color: var(--primary-red);
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: var(--primary-yellow);
  color: #856404;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: var(--primary-cyan);
  color: #0c5460;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-blue);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
}

.footer-company {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--agatha-seafoam-blue);
}

.footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray);
}

.footer-section h4 {
  color: var(--agatha-seafoam-blue);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--agatha-seafoam-blue);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .row {
    flex-direction: column;
  }
  
  .col {
    margin-bottom: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .card {
    padding: 1.5rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
