/* Svět plyšáků — plyšový medový vzhled */
* { box-sizing: border-box; }

:root {
  --bg: #fdf3e3;
  --card: #fffdf8;
  --honey: #d98f24;
  --honey-dark: #a96a12;
  --brown: #5b4232;
  --line: #f0ddc0;
  --muz: #dbeafe;
  --zena: #fce7f3;
  --bez: #dcfce7;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--brown);
  font-family: 'Trebuchet MS', 'Comic Sans MS', Verdana, sans-serif;
  line-height: 1.5;
}

a { color: var(--honey-dark); }

.site-header {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 16px 24px;
  background: linear-gradient(180deg, #f7d9a4, #f3c87f);
  border-bottom: 4px solid var(--honey);
}
.logo { font-size: 1.7em; font-weight: bold; text-decoration: none; color: var(--brown); }
.tagline { font-style: italic; opacity: 0.75; }

.cols {
  display: grid;
  grid-template-columns: 220px 1fr 250px;
  gap: 16px;
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 12px;
  align-items: start;
}
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .col-right { order: 3; }
}

.box {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 3px 8px rgba(91, 66, 50, 0.08);
}
.box h2 { margin-top: 0; }

.flash {
  max-width: 1200px; margin: 12px auto 0; padding: 8px 16px;
  background: #e7f7d4; border: 2px solid #b3d98a; border-radius: 12px;
  text-align: center;
}
.error { background: #fde5e5; border: 2px solid #e8a3a3; border-radius: 10px; padding: 8px 12px; }
.empty { opacity: 0.65; font-style: italic; }
.hint { font-size: 0.85em; opacity: 0.7; }

/* podbarvení podle pohlaví */
.g-muz { background: var(--muz); }
.g-zena { background: var(--zena); }
.g-bez { background: var(--bez); }

/* levá lišta */
.login-box .not-logged {
  background: #fff; border: 2px dashed var(--line); border-radius: 10px;
  padding: 18px 8px; text-align: center; font-style: italic; margin-bottom: 10px;
}
.profile-box { text-align: center; }
.profile-photo {
  width: 120px; height: 120px; object-fit: cover;
  border-radius: 16px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.profile-name { display: block; font-size: 1.2em; margin: 6px 0; }
.profile-menu { display: flex; flex-direction: column; gap: 6px; text-align: left; margin: 10px 0; }
.linklike { background: none; border: none; color: var(--honey-dark); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; box-shadow: none; }
.linklike:hover { background: none; color: var(--brown); }

/* formuláře */
form label { display: block; margin: 8px 0; font-size: 0.95em; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; padding: 7px 9px; margin-top: 3px;
  border: 2px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--brown);
}
textarea { resize: vertical; }
button, .btn {
  display: inline-block;
  background: var(--honey); color: #fff; border: none;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: bold; text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  margin-top: 6px;
}
button:hover, .btn:hover { background: var(--honey-dark); }
label.check { display: flex; align-items: center; gap: 8px; }
label.check input { width: auto; }
.age-row { display: flex; gap: 8px; }
fieldset { border: 2px solid var(--line); border-radius: 12px; }
fieldset label.check { border-radius: 8px; padding: 4px 8px; margin: 4px 0; }

/* mřížka plyšáků */
.plushie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.plushie-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px; border-radius: 14px; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.7);
  transition: transform 0.1s;
}
.plushie-card:hover { transform: scale(1.04); }
.plushie-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 2px solid #fff; }
.plushie-name { font-weight: bold; }
.plushie-meta { font-size: 1.05em; }

/* Tedyho uvítání */
.tedy-welcome { display: flex; gap: 16px; align-items: flex-start; }
.tedy-photo { width: 110px; height: 110px; border-radius: 16px; flex-shrink: 0; background: var(--muz); padding: 6px; }
@media (max-width: 600px) { .tedy-welcome { flex-direction: column; } }

