diff --git a/Web-Jarmark/Web-Jarmark/Components/Layout/MainLayout.razor b/Web-Jarmark/Web-Jarmark/Components/Layout/MainLayout.razor
index 97eea86..5e016db 100644
--- a/Web-Jarmark/Web-Jarmark/Components/Layout/MainLayout.razor
+++ b/Web-Jarmark/Web-Jarmark/Components/Layout/MainLayout.razor
@@ -1,19 +1,41 @@
@inherits LayoutComponentBase
-
-
+
diff --git a/Web-Jarmark/Web-Jarmark/Components/Layout/MainLayout.razor.css b/Web-Jarmark/Web-Jarmark/Components/Layout/MainLayout.razor.css
index f46fb83..cba0421 100644
--- a/Web-Jarmark/Web-Jarmark/Components/Layout/MainLayout.razor.css
+++ b/Web-Jarmark/Web-Jarmark/Components/Layout/MainLayout.razor.css
@@ -1,98 +1,406 @@
-.page {
+/* ========================================
+ SKOLNI JARMARK - PUBLIC LAYOUT
+ ======================================== */
+
+.page.public-layout {
+ --public-primary: #244b36;
+ --public-primary-hover: #193b29;
+ --public-secondary: #e6eddf;
+ --public-background: #f7f7f2;
+ --public-surface: #ffffff;
+ --public-text: #26372b;
+ --public-muted: #59665b;
+ --public-border: #dce3d9;
+ --public-radius-sm: 4px;
+ --public-radius-md: 8px;
+ --public-radius-lg: 12px;
+ --public-space-1: 4px;
+ --public-space-2: 8px;
+ --public-space-3: 12px;
+ --public-space-4: 16px;
+ --public-space-5: 20px;
+ --public-space-6: 24px;
+ --public-space-8: 32px;
+ --public-space-12: 48px;
+ --public-space-16: 64px;
+ position: relative;
display: flex;
- min-height: 100vh;
- background: #f7f9f5;
-}
-
-.sidebar {
- width: 260px;
- min-width: 260px;
- min-height: 100vh;
- position: sticky;
- top: 0;
- align-self: flex-start;
- z-index: 100;
- background: #ffffff;
- border-right: 1px solid #e8ede5;
-}
-
-.main-content {
- flex: 1;
+ flex-direction: column;
+ align-items: stretch;
+ width: 100%;
min-width: 0;
min-height: 100vh;
- background: #f7f9f5;
+ min-height: 100dvh;
+ margin: 0;
+ padding: 0;
+ background: var(--public-background);
+ color: var(--public-text);
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
+ font-size: 16px;
+ line-height: 1.6;
+ box-sizing: border-box;
}
-.content {
- width: 100%;
- max-width: 1600px;
- margin: 0 auto;
- padding: 30px 35px !important;
+
+/* ========================================
+ BOX SIZING
+ ======================================== */
+
+.public-layout,
+.public-layout ::deep *,
+.public-layout ::deep *::before,
+.public-layout ::deep *::after {
+ box-sizing: border-box;
}
+
+ /* ========================================
+ PUBLIC HEADER - OVERLAP FIX
+ ======================================== */
+
+ .public-layout > .sidebar.public-header {
+ position: relative !important;
+ top: auto !important;
+ right: auto !important;
+ bottom: auto !important;
+ left: auto !important;
+ display: block;
+ flex: 0 0 auto;
+ align-self: stretch;
+ width: 100% !important;
+ min-width: 0 !important;
+ max-width: 100%;
+ height: auto !important;
+ min-height: 0 !important;
+ max-height: none;
+ margin: 0;
+ padding: 0;
+ background: var(--public-surface);
+ border-right: none !important;
+ border-bottom: 1px solid var(--public-border);
+ transform: none;
+ z-index: 100;
+ }
+
+
+/* ========================================
+ NAVIGATION CONTAINER
+ ======================================== */
+
+.public-header ::deep .nav-panel {
+ position: relative;
+ width: 100%;
+ min-width: 0;
+ height: auto;
+ min-height: 68px;
+ max-height: none;
+ margin: 0 auto;
+}
+
+.public-header ::deep .nav-scrollable {
+ position: static;
+ height: auto;
+ min-height: 0;
+ max-height: none;
+ overflow: visible;
+}
+
+
+/* ========================================
+ MAIN CONTENT - OVERLAP FIX
+ ======================================== */
+
+.public-layout > .main-content.public-main {
+ position: relative !important;
+ top: auto;
+ left: auto;
+ right: auto;
+ bottom: auto;
+ display: block;
+ flex: 1 0 auto;
+ width: 100% !important;
+ min-width: 0;
+ max-width: 100%;
+ height: auto;
+ min-height: 0;
+ margin: 0 !important;
+ padding: 0 !important;
+ background: var(--public-background);
+ transform: none;
+ scroll-margin-top: 16px;
+}
+
+
+/* ========================================
+ CONTENT CONTAINER
+ ======================================== */
+
+.public-main > .content.public-container {
+ position: relative;
+ display: block;
+ width: 100%;
+ max-width: 1440px;
+ min-width: 0;
+ margin: 0 auto !important;
+ padding: 32px 32px 64px !important;
+ box-sizing: border-box;
+}
+
+
+/* ========================================
+ TYPOGRAPHY
+ ======================================== */
+
+.public-container ::deep h1,
+.public-container ::deep h2,
+.public-container ::deep h3 {
+ color: var(--public-text);
+ font-family: Georgia, "Times New Roman", serif;
+ font-weight: 700;
+ line-height: 1.2;
+ letter-spacing: normal;
+}
+
+.public-container ::deep h1 {
+ font-size: clamp(28px, 4vw, 44px);
+}
+
+.public-container ::deep h2 {
+ font-size: clamp(24px, 3vw, 32px);
+}
+
+.public-container ::deep h3 {
+ font-size: clamp(18px, 2vw, 24px);
+}
+
+.public-container ::deep p {
+ line-height: 1.6;
+}
+
+
+/* ========================================
+ LINKS
+ ======================================== */
+
+.public-container ::deep a {
+ text-underline-offset: 3px;
+}
+
+
+/* ========================================
+ KEYBOARD ACCESSIBILITY
+ ======================================== */
+
+.public-layout ::deep a:focus-visible,
+.public-layout ::deep button:focus-visible,
+.public-layout ::deep input:focus-visible,
+.public-layout ::deep select:focus-visible,
+.public-layout ::deep textarea:focus-visible,
+.public-layout ::deep [tabindex]:focus-visible {
+ outline: 3px solid #527b49;
+ outline-offset: 3px;
+}
+
+.public-main:focus-visible {
+ outline: 3px solid #527b49;
+ outline-offset: -3px;
+}
+
+
+/* ========================================
+ SKIP NAVIGATION LINK
+ ======================================== */
+
+.public-skip-link {
+ position: absolute;
+ top: 12px;
+ left: 12px;
+ z-index: 1100;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ overflow: hidden;
+ clip-path: inset(50%);
+ white-space: nowrap;
+}
+
+ .public-skip-link:focus {
+ width: auto;
+ height: auto;
+ padding: 12px 16px;
+ overflow: visible;
+ clip-path: none;
+ background: var(--public-primary);
+ color: #ffffff;
+ border-radius: var(--public-radius-md);
+ font-size: 14px;
+ font-weight: 600;
+ text-decoration: none;
+ white-space: normal;
+ }
+
+
+/* ========================================
+ BLAZOR ERROR MESSAGE
+ ======================================== */
+
#blazor-error-ui {
- color-scheme: light;
+ display: none;
+ position: fixed;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 1000;
+ width: 100%;
+ padding: 16px 56px 16px 24px;
background: #fff4d6;
color: #58451b;
- bottom: 0;
- box-shadow: 0 -2px 15px rgba(0, 0, 0, .08);
+ border-top: 1px solid #e5d4a1;
box-sizing: border-box;
- display: none;
- left: 0;
- padding: 14px 25px;
- position: fixed;
- width: 100%;
- z-index: 1000;
- border-top: 1px solid #f0dfb4;
+ color-scheme: light;
+ font-size: 14px;
+ line-height: 1.5;
}
#blazor-error-ui .reload {
- color: #315b3e;
- font-weight: 700;
+ display: inline-block;
margin-left: 8px;
+ color: #244b36;
+ font-weight: 700;
+ text-decoration: underline;
}
#blazor-error-ui .dismiss {
- cursor: pointer;
position: absolute;
- right: 18px;
- top: 12px;
+ top: 50%;
+ right: 8px;
+ transform: translateY(-50%);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 44px;
+ height: 44px;
+ padding: 0;
+ background: transparent;
+ color: #58451b;
+ border: none;
+ border-radius: 4px;
+ font-size: 24px;
+ cursor: pointer;
}
-@media (max-width: 640.98px) {
- .page {
+ #blazor-error-ui .dismiss:focus-visible,
+ #blazor-error-ui .reload:focus-visible {
+ outline: 3px solid #527b49;
+ outline-offset: 2px;
+ }
+
+
+/* ========================================
+ TABLET - MAX 1024 PX
+ ======================================== */
+
+@media (max-width: 1024px) {
+
+ .public-main > .content.public-container {
+ padding: 24px 24px 48px !important;
+ }
+
+ .public-layout > .sidebar.public-header {
+ position: relative !important;
+ width: 100% !important;
+ height: auto !important;
+ min-height: 0 !important;
+ }
+}
+
+
+/* ========================================
+ MOBILE - MAX 640 PX
+ ======================================== */
+
+@media (max-width: 640px) {
+
+ .page.public-layout {
flex-direction: column;
+ width: 100%;
+ font-size: 15px;
}
- .sidebar {
- width: 100%;
+ .public-layout > .sidebar.public-header {
+ position: relative !important;
+ top: auto !important;
+ width: 100% !important;
+ min-width: 0 !important;
+ height: auto !important;
+ min-height: 0 !important;
+ }
+
+ .public-layout > .main-content.public-main {
+ width: 100% !important;
min-width: 0;
- min-height: auto;
- position: relative;
- border-right: none;
- border-bottom: 1px solid #e8ede5;
+ margin: 0 !important;
+ padding: 0 !important;
}
- .main-content {
+ .public-main > .content.public-container {
width: 100%;
+ padding: 16px 16px 32px !important;
}
- .content {
- padding: 18px 15px !important;
+ .public-container ::deep h1 {
+ font-size: 28px;
+ }
+
+ .public-container ::deep h2 {
+ font-size: 24px;
+ }
+
+ .public-container ::deep h3 {
+ font-size: 20px;
+ }
+
+ #blazor-error-ui {
+ padding: 12px 56px 12px 16px;
+ }
+
+ #blazor-error-ui .reload {
+ margin-left: 0;
+ margin-top: 4px;
+ }
+}
+
+
+/* ========================================
+ SMALL MOBILE - MAX 360 PX
+ ======================================== */
+
+@media (max-width: 360px) {
+
+ .public-main > .content.public-container {
+ padding: 12px 12px 24px !important;
+ }
+
+ .public-container ::deep h1 {
+ font-size: 26px;
}
}
-@media (min-width: 641px) {
- .sidebar {
- height: 100vh;
- }
-}
+
+/* ========================================
+ REDUCED MOTION
+ ======================================== */
@media (prefers-reduced-motion: reduce) {
- *,
- *::before,
- *::after {
+
+ .public-layout,
+ .public-layout ::deep *,
+ .public-layout ::deep *::before,
+ .public-layout ::deep *::after {
scroll-behavior: auto !important;
+ animation-duration: 0.01ms !important;
+ animation-iteration-count: 1 !important;
+ transition-duration: 0.01ms !important;
}
}
diff --git a/Web-Jarmark/Web-Jarmark/Components/Layout/NavMenu.razor b/Web-Jarmark/Web-Jarmark/Components/Layout/NavMenu.razor
index 432998f..72cde3b 100644
--- a/Web-Jarmark/Web-Jarmark/Components/Layout/NavMenu.razor
+++ b/Web-Jarmark/Web-Jarmark/Components/Layout/NavMenu.razor
@@ -5,112 +5,208 @@