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 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
}
|
|
|
|
| 1 |
+
/* ===== Planted in Nutrition — Polish Pack v1 =====
|
| 2 |
+
Drop-in replacement for style.css. Safe: no ID/class renames required.
|
| 3 |
+
Tweak tokens below to match brand.
|
| 4 |
+
*/
|
| 5 |
+
|
| 6 |
+
/* ---------- Tokens ---------- */
|
| 7 |
+
:root{
|
| 8 |
+
--bg: #0b0f14;
|
| 9 |
+
--surface: #111826;
|
| 10 |
+
--surface-2: #0f1724;
|
| 11 |
+
--text: #e6edf3;
|
| 12 |
+
--muted: #a7b0bd;
|
| 13 |
+
--brand: #22d3ee; /* accent (teal/cyan) */
|
| 14 |
+
--brand-2: #22c55e; /* success (green) */
|
| 15 |
+
--danger: #ef4444;
|
| 16 |
+
--link: #7dd3fc;
|
| 17 |
+
--border: #223047;
|
| 18 |
+
--radius: 14px;
|
| 19 |
+
--shadow: 0 10px 30px rgba(0,0,0,.35);
|
| 20 |
+
|
| 21 |
+
--font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
|
| 22 |
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
| 23 |
+
|
| 24 |
+
--step--2: clamp(0.78rem, 0.76rem + 0.2vw, 0.86rem);
|
| 25 |
+
--step--1: clamp(0.90rem, 0.86rem + 0.3vw, 0.98rem);
|
| 26 |
+
--step-0: clamp(1.00rem, 0.95rem + 0.35vw, 1.10rem);
|
| 27 |
+
--step-1: clamp(1.15rem, 1.05rem + 0.6vw, 1.32rem);
|
| 28 |
+
--step-2: clamp(1.35rem, 1.22rem + 0.9vw, 1.58rem);
|
| 29 |
+
--step-3: clamp(1.62rem, 1.38rem + 1.2vw, 1.90rem);
|
| 30 |
+
--step-4: clamp(1.94rem, 1.55rem + 1.6vw, 2.28rem);
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
/* ---------- Base ---------- */
|
| 34 |
+
* { box-sizing: border-box; }
|
| 35 |
+
html, body { height: 100%; }
|
| 36 |
+
html { scroll-behavior: smooth; }
|
| 37 |
+
body{
|
| 38 |
+
margin:0;
|
| 39 |
+
background: radial-gradient(1200px 800px at 70% 0%, rgba(34,211,238,.06), transparent 40%),
|
| 40 |
+
linear-gradient(180deg, var(--bg), #0a0e13);
|
| 41 |
+
color: var(--text);
|
| 42 |
+
font: 400 var(--step-0)/1.6 var(--font-sans);
|
| 43 |
+
text-rendering: optimizeLegibility;
|
| 44 |
+
-webkit-font-smoothing: antialiased;
|
| 45 |
+
}
|
| 46 |
+
img, svg, video { max-width: 100%; height: auto; display: block; }
|
| 47 |
+
|
| 48 |
+
/* Links */
|
| 49 |
+
a{ color: var(--link); text-decoration: none; }
|
| 50 |
+
a:hover{ text-decoration: underline; }
|
| 51 |
+
|
| 52 |
+
/* Headings */
|
| 53 |
+
h1,h2,h3,h4,h5{ font-weight: 700; margin: 0 0 .5rem; letter-spacing: .2px; }
|
| 54 |
+
h1{ font-size: var(--step-4); line-height: 1.2; }
|
| 55 |
+
h2{ font-size: var(--step-3); }
|
| 56 |
+
h3{ font-size: var(--step-2); }
|
| 57 |
+
h4{ font-size: var(--step-1); }
|
| 58 |
+
|
| 59 |
+
/* Focus states (keyboard) */
|
| 60 |
+
:focus-visible{
|
| 61 |
+
outline: 2px solid var(--brand);
|
| 62 |
+
outline-offset: 2px;
|
| 63 |
+
border-radius: 8px;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
/* ---------- Layout Shell ---------- */
|
| 67 |
+
/* Keep existing structure; enhance only */
|
| 68 |
+
.app{
|
| 69 |
+
display: grid;
|
| 70 |
+
grid-template-columns: 300px 1fr;
|
| 71 |
+
gap: 0;
|
| 72 |
+
min-height: 100vh;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
/* Sidebar (supports #sidebar or .sidebar) */
|
| 76 |
+
#sidebar, .sidebar{
|
| 77 |
+
background: linear-gradient(180deg, var(--surface), var(--surface-2));
|
| 78 |
+
border-right: 1px solid var(--border);
|
| 79 |
+
padding: 16px;
|
| 80 |
+
position: sticky;
|
| 81 |
+
top: 0;
|
| 82 |
+
height: 100vh;
|
| 83 |
+
overflow: auto;
|
| 84 |
+
box-shadow: inset -1px 0 0 rgba(255,255,255,.02);
|
| 85 |
+
}
|
| 86 |
+
.sidebar-header{
|
| 87 |
+
display:flex; align-items:center; justify-content:space-between;
|
| 88 |
+
margin-bottom:12px; gap:8px;
|
| 89 |
+
}
|
| 90 |
+
.sidebar-title{ font-size: var(--step-1); font-weight:700; }
|
| 91 |
+
|
| 92 |
+
/* Nav items (modules/lessons) */
|
| 93 |
+
.nav-group{ margin: 10px 0 16px; }
|
| 94 |
+
.nav-label{
|
| 95 |
+
color: var(--muted);
|
| 96 |
+
font-size: var(--step--1);
|
| 97 |
+
text-transform: uppercase;
|
| 98 |
+
letter-spacing: .8px;
|
| 99 |
+
margin-bottom: 8px;
|
| 100 |
+
}
|
| 101 |
+
.nav-list{ list-style: none; padding:0; margin:0; }
|
| 102 |
+
.nav-item{
|
| 103 |
+
display:flex; align-items:center; gap:10px;
|
| 104 |
+
padding:10px 12px;
|
| 105 |
+
margin:6px 0;
|
| 106 |
+
border:1px solid transparent;
|
| 107 |
+
border-radius: 10px;
|
| 108 |
+
background: rgba(255,255,255,.02);
|
| 109 |
+
transition: background .2s ease, border-color .2s ease, transform .05s ease;
|
| 110 |
+
cursor: pointer;
|
| 111 |
+
}
|
| 112 |
+
.nav-item:hover{ background: rgba(255,255,255,.04); }
|
| 113 |
+
.nav-item:active{ transform: translateY(1px); }
|
| 114 |
+
.nav-item.active{
|
| 115 |
+
border-color: rgba(125,211,252,.45);
|
| 116 |
+
background: linear-gradient(180deg, rgba(125,211,252,.08), rgba(255,255,255,.02));
|
| 117 |
+
}
|
| 118 |
+
.nav-item.completed::before{
|
| 119 |
+
content:"✓";
|
| 120 |
+
display:inline-grid; place-items:center;
|
| 121 |
+
width:18px; height:18px; border-radius:50%;
|
| 122 |
+
background: rgba(34,197,94,.15);
|
| 123 |
+
color:#a7f3d0; font-weight:700; font-size:.85rem;
|
| 124 |
}
|
| 125 |
|
| 126 |
+
/* Main content area */
|
| 127 |
+
.main{
|
| 128 |
+
padding: 28px clamp(16px, 4vw, 48px);
|
| 129 |
+
}
|
| 130 |
+
.card{
|
| 131 |
+
background: radial-gradient(600px 300px at 10% -10%, rgba(34,211,238,.06), transparent 30%),
|
| 132 |
+
linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
|
| 133 |
+
border: 1px solid var(--border);
|
| 134 |
+
border-radius: var(--radius);
|
| 135 |
+
box-shadow: var(--shadow);
|
| 136 |
+
padding: clamp(16px, 3vw, 28px);
|
| 137 |
}
|
| 138 |
+
.card + .card{ margin-top: 16px; }
|
| 139 |
|
| 140 |
+
/* Video / iframe wrapper */
|
| 141 |
+
.player{
|
| 142 |
+
border:1px solid var(--border);
|
| 143 |
+
border-radius: 12px;
|
| 144 |
+
overflow:hidden;
|
| 145 |
+
background: #000;
|
| 146 |
+
aspect-ratio: 16 / 9;
|
| 147 |
+
}
|
| 148 |
+
.player iframe{
|
| 149 |
+
width:100%; height:100%; border:0; display:block;
|
| 150 |
}
|
| 151 |
|
| 152 |
+
/* Pills / chips */
|
| 153 |
+
.chips{ display:flex; gap:8px; flex-wrap: wrap; }
|
| 154 |
+
.chip{
|
| 155 |
+
padding:6px 10px;
|
| 156 |
+
border-radius: 999px;
|
| 157 |
+
background: rgba(255,255,255,.06);
|
| 158 |
+
border:1px solid var(--border);
|
| 159 |
+
font-size: var(--step--1);
|
| 160 |
}
|
| 161 |
|
| 162 |
+
/* Buttons */
|
| 163 |
+
.btn{
|
| 164 |
+
display:inline-flex; align-items:center; gap:10px;
|
| 165 |
+
padding:10px 14px;
|
| 166 |
+
border-radius: 12px;
|
| 167 |
+
border:1px solid var(--border);
|
| 168 |
+
background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
|
| 169 |
+
color: var(--text); text-decoration:none; cursor:pointer;
|
| 170 |
+
transition: border-color .2s ease, background .2s ease, transform .05s ease;
|
| 171 |
+
user-select:none;
|
| 172 |
+
}
|
| 173 |
+
.btn:hover{ border-color: rgba(125,211,252,.45); background: rgba(255,255,255,.05); }
|
| 174 |
+
.btn:active{ transform: translateY(1px); }
|
| 175 |
+
.btn.brand{
|
| 176 |
+
border-color: rgba(34,211,238,.35);
|
| 177 |
+
background: linear-gradient(180deg, rgba(34,211,238,.16), rgba(34,211,238,.06));
|
| 178 |
+
}
|
| 179 |
+
.btn.danger{
|
| 180 |
+
border-color: rgba(239,68,68,.35);
|
| 181 |
+
background: linear-gradient(180deg, rgba(239,68,68,.16), rgba(239,68,68,.06));
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
/* Meta text */
|
| 185 |
+
.muted{ color: var(--muted); }
|
| 186 |
+
|
| 187 |
+
/* Tables (for any resources) */
|
| 188 |
+
.table{
|
| 189 |
+
width:100%; border-collapse: collapse; font-size: var(--step--1);
|
| 190 |
+
background: rgba(255,255,255,.02); border-radius:12px; overflow:hidden;
|
| 191 |
+
}
|
| 192 |
+
.table th, .table td{
|
| 193 |
+
padding:10px 12px; border-bottom:1px solid var(--border);
|
| 194 |
+
}
|
| 195 |
+
.table th{ text-align:left; color: var(--muted); text-transform: uppercase; letter-spacing:.6px; }
|
| 196 |
+
|
| 197 |
+
/* ---------- Mobile / responsive ---------- */
|
| 198 |
+
.mobile-menu-btn{
|
| 199 |
+
position: fixed; top: 14px; left: 14px; z-index: 50;
|
| 200 |
+
display: none; align-items:center; justify-content:center;
|
| 201 |
+
width:40px; height:40px; border-radius:10px;
|
| 202 |
+
border:1px solid var(--border);
|
| 203 |
+
background: rgba(255,255,255,.06);
|
| 204 |
+
backdrop-filter: blur(6px);
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
@media (max-width: 1000px){
|
| 208 |
+
.app{ grid-template-columns: 1fr; }
|
| 209 |
+
#sidebar, .sidebar{
|
| 210 |
+
position: fixed; inset: 0 auto 0 0; width: 84%;
|
| 211 |
+
max-width: 320px; height: 100dvh; z-index: 40;
|
| 212 |
+
transform: translateX(-100%);
|
| 213 |
+
transition: transform .25s ease;
|
| 214 |
+
box-shadow: 12px 0 30px rgba(0,0,0,.35);
|
| 215 |
+
}
|
| 216 |
+
#sidebar.is-open, .sidebar.is-open{ transform: translateX(0); }
|
| 217 |
+
.main{ padding-top: 70px; } /* breathing room for button */
|
| 218 |
+
.mobile-menu-btn{ display: inline-flex; }
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
/* ---------- Utilities ---------- */
|
| 222 |
+
.hr{ height:1px; background: var(--border); border:0; margin:16px 0; }
|
| 223 |
+
.grid{ display:grid; gap:16px; }
|
| 224 |
+
.grid.two{ grid-template-columns: 1fr 1fr; }
|
| 225 |
+
@media (max-width: 800px){ .grid.two{ grid-template-columns: 1fr; } }
|
| 226 |
+
|
| 227 |
+
/* Footer note */
|
| 228 |
+
.footer{
|
| 229 |
+
margin-top: 24px; color: var(--muted); font-size: var(--step--1);
|
| 230 |
+
border-top: 1px solid var(--border); padding-top: 16px;
|
| 231 |
}
|