/* ============================================================
   uzivatel.rybizak.cz — styly podle Gemini JSON specifikace.
   Brand: #4b1e5a (primary purple), #669c35 (success green),
          #f9f7f5 (utility bar bg), #f2f2f2 (accent), #333333 (text)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --ryb-primary: #4b1e5a;
  --ryb-primary-dark: #3a1547;
  --ryb-primary-light: #f4eef7;
  --ryb-success: #669c35;
  --ryb-success-dark: #4f7a29;
  --ryb-success-light: #f1f7e8;
  --ryb-accent: #f2f2f2;
  --ryb-utility-bg: #f9f7f5;
  --ryb-utility-border: #eeeeee;
  --ryb-danger: #c0392b;
  --ryb-text: #333333;
  --ryb-muted: #707070;
  --ryb-border: #e0ddd6;
  --ryb-bg: #ffffff;
  --ryb-card-bg: #ffffff;
  --ryb-radius: 6px;
  --ryb-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --ryb-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.05);
  --ryb-shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.08);
  --ryb-max-width: 1200px;
  --ryb-font: "Open Sans", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.ryb-page {
  background: #faf9f7;
  color: var(--ryb-text);
  font-family: var(--ryb-font);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ryb-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--ryb-primary-dark); text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; color: var(--ryb-primary); margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
h4 { font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }

.ryb-container {
  max-width: var(--ryb-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER — TopUtilityBar
   ============================================================ */
.ryb-header { background: #fff; }

.ryb-utility-bar {
  background: var(--ryb-utility-bg);
  border-bottom: 1px solid var(--ryb-utility-border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ryb-utility-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 35px;
  gap: 16px;
}
.ryb-utility-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ryb-utility-list a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  color: var(--ryb-text);
  font-weight: 600;
}
.ryb-utility-list a:hover { color: var(--ryb-primary); text-decoration: none; }
.ryb-utility-list a[aria-current="page"] { color: var(--ryb-primary); }
.ryb-utility-list .ryb-utility-highlight { color: var(--ryb-success); }
.ryb-utility-list .ryb-utility-highlight:hover { color: var(--ryb-success-dark); }
.ryb-utility-list .ryb-i { font-size: 13px; line-height: 1; }
.ryb-utility-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ryb-text);
  white-space: nowrap;
}

/* ============================================================
   HEADER — MainHeader (logo + search + actions)
   ============================================================ */
.ryb-header-main {
  background: #fff;
  padding: 18px 0;
}
.ryb-header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.ryb-logo { flex-shrink: 0; display: block; line-height: 0; }
.ryb-logo img { display: block; height: 64px; width: auto; max-width: 240px; }

.ryb-search {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: stretch;
}
.ryb-search-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #cccccc;
  border-right: none;
  border-radius: 5px 0 0 5px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ryb-text);
  outline: none;
  transition: border-color 0.15s;
}
.ryb-search-input::placeholder { color: #aaa; }
.ryb-search-input:focus { border-color: var(--ryb-primary); }
.ryb-search-btn {
  height: 42px;
  padding: 0 20px;
  border: none;
  background: var(--ryb-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  transition: background 0.15s;
}
.ryb-search-btn:hover { background: var(--ryb-primary-dark); }

.ryb-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
}
.ryb-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--ryb-radius);
  text-decoration: none;
  color: var(--ryb-text);
  transition: background 0.15s;
}
.ryb-action:hover { background: var(--ryb-utility-bg); text-decoration: none; }
.ryb-action-icon {
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
}
.ryb-action-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 12px;
}
.ryb-action-title {
  font-weight: 700;
  color: var(--ryb-text);
  font-size: 13px;
}
.ryb-action-subtitle {
  font-size: 11px;
  color: var(--ryb-muted);
  text-transform: lowercase;
}
.ryb-action-subtitle a { color: var(--ryb-muted); text-decoration: underline; }
.ryb-action-subtitle a:hover { color: var(--ryb-primary); }

.ryb-action-cart {
  background: var(--ryb-primary);
  color: #fff;
  padding-left: 16px;
  padding-right: 18px;
}
.ryb-action-cart:hover { background: var(--ryb-primary-dark); color: #fff; }
.ryb-action-cart .ryb-action-title,
.ryb-action-cart .ryb-action-subtitle { color: #fff; }
.ryb-action-cart .ryb-action-subtitle { opacity: 0.8; }

/* ============================================================
   HEADER — MainNavigationMenu (purple bar)
   ============================================================ */
.ryb-mainnav {
  background: var(--ryb-primary);
  color: #fff;
}
.ryb-mainnav-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 45px;
}
.ryb-mainnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.ryb-mainnav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 45px;
  padding: 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  transition: background 0.15s;
}
.ryb-mainnav-list > li > a:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}
.ryb-mainnav-list .ryb-caret { font-size: 10px; opacity: 0.85; }

.ryb-mainnav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  padding: 12px 18px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   Content / cards
   ============================================================ */
.ryb-content { flex: 1; padding: 36px 0 56px; }
.ryb-card {
  background: var(--ryb-card-bg);
  border: 1px solid var(--ryb-border);
  border-radius: var(--ryb-radius);
  box-shadow: var(--ryb-shadow);
  padding: 36px;
  margin: 0 auto;
}
.ryb-card-narrow { max-width: 460px; }
.ryb-card-wide { max-width: 980px; }
.ryb-card-lead { margin: 0 0 24px; color: var(--ryb-muted); font-size: 15px; }
.ryb-card-meta { color: var(--ryb-muted); font-size: 13px; margin: 0 0 16px; }
.ryb-card-foot { margin: 24px 0 0; text-align: center; font-size: 13px; color: var(--ryb-muted); }
.ryb-page-head { border-bottom: 1px solid var(--ryb-border); padding-bottom: 18px; margin-bottom: 26px; }