/* plyšákovo okénko */
.okenko { border-width: 3px; border-color: var(--honey); }
.okenko-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.okenko-photo { width: 130px; height: 130px; object-fit: cover; border-radius: 16px; border: 3px solid #fff; }
.okenko-name { font-size: 1.4em; font-weight: bold; }
.okenko-post { background: rgba(255,255,255,0.65); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.okenko-post header { font-size: 0.85em; opacity: 0.8; }

/* blog */
.blog-head { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.blog-photo { width: 150px; height: 150px; object-fit: cover; border-radius: 18px; border: 3px solid #fff; flex-shrink: 0; }
.blog-head h1 { margin: 0 0 6px; }
.edit-btn { position: absolute; top: 14px; right: 14px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0 0; }
.facts dt { font-weight: bold; opacity: 0.75; }
.facts dd { margin: 0; }
.dating-badge { font-size: 0.8em; }
.mood-badge {
  display: inline-block; background: rgba(255,255,255,0.8);
  border-radius: 999px; padding: 2px 12px; margin-top: 4px;
}

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: -14px; padding: 0 8px; position: relative; z-index: 1; }
.tabs a {
  background: var(--line); border-radius: 12px 12px 0 0; text-decoration: none;
  padding: 7px 14px; font-weight: bold; color: var(--brown);
}
.tabs a.tab-active { background: var(--card); border: 2px solid var(--line); border-bottom-color: var(--card); }

.blog-actions { display: flex; flex-direction: column; gap: 8px; }
.gesture-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gesture-row form { display: inline; }
.gesture-btn { font-size: 1.3em; padding: 4px 10px; background: #fff; border: 2px solid var(--line); border-radius: 12px; box-shadow: none; margin: 0; }
.gesture-btn:hover { background: var(--line); }
.rel-form { display: flex; gap: 8px; align-items: center; }
.rel-form select { width: auto; }

.post { border-top: 2px dashed var(--line); padding: 10px 0; }
.post header { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9em; }
.post header time { opacity: 0.65; }
.post-foto { max-width: 100%; max-height: 360px; border-radius: 12px; display: block; margin: 8px 0; }
.post-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.post-gallery .post-foto { max-height: 180px; margin: 0; }

/* kalendář */
.calendar { max-width: 360px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal-nav a { text-decoration: none; font-size: 1.3em; padding: 0 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-cell {
  text-align: center; padding: 5px 0; border-radius: 8px;
  text-decoration: none; color: var(--brown); background: #fff; border: 1px solid var(--line);
}
.cal-head { background: none; border: none; font-weight: bold; opacity: 0.7; }
.cal-empty { background: none; border: none; }
.cal-marked { background: var(--honey); color: #fff; font-weight: bold; }
.cal-selected { outline: 3px solid var(--brown); }

/* nálada */
.mood-tab { text-align: center; }
.mood-big { font-size: 4em; }
.mood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.mood-pick {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 2px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer;
}
.mood-pick input { position: absolute; opacity: 0; }
.mood-pick.mood-current, .mood-pick:has(input:checked) { border-color: var(--honey); background: #fdf0d7; }
.mood-emoji { font-size: 1.8em; }

/* vztahy */
.rel-list, .msg-list, .gesture-list { list-style: none; padding: 0; }
.rel-list li, .gesture-list li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.inline { display: inline; }
.inline button { padding: 2px 12px; margin: 0 0 0 8px; font-size: 0.85em; }
.msg-list li { margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: #f6eedd; }
.msg-list li.msg-out { background: #eef3fb; }
.msg-meta { display: block; font-size: 0.8em; opacity: 0.75; }
.compose select { height: auto; }

.photo-edit { display: flex; gap: 16px; align-items: center; border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.about-text { white-space: pre-wrap; }

/* patička s vlajkami */
.site-footer { text-align: center; padding: 18px; border-top: 4px solid var(--honey); background: #f7e3bd; }
.flags { font-size: 2em; display: flex; gap: 14px; justify-content: center; }
.flag { text-decoration: none; opacity: 0.55; transition: opacity 0.1s, transform 0.1s; }
.flag:hover { transform: scale(1.15); }
.flag-active { opacity: 1; }
.register-form { max-width: 480px; margin: 0 auto; }
.random-btn { width: 100%; text-align: center; }
