/* ==========================================================================
   wp.us.lt — vieninga responsive dizaino sistema (pc/tablet/mobile)
   ========================================================================== */

:root {
  --accent: #22d3ee;
  --accent-dark: #67e8f9;
  --accent-soft: rgba(34, 211, 238, 0.14);
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --bg: #0b1220;
  --surface: #111827;
  --surface-2: #17223a;
  --border: #223047;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --danger-border: rgba(248, 113, 113, 0.35);
  --warn-soft: rgba(250, 204, 21, 0.14);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 4px 12px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-color: var(--border) var(--bg);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------------- */
/* Puslapio karkasas                                                       */
/* ---------------------------------------------------------------------- */

.container {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .container {
    margin: 16px auto;
    min-height: 0;
    border-radius: var(--radius);
    overflow: hidden;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-header .brand img { height: 32px; width: auto; display: block; }

.div {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}

.start {
  display: block;
}

@media (min-width: 860px) {
  .start {
    display: grid;
    grid-template-columns: 230px 1fr;
    align-items: start;
  }
  .start:has(.fright) {
    grid-template-columns: 230px 1fr 210px;
  }
  .start > *:only-child { grid-column: 1 / -1; }
}

.fleft {
  display: block;
  padding: 10px 12px;
}

@media (max-width: 859px) {
  .fleft { border-bottom: 1px solid var(--border); }
}

@media (min-width: 860px) {
  .fleft { border-right: 1px solid var(--border); }
}

.fcenter {
  display: block;
  padding: 16px;
  min-width: 0;
}

@media (min-width: 860px) {
  .fcenter { border-right: 1px solid var(--border); }
}

.fright {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

@media (min-width: 860px) {
  .fright { border-top: none; }
}

.div1 {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.kaledos { max-width: 15%; }

/* ---------------------------------------------------------------------- */
/* Navigacija / nuorodų sąrašai                                           */
/* ---------------------------------------------------------------------- */

.l {
  background: transparent;
  list-style: none;
  display: block;
  margin: 0;
  text-align: left;
}

.kaire {
  text-align: left;
  word-wrap: break-word;
}

.links {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-left: none;
  border-radius: var(--radius-sm);
  padding: 11px 10px;
  margin: 2px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}

.links img { width: 20px; height: 20px; flex: none; opacity: .75; }

.nav-icon { width: 20px; height: 20px; flex: none; color: var(--text-muted); transition: color .15s ease; }
.links:hover .nav-icon { color: var(--accent); }

.links:hover,
.l a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-left: none;
  border-right: none;
  background-image: none;
}

.links:hover img { opacity: 1; }

.badge {
  margin-left: auto;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  min-width: 26px;
  text-align: center;
  flex: none;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* Turinio blokai                                                         */
/* ---------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 14px;
  transition: border-color .15s ease;
}

.card:hover { border-color: var(--text-muted); }

.linija {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

.info-box {
  max-width: 100%;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 12px;
}

h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0;
  padding: 0;
}

/* ---------------------------------------------------------------------- */
/* Žinutės / pokalbiai / knyga                                            */
/* ---------------------------------------------------------------------- */

.msg {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.sp { padding: 2px 6px; background: var(--accent-soft); border-radius: 4px; }
.spk { padding: 2px 6px; background: var(--warn-soft); border-radius: 4px; }

.border, .borderl {
  border: 1px solid var(--danger-border);
  text-align: center;
  padding: 10px 12px;
  color: var(--danger);
  background: var(--danger-soft);
  margin: 8px 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.d {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px;
  padding-left: 12px;
  font-size: 12px;
  display: block;
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------- */
/* Lentelės                                                                */
/* ---------------------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 10px 0;
  font-size: 14px;
  max-width: 100%;
}

th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 13px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------------------------------------------------------------- */
/* Nuorodos                                                                */
/* ---------------------------------------------------------------------- */

a:link, a:visited, a:active { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------------------------------------------------------------------- */
/* Formos                                                                  */
/* ---------------------------------------------------------------------- */

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 0 0 12px;
}

textarea, input[type='text'], input[type='password'], select, option {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 10px;
  color: var(--text);
  margin-top: 4px;
  border-radius: var(--radius-sm);
  max-width: 100%;
  width: 100%;
  font-size: 14px;
  font-family: inherit;
}

textarea:hover, input[type='text']:hover, input[type='password']:hover, select:hover {
  border-color: var(--accent);
}

textarea:focus, input[type='text']:focus, input[type='password']:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type='submit'], button {
  background: var(--accent);
  border: none;
  color: var(--bg);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  transition: background .15s ease, transform .1s ease;
}

input[type='submit']:hover, button:hover { background: var(--accent-dark); color: var(--bg); }
input[type='submit']:active, button:active { transform: scale(.97); }

/* ---------------------------------------------------------------------- */
/* Admin (pultelis) ženkliukas                                            */
/* ---------------------------------------------------------------------- */

.admin-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------------------------------------------------------------------- */
/* Kampo kaspinas                                                          */
/* ---------------------------------------------------------------------- */

.corner-ribbon {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 60;
  width: 300px;
  height: 300px;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.corner-ribbon span {
  position: absolute;
  right: -72px;
  bottom: 68px;
  display: block;
  width: 300px;
  padding: 8px 0;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
  pointer-events: auto;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .corner-ribbon { width: 210px; height: 210px; }
  .corner-ribbon span {
    width: 210px;
    right: -50px;
    bottom: 48px;
    font-size: 9px;
    padding: 6px 0;
  }
}
