/* === Generic site styles (shared across subjects) === */
:root {
    --bg: #fce873;
    --fg: #080d0e;
    --muted: #47525f;
    --brand: #24394c;
    --card: #fff;
    --shadow: 15px #080d0e;
}

html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: "Jost", "Liberation Sans", sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.55;
}
header {
    padding: 48px 16px 24px;
    text-align: center;
    background: linear-gradient(180deg, #121212, #222);
    color: #fff;
}
header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    letter-spacing: 0.3px;
}
header p {
    margin: 8px 0 0;
    color: #d0d0d0;
}

main {
    max-width: 1200px;
    margin: 24px auto 64px;
    padding: 0 16px;
}

h1,
h2,
h3,
h4 {
    font-family: "Braah One", serif;
}

/* Tabs */
.tabs-horizontal li {
    font-family: "VT323", sans-serif;
}
.ui-widget-content {
    background: transparent !important;
}

.tabs-horizontal {
    border: 1px dotted #121212;
    box-shadow: 10px 10px;
    top: 0px;
    margin: -15px;
    background: var(--card);
}
.tabs-horizontal.ui-widget-content {
    background: var(--card) !important;
    font-family: "Jost", "Liberation Sans", sans-serif !important;
}

.tabs {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.tabs.ui-tabs {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.tabs li {
    font-family: "VT323", sans-serif;
}

.tabs > .ui-tabs-nav {
    grid-column: 1;
    background: var(--card);
    border: 1px dotted #121212;
    box-shadow: 10px 10px;
    border-radius: 3px;
    padding: 0px;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 120px);
    overflow-y: clip;
    margin: 5px;
}
.tabs > .ui-tabs-nav li {
    width: 100%;
}
.tabs > .ui-tabs-nav li a {
    display: block;
    padding: 10px 12px;
    font-weight: 400;
}
.tabs .ui-tabs-panel {
    grid-column: 2;
    background: var(--card);
    padding: 20px;
    border-radius: 3px;
    border: none !important;
}
.tabs .ui-tabs-nav li.ui-tabs-active {
    background-color: var(--brand);
    color: white;
    border: var(--brand);
}

.intro {
    margin: 0 0 10px;
    color: var(--muted);
}
.intro-hero {
    margin: 0 0 10px;
    text-align: center;
    color: var(--muted);
}
.accordion {
    font-family: "Jost", "Liberation Sans", sans-serif !important;
}
.accordion .ui-state-active {
    background: var(--brand) !important;
    border: var(--brand);
}
.accordion h3 {
    font-size: 1.05rem;
    font-family: "VT323", sans-serif;
}
.accordion .section-note {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 8px;
}
.list-tight li {
    margin: 4px 0;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.8em;
    background: #eef2ff;
    color: var(--brand);
    margin-right: 6px;
}
.kbd {
    font-family:
        "VT323", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", monospace;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 1.2rem;
}
.circled {
    display: inline-block;
    width: 1em;
    height: 1em;
    font-size: 0.8em;
    line-height: 1.2em;
    text-align: center;
    border-radius: 50%;
    background: var(--muted);
    color: white;
    font-weight: normal;
    font-family: serif;
}

footer {
    text-align: center;
    color: var(--muted);
    margin: 32px 0;
    font-size: 0.9rem;
}

/* Info/example boxes */
.info-box,
.example-box {
    background-color: #f1f3f5;
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    font-family: "Jost", sans-serif;
    color: #333;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--brand);
}
.info-box h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand);
    margin-bottom: 10px;
}
.info-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: #555;
}
.info-box p a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px dotted var(--brand);
    transition: all 0.3s ease;
}
.info-box p a:hover {
    color: var(--brand);
    border-bottom: 1px solid var(--brand);
}

.example-box {
    border-left-color: #c9b188;
}
.example-box h2 {
    color: #c9b188;
}
.example-box p a {
    color: var(--brand);
    border-bottom: 1px dotted #0f62fe;
}
.example-box p a:hover {
    color: var(--brand);
    border-bottom: 1px solid #0053bf;
}

