/*
  COASTAL FIELD GUIDE THEME
  Inspired by asknature.org with a marine science aesthetic.
  Focus: Clean layout, sandy/seafoam/ocean colors, and professional typography.
*/

/* --- 1. Color Palette & Core Body --- */

/* We use CSS variables to easily manage the theme's colors. */
:root {
    --sand-bg: #f9f6f2; /* A very light, warm sandy beige */
    --deep-ocean-blue: #0a2f44; /* For headers and important text */
    --seafoam-green: #7eacac; /* For accents and interactive elements */
    --coral-accent: #e87a5d; /* A pop of color for buttons or highlights */
    --text-color: #3d3d3d; /* A soft, dark gray for body text */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--sand-bg);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

/* --- 2. Header & Navigation --- */

#navbar {
    background-color: var(--deep-ocean-blue);
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#navbar #logo {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

#navbar .link a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

#navbar .link a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}


/* --- 3. Typography & Content --- */

/* The main content container */
main {
    max-width: 1100px;
    margin: 40px auto; /* Adds space from the header and centers the content */
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: var(--deep-ocean-blue);
    font-weight: 700;
}

h2 {
    border-bottom: 2px solid var(--seafoam-green);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* --- 4. Card Layout (Inspired by AskNature) --- */

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Ensures content stays within the rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Ensures image covers the area without distortion */
    background-color: var(--seafoam-green); /* Placeholder color */
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-top: 0;
    color: var(--deep-ocean-blue);
}


/* --- 5. UI Elements --- */

button, .button-link {
    background-color: var(--seafoam-green);
    color: white;
    border: none;
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover, .button-link:hover {
    background-color: #669595; /* A darker seafoam */
    transform: scale(1.05);
}

/* --- 6. Footer --- */

#footer {
    background-color: #e5e5e5;
    color: #555;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    font-size: 0.9rem;
}
