/* wingman.css - Base Stylesheet for wingman.tips */

/* -------------------- */
/* 🌈 COLOR VARIABLES */
/* -------------------- */
:root {
  --bg-main: #cae8ea;
  --accent-primary: #007c91;
  --accent-secondary: #ffc107;
  --text-main: #333333;
  --text-muted: #666666;
  --success: #4CAF50;
  --danger: #f44336;

  --font-header: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
}

/* -------------------- */
/* 📋 BASE LAYOUT */
/* -------------------- */
body {
  background-color: var(--bg-main);
  font-family: var(--font-body);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  color: var(--accent-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

/* -------------------- */
/* 🔘 BUTTONS */
/* -------------------- */
button, .btn {
  font-family: var(--font-header);
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: #005e6c;
}

.btn-secondary {
  background-color: var(--accent-secondary);
  color: black;
}

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

/* -------------------- */
/* 📝 FORMS */
/* -------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  margin-bottom: var(--space-md);
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

label {
  font-weight: bold;
  margin-bottom: var(--space-xs);
  display: block;
}

/* -------------------- */
/* ⚠️ ALERTS */
/* -------------------- */
.alert {
  padding: var(--space-sm);
  margin: var(--space-md) 0;
  border-radius: 4px;
  font-weight: 500;
}

.alert-success {
  background-color: #e8f5e9;
  color: var(--success);
}

.alert-danger {
  background-color: #ffebee;
  color: var(--danger);
}

/* -------------------- */
/* 📦 CARDS */
/* -------------------- */
.card {
  background: white;
  border-radius: 8px;
  padding: var(--space-md);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: var(--space-lg);
}

/* -------------------- */
/* 🤭 RESPONSIVENESS */
/* -------------------- */
@media (max-width: 600px) {
  .btn {
    width: 100%;
    margin-top: var(--space-sm);
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links, .nav-logout {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .nav-links a, .nav-logout a {
    margin: var(--space-xs) 0;
  }
  .welcome-text {
    margin-bottom: var(--space-xs);
  }
}

/* -------------------- */
/* 🔮 NAVIGATION */
/* -------------------- */
.navbar {
  background: white;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-primary);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-links a,
.nav-logout a {
  margin: 0 var(--space-sm);
  color: var(--accent-primary);
  font-weight: bold;
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.nav-links a:hover,
.nav-logout a:hover {
  background: var(--accent-secondary);
  color: black;
}

.nav-links a.active,
.nav-logout a.active {
  background-color: var(--accent-primary);
  color: white;
}

.welcome-text {
  margin-right: var(--space-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* -------------------- */
/* 📀 UTILITIES */
/* -------------------- */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.p-md { padding: var(--space-md); }

/* End of wingman.css */
