/* Simple responsive styles to emulate a recipe site layout */

:root{
  --max-width:1100px;
  --accent:#e5483d;
  --muted:#666;
  --bg:#fafafa;
  --card-bg:#fff;
  --radius:10px;
  --gap:20px;
  --container-padding:16px;
  font-size:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:#111;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.4;
}

/* container */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 var(--container-padding);
}

/* header */
.site-header{
  background:#fff;
  box-shadow:0 1px 4px rgba(12,12,12,0.06);
  position:sticky;
  top:0;
  z-index:40;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height:72px;
}
.brand{display:flex;align-items:center;gap:12px}
.logo{
  font-weight:700;
  font-size:1.25rem;
  color:var(--accent);
  text-decoration:none;
}
.mobile-menu-btn{
  display:none;
  border:0;
  background:transparent;
  font-size:1.25rem;
  cursor:pointer;
}
.main-nav ul{
  list-style:none;
  margin:0;padding:0;display:flex;gap:12px;
}
.main-nav a{color:#222;text-decoration:none;padding:8px 6px;border-radius:6px}
.main-nav a:hover{background:#f3f3f3}

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 520px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  transition: all 0.3s ease;
}

.search-form input[type="search"] {
  flex: 1;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  color: #333;
  outline: none;
  background-color: #fff;
}

.search-form input[type="search"]::placeholder {
  color: #999;
}

.search-form .search-btn {
  background-color: #e5483d; /* Coral Red */
  border: none;
  padding: 0.90rem 1.0rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.search-form .search-btn:hover {
  background-color: #e5483d; /* darker coral */
}

.search-form .search-btn svg {
  pointer-events:all;
}

.search-form:focus-within {
  border-color: #e5483d;
  
}


/* hero */
.hero{
  padding:36px 0;
  background:linear-gradient(180deg, #fff 0%, #fff 60%, rgba(228,72,61,0.03) 100%);
}
.hero-inner{
  display:flex;
  gap:24px;
  align-items:center;
  justify-content:space-between;
  padding:20px 0;
}
.hero-text h1{margin:0 0 8px;font-size:2rem}
.hero-text p{color:var(--muted);margin:0 0 16px}
.btn-primary{
  background:var(--accent);
  color:#fff;
  padding:10px 16px;
  border-radius:8px;
  text-decoration:none;
  display:inline-block;
}
.hero-image .plate{
  width:300px;height:180px;border-radius:16px;background:linear-gradient(135deg,#ffd3c3,#fff1f0);
  box-shadow:0 8px 30px rgba(200,80,60,0.12);
}

/* filters */
.filters{padding:12px 0}
.filter-row{display:flex;gap:12px;align-items:center}
.filter-row select{
  padding:8px 10px;border-radius:8px;border:1px solid #e9e9e9;background:#fff;
}
.btn-link{background:transparent;border:0;color:var(--accent);cursor:pointer}

/* grid */
.recipes{padding:22px 0}
.section-title{margin:0 0 12px}
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--gap);
}

/* card */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(12,12,12,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(12,12,12,0.12);
}

.card-media img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 12px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.card-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-desc {
  margin: 0 0 12px;
  color: #333;
  font-size: 0.95rem;
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-sm {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-sm:hover {
  background-color: #ff6347; /* or any accent hover color */
}

.btn-icon {
  background: #f7f7f7;
  border: 0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-icon:hover {
  background-color: #e0e0e0;
}

/* Reviews specific styles */
.stars i {
  color: #fbbf24;
  width: 18px;
  height: 18px;
}

.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.btn-pag {
  background: #ff5c5c;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-pag:hover:not(:disabled) {
  background: #ff3b3b;
}

.btn-pag:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------- About Page ---------------- */
.about-page {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-page .hero {
  text-align: center;
  margin-bottom: 50px;
}

.about-page .hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
}

.about-page .hero h1 span {
  color: #e5483d;
}

.about-page .hero p {
  font-size: 1.1rem;
  color: #555;
  margin-top: 15px;
}

.about-section {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 35px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
  font-size: 1.6rem;
  color: #e5483d;
  margin-bottom: 15px;
}

.about-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-section li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #444;
  position: relative;
  padding-left: 20px;
}

.about-section li::before {
  content: "•";
  color: #e5483d;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.creator {
  text-align: center;
}

.creator strong {
  color: #e5483d;
  font-weight: 600;
}

/* ---------------- About Page up to here ---------------- */

/* --- Recipe Page Styling --- */
.recipe-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 2rem;
}

.recipe-image {
  flex: 1 1 300px;
  max-width: 350px;
  border-radius: 14px;
  object-fit: cover;
}

.recipe-details {
  flex: 2 1 400px;
}

.recipe-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.recipe-meta {
  color: #666;
  margin-bottom: 1rem;
}

.recipe-content {
  margin-top: 2rem;
}

.recipe-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.recipe-section h2 {
  color: #e5483d;
  margin-bottom: 1rem;
}

.styled-list li,
.styled-steps li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.btn-primary {
  background: #e5483d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #c73c34;
  transform: translateY(-1px);
}
/* --- Recipe Page Styling up to here --- */

/* --- Search Section --- */
.search-section {
  text-align: center;
  margin: 3rem 0 2rem;
}

.search-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.search-box {
  display: inline-flex;
  gap: 0.5rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.search-box input {
  border: none;
  outline: none;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  min-width: 250px;
}

.search-box button {
  background: #e5483d;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.search-box button:hover {
  background: #c73c34;
}

/* --- Recipe Cards --- */
.hidden {
  display: none;
}

/* --- Back button --- */
.back-btn {
  background: none;
  border: none;
  color: #e5483d;
  font-weight: bold;
  margin-bottom: 1rem;
  cursor: pointer;
  font-size: 1rem;
}

/* --- Recipe detail --- */
.recipe-detail {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 2rem;
}

.recipe-detail h2 {
  margin-bottom: 1rem;
}

.recipe-detail ul, .recipe-detail ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.recipe-detail li {
  margin-bottom: 0.4rem;
}

/* --- Recipe Cards up to here --- */

/* Footer Container */
.footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb; /* Light gray */
  padding: 2rem 1.5rem;
  font-family: sans-serif;
  font-size: 14px;
  color: #4b5563; /* gray-600 */
}

/* Inner Container */
.container {
  max-width: 1024px;
  margin: 0 auto;
}

/* Flex Layout */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 0;
  }
}

/* Branding Section */
.footer-brand h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827; /* gray-900 */
  margin: 0;
}

.footer-brand p {
  margin-top: 0.25rem;
  color: #6b7280; /* gray-500 */
}

/* Footer Links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #111827;
  text-decoration: underline;
}


/* responsiveness */
@media (max-width:1000px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .hero-inner{flex-direction:column;align-items:flex-start}
  .hero-image .plate{width:100%;height:160px}
}
@media (max-width:700px){
  .header-inner{height:64px}
  .main-nav{display:none}
  .mobile-menu-btn{display:inline-block}
  .grid{grid-template-columns:1fr}
  .search-form input{width:120px}
  .hero-text h1{font-size:1.4rem}
}
