/* ============================================
   GLOBAL.CSS - The Foundation
   ============================================
   Shared styles used across all pages:
   - CSS Reset
   - Body defaults
   - Header/Navbar
   - Footer
   - Shared buttons
   - Utility classes
   ============================================ */

/* CSS Variables */
:root {
  --color-primary: #2c3e50;
  --color-primary-light: #3498db;
  --color-text: #333;
  --color-text-light: #555;
  --color-text-muted: #888;
  --color-bg: #fdfdfd;
  --color-bg-light: #f4f4f4;
  --color-bg-accent: #e6f0ff;
  --color-white: #ffffff;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
}

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Defaults */
body {
  font-family: var(--font-family);
  background: linear-gradient(to bottom, var(--color-bg-accent), var(--color-bg));
  color: var(--color-text);
  line-height: 1.6;
}

/* Header / Navbar */
header {
  text-align: center;
  padding: 0.25rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
}

header h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  letter-spacing: 2px;
}

header h1 a {
  text-decoration: none;
  color: inherit;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--color-bg-light);
  font-size: 0.9rem;
}

footer .social {
  margin-top: 1rem;
}

footer .social a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: bold;
  transition: color var(--transition);
}

footer .social a:hover {
  color: var(--color-primary-light);
}

/* Shared Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: background var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--color-primary-light);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Mobile Base Styles */
@media (max-width: 600px) {
  header {
    padding: 0.15rem 1rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  header img {
    display: block;
    margin: 0 auto;
  }
  
  footer {
    padding: 1.5rem;
    font-size: 0.85rem;
  }
}
