/* Variables and Webfont Definitions */
:root {
  --max-width: 1100px;
  --bg-page: #f4f4f4;
  --bg-content: #fff;
  --text-color: #333;
  --shadow-default: 0 0 8px rgba(0,0,0,0.05);
  --shadow-header: 0 0px 0px rgba(0,0,0,0);
  --gray-muted: #666;
  --gray-dark: #333;
  --color-success-bg: #d4edda;
  --color-success-text: #155724;
  --color-success-border: #c3e6cb;
  --color-error-bg: #f8d7da;
  --color-error-text: #721c24;
  --color-error-border: #f5c6cb;
  --daily-color: #007BFF;
}

/* ————————————————————————————
   Webfont N27
   ————————————————————————————*/
@font-face {
  font-family: 'N27';
  src: url('font/n27-thin-webfont.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'N27';
  src: url('font/n27-extralight-webfont.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'N27';
  src: url('font/n27-light-webfont.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'N27';
  src: url('font/n27-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'N27';
  src: url('font/n27-medium-webfont.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'N27';
  src: url('font/n27-bold-webfont.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: 'N27'; src: url('font/n27-thinitalic-webfont.woff2') format('woff2'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'N27'; src: url('font/n27-extralightitalic-webfont.woff2') format('woff2'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'N27'; src: url('font/n27-lightitalic-webfont.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'N27'; src: url('font/n27-regularitalic-webfont.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'N27'; src: url('font/n27-mediumitalic-webfont.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'N27'; src: url('font/n27-bolditalic-webfont.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'N27', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-color);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s;
}
a:hover {
  color: var(--daily-color);
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 2rem auto;
  background: var(--bg-content);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-default);
}

/* Reset internal header styling inside container */
.container > header {
  width: auto;
  margin: 0;
  box-shadow: none;
}

/* Header and Navigation */
.header {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}
.main-nav {
  margin-bottom: 0.5rem;
  display: flex;
}
.main-nav a {
  margin-right: 1rem;
  color: var(--daily-color);
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a.active {
  text-decoration: none;
  color: var(--daily-color);
}

/* Playlist list */
.playlist-list {
  list-style: none;
  padding: 0;
}
.playlist-list li {
  margin: 0.5rem 0;
}
.playlist-list a {
  color: var(--daily-color);
}
.playlist-list a:hover {
  text-decoration: underline;
}

/* Video grid: items stacked vertically */
.video-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Video item: two columns, 55% video, 45% description */
.video-item {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 1rem;
  background: var(--bg-content);
  padding: 0.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-default);
}
.video-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}
.video-desc {
  font-size: 0.9rem;
}

/* Admin forms */
form {
  margin-bottom: 1.5rem;
}
form input[type="text"],
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid var(--gray-muted);
  border-radius: 4px;
}
form button {
  padding: 0.5rem 1rem;
  border: none;
  background: var(--daily-color);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
form button:hover {
  filter: brightness(0.9);
}

/* Video player overlay */
.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
}
.video-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255,255,255,0.8);
}

/* Alerts */
.success, .error {
  max-width: 800px;
  margin: 20px auto;
  padding: 10px;
  border-radius: 4px;
}
.success {
  background-color: var(--color-success-bg);
  color: var(--color-success-text);
  border: 1px solid var(--color-success-border);
}
.error {
  background-color: var(--color-error-bg);
  color: var(--color-error-text);
  border: 1px solid var(--color-error-border);
}

/* Utility classes */
.btn-flat {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--daily-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}
.btn-flat:hover {
  color: #000;
}
.sedivka {
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 10px;
}
h2 {
  padding-bottom: 0;
}
/* style.css */

html, body {
  height: 100%;
  margin: 0;
}

.bedy {
  display: flex;
  justify-content: center; /* horizontální centrování */
  align-items: center;     /* vertikální centrování */
  background-color: #747474	;
  font-family: N27, sans-serif;
  height: 100%;
  width: 100%;
}

.login-form {
  display: flex;
  flex-direction: column;   /* položky pod sebe */
  width: 300px;
  padding: 2em;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.login-form input,
.login-form button {
  padding: 0.75em;
  margin-bottom: 1em;       /* mezera mezi řádky */
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

.login-form button {
  cursor: pointer;
  background-color: #007BFF;
  color: #fff;
  border: none;
}

.login-form button:hover {
  background-color: #0056b3;
}
/* Přidejte k existujícím pravidlům pro .login-form */

.request-form {
  display: flex;
  flex-direction: column;   /* položky pod sebe */
  width: 300px;
  padding: 2em;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.request-form input,
.request-form textarea,
.request-form button {
  padding: 0.75em;
  margin-bottom: 1em;       /* mezera mezi řádky */
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

.request-form textarea {
  resize: vertical;
  min-height: 100px;
}

.request-form button {
  cursor: pointer;
  background-color: #007BFF;
  color: #fff;
  border: none;
}

.request-form button:hover {
  background-color: #0056b3;
}
