/*!
 * feikas.lt - Joomla core markup compatibility (asset: template.feikas.compat)
 * Joomla's own layouts output Bootstrap-style classes. This template does not ship Bootstrap,
 * so the commonly used ones are restyled here for the dark cyber theme.
 */

/* ------------------------------------------------------------ Article / prose */
.feikas-prose {
  color: #C9D1D9;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.feikas-prose :is(h1, h2, h3, h4, h5, h6) {
  margin: 1.6em 0 .6em;
  color: #E6EDF3;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-weight: 700;
  line-height: 1.25;
}
.feikas-prose > :first-child { margin-top: 0; }
.feikas-prose h1 { font-size: 2rem; }
.feikas-prose h2 { font-size: 1.5rem; }
.feikas-prose h3 { font-size: 1.2rem; }
.feikas-prose h4 { font-size: 1.05rem; }
.feikas-prose p,
.feikas-prose ul,
.feikas-prose ol,
.feikas-prose blockquote,
.feikas-prose pre,
.feikas-prose table { margin: 0 0 1.15em; }
.feikas-prose :is(ul, ol) { padding-left: 1.4em; }
.feikas-prose ul { list-style: disc; }
.feikas-prose ol { list-style: decimal; }
.feikas-prose li::marker { color: #00FF66; }
.feikas-prose a:not(.btn):not(.feikas-btn):not(.page-link) {
  color: #00FF66;
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 102, .35);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s, color .15s;
}
.feikas-prose a:not(.btn):not(.feikas-btn):not(.page-link):hover {
  color: #7DFFB0;
  text-decoration-color: currentColor;
}
.feikas-prose blockquote {
  padding: .8rem 1.1rem;
  border-left: 3px solid #FF3333;
  background: rgba(255, 51, 51, .06);
  color: #E6EDF3;
}
.feikas-prose :is(code, kbd, samp) {
  padding: .1em .35em;
  border-radius: .25rem;
  background: #161B22;
  color: #7DFFB0;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .9em;
}
.feikas-prose pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid #30363D;
  border-radius: .5rem;
  background: #0A0E13;
}
.feikas-prose pre code { padding: 0; background: none; }
.feikas-prose hr { border: 0; border-top: 1px solid #30363D; margin: 2em 0; }
.feikas-prose img,
.feikas-prose video { max-width: 100%; height: auto; border-radius: .5rem; }
.feikas-prose figure { margin: 0 0 1.15em; }
.feikas-prose figcaption { color: #8B949E; font-size: .85rem; }

.feikas-prose :is(.page-header, .com-content-article__header) h1,
.feikas-prose :is(.page-header, .com-content-article__header) h2 { margin-top: 0; }
.feikas-prose .article-info,
.feikas-prose .com-content-article__info {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  color: #8B949E;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .75rem;
  letter-spacing: .08em;
}
.feikas-prose .article-info dd { display: inline-block; margin: 0 1rem .25rem 0; }

/* ------------------------------------------------------------ Tables */
.feikas-prose table,
.table { width: 100%; border-collapse: collapse; color: inherit; }
.feikas-prose :is(th, td),
.table :is(th, td) { padding: .6rem .8rem; border: 1px solid #30363D; text-align: left; vertical-align: top; }
.feikas-prose th,
.table th { background: #161B22; color: #E6EDF3; font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.table-striped > tbody > tr:nth-child(odd) > * { background: rgba(255, 255, 255, .02); }

/* ------------------------------------------------------------ Forms */
.form-control,
.form-select,
.feikas-prose :is(input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], input[type="tel"], textarea, select) {
  display: block;
  width: 100%;
  min-height: 2.6rem;
  padding: .55rem .85rem;
  border: 1px solid #30363D;
  border-radius: .5rem;
  background: #0D1117;
  color: #E6EDF3;
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus,
.form-select:focus,
.feikas-prose :is(input, textarea, select):focus {
  border-color: #00FF66;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 102, .18);
}
.form-control::placeholder { color: #6E7681; }
.form-control:disabled,
.form-control[readonly] { opacity: .65; }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check-input { accent-color: #00FF66; }
.control-group { margin-bottom: 1rem; }
.control-label label,
.form-label,
label { color: #C9D1D9; font-size: .9rem; }
.form-text,
.field-description { color: #8B949E; font-size: .8rem; }
.invalid,
.is-invalid { border-color: #FF3333 !important; }
.input-group { display: flex; align-items: stretch; width: 100%; }
.input-group > .form-control { flex: 1 1 auto; min-width: 0; border-radius: .5rem 0 0 .5rem; }
.input-group > .btn { border-radius: 0 .5rem .5rem 0; }
fieldset { margin: 0 0 1.2rem; padding: 0; border: 0; }
legend { margin-bottom: .6rem; color: #E6EDF3; font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-weight: 700; }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border: 1px solid #30363D;
  border-radius: .5rem;
  background: #161B22;
  color: #E6EDF3;
  font: 700 .8rem/1.2 ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: #00FF66; color: #00FF66; }
.btn-sm { padding: .3rem .7rem; font-size: .7rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: .95rem; }
.btn-primary,
.btn-success { border-color: #00FF66; background: rgba(0, 255, 102, .1); color: #00FF66; }
.btn-primary:hover,
.btn-success:hover { background: #00FF66; color: #0D1117; box-shadow: 0 0 20px -4px #00FF66; }
.btn-danger { border-color: #FF3333; background: rgba(255, 51, 51, .1); color: #FF3333; }
.btn-danger:hover { background: #FF3333; color: #0D1117; box-shadow: 0 0 20px -4px #FF3333; }
.btn-link { border-color: transparent; background: transparent; }
.btn:disabled,
.btn.disabled { opacity: .5; pointer-events: none; }
.btn-info { border-color: #30363D; background: #161B22; color: #C9D1D9; }

/* ------------------------------------------------------------ Alerts, badges, cards, lists */
.alert {
  margin: 0 0 1rem;
  padding: .85rem 1.1rem;
  border: 1px solid #30363D;
  border-left-width: 4px;
  border-radius: .5rem;
  background: #161B22;
  color: #E6EDF3;
}
.alert-danger,
.alert-error { border-color: #FF3333; background: rgba(255, 51, 51, .08); }
.alert-success { border-color: #00FF66; background: rgba(0, 255, 102, .08); }
.alert-warning { border-color: #F0B72F; background: rgba(240, 183, 47, .08); }
.alert-info { border-color: #4DA3FF; background: rgba(77, 163, 255, .08); }

.badge {
  display: inline-block;
  padding: .2em .55em;
  border-radius: .25rem;
  background: #30363D;
  color: #E6EDF3;
  font: 700 .7rem/1 ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  letter-spacing: .08em;
}

.card { border: 1px solid #30363D; border-radius: .75rem; background: #161B22; }
.card-header { padding: .8rem 1.1rem; border-bottom: 1px solid #30363D; }
.card-body { padding: 1.1rem; }
.card-title { margin: 0 0 .5rem; color: #E6EDF3; }

.list-unstyled,
.list-inline { margin: 0; padding: 0; list-style: none; }
.list-inline-item { display: inline-block; margin-right: .5rem; }
.list-group { margin: 0; padding: 0; list-style: none; }
.list-group-item { padding: .6rem .9rem; border: 1px solid #30363D; background: #161B22; }
.list-group-item + .list-group-item { border-top: 0; }
.nav { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; gap: .25rem; }

.breadcrumb,
.mod-breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; padding: 0; list-style: none; color: #8B949E; font: 500 .75rem/1.4 ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; }
.mod-breadcrumbs a { color: #00FF66; }
.mod-breadcrumbs__divider { display: none; }
.mod-breadcrumbs__item + .mod-breadcrumbs__item::before { content: "/"; margin-right: .4rem; color: #30363D; }

/* ------------------------------------------------------------ Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.page-link {
  display: block;
  padding: .4rem .8rem;
  border: 1px solid #30363D;
  border-radius: .375rem;
  background: #161B22;
  color: #C9D1D9;
  font: 600 .8rem/1.2 ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  text-decoration: none;
}
.page-link:hover { border-color: #00FF66; color: #00FF66; }
.page-item.active .page-link { border-color: #00FF66; background: rgba(0, 255, 102, .12); color: #00FF66; }
.page-item.disabled .page-link { opacity: .45; pointer-events: none; }

/* ------------------------------------------------------------ Bootstrap utility subset used by core layouts */
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-start { text-align: left !important; }
.float-start { float: left !important; }
.float-end { float: right !important; }
.clearfix::after { content: ""; display: block; clear: both; }
.w-100 { width: 100% !important; }
.small,
small { font-size: .85em; }
.text-muted { color: #8B949E !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.me-2 { margin-right: .5rem !important; }

/* Joomla icon font helper (fontawesome asset) */
[class^="icon-"],
[class*=" icon-"] { display: inline-block; }

/* Joomla system messages (joomla-alert web component) */
joomla-alert { margin-bottom: 1rem; }
