/* 🌞 Světlý režim pro Food Blog */
body {
  margin: 0;
  background-color: #fffaf0; /* jemný béžový podklad */
  color: #222;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

header {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

footer {
  background-color: #fff;
  padding: 15px;
  text-align: center;
  margin-top: 40px;
  border-top: 2px solid #ddd;
  font-size: 0.9em;
  color: #666;
}

h1, h2 {
  text-align: center;
  color: #111;
  font-family: 'Merriweather', serif;
}
.recipe-link {
  display: block;
  width: 100%; /* Přes celou šířku rodiče */
  text-align: center;
  margin: 0 auto; /* Vycentrování */
  background-color: #ffcc70;
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.recipe-link:hover {
  background-color: #ffc04d;
}

/* Karta receptu – detail */
.recipe-card-detail {
  background-color: #fff;
  padding: 30px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 800px; 
}

.recipe-card-detail img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recipe-card-detail h2 {
  margin-top: 0;
  font-family: 'Merriweather', serif;
  color: #111;
}

/*************************/
.recipe-card {
  background-color: #fff;
  padding: 30px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 800px; 
}

.recipe-card img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recipe-card h2 {
  margin-top: 0;
  font-family: 'Merriweather', serif;
  color: #111;
}

.recipe-card p {
  background-color: #fefefe;
  margin: 5px 0;
  color: #333;
  font-size: 1em;
  white-space: pre-line;
}
/* 🌐 Public cards */
.recipe-card-public {
  border: 1px solid #ddd;
  padding: 10px;
  margin: 10px 0;
  background: #fff;
}

.recipe-card-public h2 {
  font-size: 1.2em;
}

.recipe-card-public img {
  max-width: 150px;
  height: auto;
}

/* 🔒 Admin cards */
.recipe-card-admin {
  border: 2px solid #ccc;
  padding: 15px;
  background: #f9f9f9;
}

.recipe-card-admin .actions {
  display: flex;
  gap: 10px;
}
.recipe-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

/* 📦 Kompaktní */
.recipe-card-compact {
  background: transparent;
  text-align: center;
  border: none;
  padding: 5px;
}

.recipe-card-compact img {
  max-width: 100px;
  margin: 5px auto;
}


.recipe-grid-public {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.random-recipe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  max-width: 200px;
  margin: 0 auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

/* admin sekce */
.admin-menu {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
}
.admin-menu a {
    text-decoration: none;
    color: #333;
}
.admin-menu a:hover {
    text-decoration: underline;
}
.info-flex-3 {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 15px;
}

.info-image {
  flex: 1 1 25%;
  max-width: 200px;
}

.info-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.info-center {
  flex: 1 1 15%;
  min-width: 50px;
}

.info-right {
  flex: 1 1 70%;
  min-width: 50px;
}

.info-right p {
  white-space: pre-line;
}

.recipe-admin-card h2 {
  margin-bottom: 15px;
  font-size: 1.6em;
}

.actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .info-flex-3 {
    flex-direction: column;
  }

  .info-image, .info-center, .info-right {
    max-width: 100%;
  }
}

.btn-sm {
  padding: 4px 8px;
  font-size: 0.9em;
}
.btn-sm.danger {
  background-color: #c0392b;
  color: white;
}

.admin-grid {
  display: flex;
  flex-direction: column;
  margin: 30px;
  gap: 5px;
}

.admin-grid h2 {
  text-align: center;
  margin-top: 0;
  color: #000;
}

/* Tlačítka */
.button, .btn {
  display: inline-block;
  background-color: #4caf50;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s ease-in-out;
}

.button:hover, .btn:hover {
  background-color: #45a047;
}

/* Přizpůsobená responsivita */
@media (max-width: 768px) {
  .recipe-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .recipe-list img {
    margin-bottom: 10px;
  }
}
.flash-msg {
  background: #ffe0e0;
  color: #900;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: inset 2px 2px 4px #e5bcbc, inset -2px -2px 4px #fff0f0;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination a {
  padding: 8px 12px;
  background-color: #ddd;
  color: #111;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.pagination a:hover {
  background-color: #ccc;
}

.pagination a.active {
  background-color: #4caf50;
  font-weight: bold;
  color: #fff;
}

.pagination .dots {
  padding: 8px 12px;
  color: #999;
}

.login-form {
  max-width: 300px;
  margin: 40px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #111;
}

.login-form label {
  font-weight: bold;
}

.login-form input {
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #e0e5ec;
  box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
}
.login-form input::placeholder {
  color: #888;
  opacity: 1;
}
.password-wrapper {
  position: relative;
}
.password-wrapper input {
   padding-right: 40px; /* prostor pro oko */
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
}

.toggle-password:hover {
  color: #000;
}
    
.login-form button {
  margin-top: 10px;
  padding: 12px;
  background: #e0e5ec;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 6px 6px 10px #c2c8d0, -6px -6px 10px #ffffff;
  transition: 0.3s;
}

.login-form button:hover {
  background: #d6dce4;
}

.dashboard-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin: 40px auto;
  max-width: 1000px;
}

.info-box {
  max-width: 600px;
  margin: 0;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border: 1px solid #ccc;
  color: #111;
}



.info-box h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  color: #000;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.info-box p {
  margin: 10px 0;
  font-size: 0.95em;
  background-color: #f5f5f5;
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
}

.info-box .ua-text {
  word-break: break-word;
  display: inline-block;
  margin-top: 5px;
  color: #333;
}

.recipe-widget-grid {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 👈 recepty uprostřed boxu */
  gap: 15px;
  padding: 10px 0;
}

.recipe-widget-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 150px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.recipe-widget-card:hover {
  transform: translateY(-5px);
}

.recipe-widget-card img {
  max-width: 100%;
  border-bottom: 1px solid #eee;
  border-radius: 10px 10px 0 0;
}
.recipe-widget-card a {
  text-decoration: none;   /* 🚫 zruší podtržení */
  display: block;
  text-align: center;      /* 📍 zarovná text do středu */
  color: #000000;          /* nebo si nastav vlastní barvu */
  font-weight: bold;
}

.recipe-widget-card a:hover {
  color: #ff6600;          /* zvýraznění po najetí */
}

.recipe-title {
  font-weight: bold;
  text-align: center;
  margin: 0;
  text-decoration: none;
}

@media (max-width: 768px) {
   .admin-grid {
    margin: 10px;
    gap: 10px;
  }
 }

@media (max-width: 500px) {
  .info-box {
    width: 100%;
    max-width: none;
  }
  .login-form {
    margin: 20px 10px;
    padding: 15px;
  }
}


/* detali recepru*/
.recipe-card-detail {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 20px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 900px;
  text-align: center;
}

.recipe-card-image img {
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid #ccc;
  margin-bottom: 20px;
}

.recipe-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.recipe-gallery img {
  width: 200px;
  height: auto;
  object-fit: contain;
  border: 2px solid #aaa;
  border-radius: 6px;
}

.recipe-card-info p,
.recipe-card-ingredients p,
.recipe-card-instructions p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  margin: 10px 0;
}

.recipe-card-ingredients,
.recipe-card-instructions {
  margin-top: 20px;
  text-align: left;
}
/*tlacitko pro tisk*/
.btn-print {
  background-color: #f0f0f0;
  border: 1px solid #999;
  padding: 8px 8px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.btn-print:hover {
  background-color: #ddd;
}

/* 📄 Tiskový mód */
@media print {
  body {
    background: white;
    color: black;
  }

  header, footer, nav, .btn-print, .recipe-link, .actions {
    display: none !important;
  }

  .recipe-card-detail {
    box-shadow: none;
    border: none;
    max-width: 100%;
    padding: 0;
  }

  img {
    max-width: 100% !important;
  }
}