/* ============================================================
   Forms
   ============================================================ */
.ryb-form { display: flex; flex-direction: column; gap: 18px; }
.ryb-form-row { flex-direction: row; justify-content: flex-end; gap: 12px; }
.ryb-field { display: flex; flex-direction: column; gap: 6px; }
.ryb-field-label { font-weight: 700; font-size: 13px; color: var(--ryb-text); }
.ryb-form input[type=email],
.ryb-form input[type=text],
.ryb-form input[type=tel] {
  padding: 12px 14px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ryb-form input:focus {
  outline: none;
  border-color: var(--ryb-primary);
  box-shadow: 0 0 0 3px rgba(75, 30, 90, 0.15);
}
.ryb-form input:disabled { background: #f5f4ef; cursor: not-allowed; }

/* 4-digit code */
.ryb-code-row { display: flex; gap: 12px; justify-content: center; }
.ryb-code-input {
  width: 60px; height: 68px;
  text-align: center;
  font-size: 30px; font-weight: 700;
  border: 2px solid var(--ryb-border);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ryb-code-input:focus {
  outline: none;
  border-color: var(--ryb-primary);
  box-shadow: 0 0 0 3px rgba(75, 30, 90, 0.15);
}

/* ============================================================
   Buttons
   ============================================================ */
.ryb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
  position: relative;
}
.ryb-btn:hover { text-decoration: none; }
.ryb-btn:active { transform: translateY(1px); }
.ryb-btn-primary { background: var(--ryb-primary); color: #fff; }
.ryb-btn-primary:hover { background: var(--ryb-primary-dark); color: #fff; }
.ryb-btn-success { background: var(--ryb-success); color: #fff; }
.ryb-btn-success:hover { background: var(--ryb-success-dark); color: #fff; }
.ryb-btn-ghost { background: transparent; color: var(--ryb-text); border-color: var(--ryb-border); }
.ryb-btn-ghost:hover { background: var(--ryb-utility-bg); color: var(--ryb-text); }
.ryb-btn-danger { background: var(--ryb-danger); color: #fff; }
.ryb-btn-danger:hover { background: #962b21; color: #fff; }
.ryb-btn-block { width: 100%; }
.ryb-btn-sm { padding: 7px 13px; font-size: 12px; }

.ryb-btn[disabled] { cursor: wait; opacity: 0.85; }
.ryb-btn.is-loading { padding-left: 38px; }
.ryb-btn.is-loading::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ryb-spin 0.7s linear infinite;
}
@keyframes ryb-spin { to { transform: rotate(360deg); } }

/* ============================================================
   States
   ============================================================ */
.ryb-error {
  background: #fde8e6;
  border: 1px solid #f3b9b3;
  color: var(--ryb-danger);
  padding: 11px 15px;
  border-radius: 5px;
  margin: 0;
  font-size: 14px;
}
.ryb-empty {
  text-align: center;
  padding: 50px 24px;
  color: var(--ryb-muted);
}
.ryb-modal-card { border-top: 4px solid var(--ryb-danger); }

/* ============================================================
   Footer
   ============================================================ */
.ryb-footer {
  background: var(--ryb-primary);
  color: #f3eeed;
  margin-top: 56px;
}
.ryb-footer a { color: #fff; opacity: 0.85; }
.ryb-footer a:hover { opacity: 1; text-decoration: underline; }
.ryb-footer-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 40px 0 28px;
}
.ryb-footer-col { font-size: 13.5px; line-height: 1.75; }
.ryb-footer-h {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  font-weight: 700;
}
.ryb-footer-p { margin: 0 0 12px; opacity: 0.9; }
.ryb-footer-contact a { display: inline-block; }
.ryb-footer-list { list-style: none; padding: 0; margin: 0; }
.ryb-footer-list li { margin: 0 0 6px; }
.ryb-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0;
  font-size: 12px;
  opacity: 0.7;
}

/* ============================================================
   Responsive (mobile breakpoint 768px per JSON spec)
   ============================================================ */
@media (max-width: 768px) {
  .ryb-utility-bar { display: none; }

  .ryb-header-main { padding: 14px 0; }
  .ryb-header-main-row {
    flex-wrap: wrap;
    gap: 14px;
  }
  .ryb-logo img { height: 48px; }
  .ryb-search {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }
  .ryb-actions { gap: 4px; }
  .ryb-action { padding: 6px 10px; }
  .ryb-action-icon { font-size: 22px; width: 26px; }
  .ryb-action-text { display: none; }
  .ryb-action-cart .ryb-action-text { display: flex; }
  .ryb-action-cart .ryb-action-subtitle { display: none; }

  .ryb-mainnav-toggle { display: inline-flex; }
  .ryb-mainnav-list {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    background: var(--ryb-primary-dark);
  }
  .ryb-mainnav-list-open { display: flex; }
  .ryb-mainnav-list > li { width: 100%; }
  .ryb-mainnav-list > li > a {
    width: 100%;
    height: auto;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .ryb-mainnav-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ryb-card { padding: 24px; }
  .ryb-footer-row { grid-template-columns: 1fr; gap: 8px; padding-top: 28px; }
  .ryb-footer-col { padding-bottom: 16px; }
  .ryb-code-input { width: 50px; height: 60px; font-size: 26px; }
  h1 { font-size: 22px; }
}
