/* Reset some defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and fonts */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Headings */
h1, h2, h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 700;
}

h2 {
  border-bottom: 3px solid #3498db;
  padding-bottom: 5px;
  margin-bottom: 25px;
}

/* Forms */
form {
  background: white;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1.8px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #3498db;
  outline: none;
}

button {
  background: #3498db;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #2980b9;
}

/* Recipe cards */
.recipe-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}

.recipe-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.recipe-card h3 {
  margin-bottom: 12px;
  color: #2c3e50;
}

.recipe-card p {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* Links */
a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation and footer */
nav, footer {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: #777;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  button, input[type="text"], input[type="email"], input[type="password"] {
    font-size: 1rem;
  }
}
