/* public/css/style.css */

/* --- Basic Reset & Defaults --- */
* {
    box-sizing: border-box; /* Makes layout math and padding/border easier */
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333; /* Default text color */
    background-color: #f4f7f6; /* Light gray background for the page */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the body takes at least the full viewport height */
    font-size: 16px; /* Base font size */
}

/* --- General Layout & Typography --- */
.container {
    width: 90%;
    max-width: 1100px; /* Max width for content */
    margin: 0 auto; /* Centers the container */
    padding: 20px;
}

header {
    background-color: #2c3e50; /* Dark blue/gray */
    color: #ecf0f1; /* Light gray/white text */
    padding: 1.5rem 0;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5em; /* Larger heading for the main title */
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus { /* Added focus for accessibility */
    color: #1abc9c; /* Teal accent on hover/focus */
    text-decoration: none;
}

main {
    flex-grow: 1; /* Allows main content to expand and push footer down */
    padding: 25px 0; /* Padding above and below main content area */
    /* If you want a white background for the main content distinct from body: */
    /* background-color: #ffffff; */
    /* box-shadow: 0 0 10px rgba(0,0,0,0.05); */
}

/* If your main content isn't already wrapped in a .container in HTML,
   you might want to add padding directly or wrap sections in .container */
#main-content { /* Assuming your main content block has this ID from index.html */
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}


h1, h2, h3, h4, h5, h6 {
    color: #2c3e50; /* Dark blue/gray for headings */
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1.2rem;
    color: #555; /* Slightly lighter text for paragraphs */
}

a {
    color: #3498db; /* Standard blue for links */
    text-decoration: none;
}

a:hover,
a:focus {
    color: #2980b9; /* Darker blue on hover/focus */
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 2rem 0;
}

/* --- Specific Element Styles (from your index.html and js/main.js examples) --- */
button,
#interactiveButton,
#fetchHealthButton {
    background-color: #3498db; /* Blue */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:hover,
#interactiveButton:hover,
#fetchHealthButton:hover,
button:focus, /* Added focus for accessibility */
#interactiveButton:focus,
#fetchHealthButton:focus {
    background-color: #2980b9; /* Darker blue */
    outline: none; /* Remove default focus outline if custom styles are sufficient */
}

#dynamic-text {
    font-style: italic;
    padding: 15px;
    background-color: #eaf3f9; /* Light blue */
    border-left: 5px solid #3498db; /* Blue accent */
    margin-bottom: 1.5rem;
    border-radius: 0 5px 5px 0;
}

#click-message {
    padding: 15px;
    background-color: #d1ecf1; /* Light cyan */
    color: #0c5460; /* Dark cyan */
    border: 1px solid #bee5eb;
    border-radius: 5px;
    margin-top: 1.5rem;
    font-weight: bold;
}

#api-status-display {
    padding: 15px;
    border: 1px solid #ced4da; /* Light gray border */
    background-color: #f8f9fa; /* Very light gray background */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace; /* Monospace for API-like text */
}

/* --- Footer --- */
footer {
    background-color: #34495e; /* Slightly lighter dark blue/gray for footer */
    color: #bdc3c7; /* Lighter gray text for footer */
    text-align: center;
    padding: 1.5rem 0;
    width: 100%;
    margin-top: auto; /* Pushes footer to bottom if content is short */
    font-size: 0.9em;
}

footer p {
    margin: 0;
    color: #bdc3c7;
}

footer a {
    color: #ecf0f1; /* Light links in footer */
}

footer a:hover {
    color: #1abc9c; /* Teal accent on hover */
}


/* --- Utility Classes (Optional) --- */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Add more utility classes as your project grows */