/* "Tech" shell-like callouts */
.tech {
    font-family: "Courier New", Courier, monospace;
    background-color: #1e1e1e;
    color: #c5c8c6;
    padding: 1em 1.2em 1em 30%;
    margin: 1em 0;
    border-left: 4px solid #8abeb7;
    line-height: 1.5;
    font-size: 0.9rem;
    box-shadow: inset 0 0 5px #00000088;
    border-radius: 3px;
    display: block;
    white-space: normal;
    word-break: break-word;
}
.tech-title {
    font-weight: bold;
    color: #00ff9f;
    font-size: 1.2rem;
    margin-bottom: 0.5em;
    text-shadow: 0 0 8px #00ff9f88;
    user-select: none;
    display: block;
}
.tech-body {
    white-space: normal;
    margin: 0;
    padding: 0;
}
.tech pre {
    color: #a8e4a1;
    font-size: 18px;
    background-color: #1d1d1d;
    padding: 12px;
    border-radius: 5px;
}

.tech-ul {
    list-style: none;
    padding-left: 0;
    margin-top: 16px;
}
.tech-ul li {
    color: #dcdcdc;
    line-height: 1.6;
}
.tech-ul .yellow {
    color: #e2e211;
}
.tech-ul .green {
    color: #a8e4a1;
}
.tech-ul li span.yellow,
.tech-ul li span.green {
    font-weight: bold;
}

.pointer-tip {
    cursor: pointer;
    text-shadow: 0 0 8px #00ff9f88;
}

/* Tooltip styling compatible with jQuery UI */
.ui-tooltip,
.arrow:after {
    background: #1a1a1a !important;
    border: 2px solid #00ff00;
}
.ui-tooltip {
    padding: 12px 20px;
    color: #00ff00;
    border-radius: 5px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}
.arrow {
    width: 70px;
    height: 16px;
    overflow: hidden;
    position: absolute;
    left: 50%;
    margin-left: -35px;
    bottom: -16px;
}
.arrow.top {
    top: -16px;
    bottom: auto;
}
.arrow.left {
    left: 20%;
}
.arrow:after {
    content: "";
    position: absolute;
    left: 20px;
    top: -20px;
    width: 25px;
    height: 25px;
    background-color: #00ff00;
    transform: rotate(45deg);
    box-shadow: 6px 5px 9px -9px black;
}
.arrow.top:after {
    bottom: -20px;
    top: auto;
}

/* Forms */
.student-message {
    max-width: 520px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 16px 0;
}
.student-message label {
    display: block;
    margin-top: 8px;
    font-weight: 600;
}
.student-message input,
.student-message textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin-top: 4px;
}
.student-message button {
    margin-top: 10px;
}
.student-message .status {
    font-family: "VT323", monospace, sans-serif !important;
    margin-top: 8px;
    font-size: 0.95em;
}
.student-message .status[data-status="ok"] {
    color: #0a7a3e;
}
.student-message .status[data-status="error"] {
    color: #b30606;
}

input,
textarea {
    background: var(--bg);
    border: 1px dotted var(--fg);
    border-radius: 3px;
}
label {
    font-family: "VT323", monospace, sans-serif !important;
}
button {
    background: var(--bg);
    border: 1px dotted var(--fg);
    border-radius: 3px;
    padding: 5px 15px;
    font-family: "VT323", monospace, sans-serif !important;
    font-size: 1em;
    margin: 5px auto;
}

/* Deadline styles */
.deadline.overdue {
    color: #b30606;
    font-weight: 600;
}

.word-count {
    margin-top: 6px;
    font-size: 0.95rem;
}
.word-count.ok {
    color: #0a7a3e; /* zelená */
    font-weight: 600;
}
.word-count.error {
    color: #b30606; /* červená */
    font-weight: 600;
}

.week-hero {
    width: 65%;
    margin: 15px auto;
    text-align: center;
}

.week-hero img {
    width: 95%;
}

.left-image {
    float: left;
    margin: 1em;
}

.right-image {
    float: right;
    margin: 1em;
}

.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; /* volitelně, aby nepřetékal */
    height: auto;
}

.container-images {
    display: flex;
    justify-content: space-between;
}

.video-wrapper {
    width: 65%;
    margin: 0.5em auto;
}

/* Responsive */
@media (max-width: 900px) {
    .tabs {
        display: block;
    }
    .tabs > .ui-tabs-nav {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .tech {
        white-space: normal;
    }
}
