/* 1. Color palette based on Crab Island waters */
:root {
  --color-primary: #4ECFE3;    /* bright turquoise */
  --color-secondary: #0E6471;  /* deep teal */
  --color-accent: #FF6F61;     /* coral */
  --bg-overlay: rgba(0, 0, 0, 0.4); /* dark overlay for readability */
  --text-light: #FFFFFF;
  --text-dark: #333333;
}

/* 2. Global reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Jost', sans-serif;
  color: var(--text-light);
  background:
    /* overlay for readability */
    linear-gradient(var(--bg-overlay), var(--bg-overlay)),
    /* background image */
    url('/assets/images/crab-island-bg.jpg') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 3. Main container */
main {
  flex: 1;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 4. Headings */
h1, h2, h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

/* 5. Links & buttons */
a, button {
  text-decoration: none;
  cursor: pointer;
}

a {
  color: var(--color-primary);
}

button {
  background-color: var(--color-primary);
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: var(--color-secondary);
}

/* 6. Forms & inputs */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

input[type="file"] {
  margin-bottom: 1rem;
}

/* 7. Cards for feed */
.card {
  background-color: var(--text-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  text-align: center;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card h2 {
  margin: 1rem 0 0.5rem;
}

.card p {
  padding: 0 1rem 1rem;
  color: var(--text-dark);
}

/* 8. Navbar */
nav {
  background-color: var(--color-secondary);
  padding: 0.75rem 1rem;
}

/* in /public/assets/css/styles.css */

/* 8. Navbar */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;      /* ← add this */
  gap: 1.5rem;
}

nav a {
  color: var(--text-light);
  font-weight: 500;
  display: inline-flex;     /* ← add this */
  align-items: center;      /* ← and this */
}


/* 9. Responsive tweaks */
@media (max-width: 600px) {
  main {
    padding: 1rem;
    margin: 1rem;
  }

  button {
    width: 100%;
  }
}


/* Footer styles */
.footer {
  background-color: var(--color-secondary);
  color: var(--text-light);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

.footer a {
  color: var(--color-primary);
  text-decoration: underline;
}
