/* Ergashev.dev 3.1 — visitor-only themes. Admin deliberately excludes this file.
   No images, dependencies or extra JS frameworks required. */

/* Theme switcher is always alongside the language selector. */
.theme-control{display:flex;align-items:center;position:relative;gap:6px;min-width:0;border:1px solid var(--line-strong);background:var(--panel2);color:var(--text);border-radius:6px;padding:0 8px}
.theme-control .theme-icon{font-size:17px;color:var(--mint);line-height:1}
.theme-control select{border:0;min-width:0;max-width:155px;outline-offset:4px;background:transparent;color:var(--text);font:700 10px var(--mono);padding:9px 3px;cursor:pointer}
.theme-control select option{background:var(--panel);color:var(--text)}
.theme-control:focus-within{outline:2px solid var(--mint);outline-offset:2px}
.nav-actions{gap:9px}

/* Profile image — if no image is uploaded, original hero artwork remains. */
.hero-self[hidden]{display:none!important}
.hero-self{display:flex;align-items:center;gap:10px;max-width:max-content;border-radius:50px;border:1px solid var(--line-strong);padding:5px 12px 5px 5px;background:var(--panel2);margin:12px 0 5px}
.hero-self img{width:39px;height:39px;object-fit:cover;border-radius:50%;border:1px solid var(--mint)}
.hero-self span{font:700 10px var(--mono);color:var(--mint)}
.hero-self .online-dot{width:6px;height:6px;vertical-align:middle;margin-left:5px}

.hero-profile-frame[hidden],.about-profile[hidden]{display:none!important}
.hero-profile-frame{position:absolute;z-index:2;inset:8% 5% 11% 0;pointer-events:none;display:flex;align-items:flex-end;justify-content:center}
.hero-profile-frame img{display:block;max-height:100%;width:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 12px 35px #0009)}
.about-profile{display:flex;gap:14px;align-items:center;padding:12px;margin:15px 0;border-radius:10px;background:var(--panel2);border:1px solid var(--line)}
.about-profile img{width:76px;height:76px;object-fit:cover;border-radius:13px;border:2px solid var(--mint)}
.about-profile span{color:var(--mint);font:700 14px var(--display);letter-spacing:.04em}
.skill-tile .skill-copy{display:flex;flex-direction:column;gap:4px;min-width:0;word-break:break-word}
.skill-tile .skill-copy strong{font:700 11px/1.35 var(--display)}
.skill-tile .skill-copy small{font:400 9px/1.4 var(--font);color:var(--soft)}
.skill-tile .skill-copy .skill-level{color:var(--mint)}

/* ===== 05 — MINIMAL WARM: editorial clarity, softly-lit workspace ===== */
html[data-theme="warm"]{color-scheme:light;--bg:#f4eee6;--bg2:#f7f2e9;--panel:#fffaf5;--panel2:#f6eee3;--line:#ded0bf;--line-strong:#bda48d;--mint:#936946;--mint2:#6b472a;--aqua:#936946;--text:#26211b;--soft:#75695c;--dim:#978b7d;--display:Georgia,'Times New Roman',serif;--mono:'DM Sans',system-ui,sans-serif}
html[data-theme="warm"] body{background:#f4eee6;color:var(--text)}
html[data-theme="warm"] .scanlines{display:none}
html[data-theme="warm"] .nav-bar{background:#fffaf5ef;border-bottom:1px solid #e1d4c4;box-shadow:0 6px 24px #705d4610}
html[data-theme="warm"] .nav-link{color:#4e453c;font:600 12px var(--font)}
html[data-theme="warm"] .nav-link small{color:#a18c79}
html[data-theme="warm"] .nav-link:hover{color:#8d5b33}
html[data-theme="warm"] .online-label{color:#7a6550}
html[data-theme="warm"] .online-dot{background:#94826d;box-shadow:0 0 0 4px #cebda85c}
html[data-theme="warm"] .language-control select{color:#41342b;background:#fffaf4;border:1px solid #ddcbb9}
html[data-theme="warm"] .theme-control{background:#fffaf4;border:1px solid #ddcbb9}
html[data-theme="warm"] .nav-cta{color:#fff8ef;background:#3e3027;border-color:#3e3027}
html[data-theme="warm"] .nav-cta:hover{background:#70523a}
html[data-theme="warm"] .brand-mark{color:#6d4933;border-color:#bc9876;box-shadow:none;background:#f7ebdd}
html[data-theme="warm"] .hero{min-height:530px;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);background:#fbf5eb;border:0;border-radius:0 0 22px 22px;box-shadow:0 18px 65px #7c665020;overflow:hidden}
html[data-theme="warm"] .hero-copy{padding:60px clamp(22px,4.5vw,76px);justify-content:center}
html[data-theme="warm"] .hero .grid-backdrop{opacity:.13;background-image:radial-gradient(#94775e 1px,transparent 1px);background-size:24px 24px;mask-image:linear-gradient(90deg,#000,transparent 75%)}
html[data-theme="warm"] .hero h1{color:#261e19;font-weight:700;letter-spacing:-.07em;font-size:clamp(42px,5vw,86px)}
html[data-theme="warm"] .hero .typing-cursor{display:none}
html[data-theme="warm"] .hero .eyebrow{color:#9a6540;letter-spacing:.16em;font:700 11px var(--font)}
html[data-theme="warm"] .hero-command{color:#987d68;font:500 12px var(--font);letter-spacing:.01em}
html[data-theme="warm"] .hero-command b{color:#a37853}
html[data-theme="warm"] .hero-statement{color:#32251e;font-size:clamp(24px,2.75vw,45px);line-height:1.12;max-width:540px}
html[data-theme="warm"] .hero-intro{color:#75685e;max-width:510px;font-size:14px;line-height:1.8}
html[data-theme="warm"] .btn{font:700 12px var(--font);border-radius:10px;padding:14px 20px}
html[data-theme="warm"] .btn-primary{background:#382a21;border:1px solid #382a21;color:#fffaf3;box-shadow:0 6px 20px #4a2d1d22}
html[data-theme="warm"] .btn-primary:hover{background:#70513b;box-shadow:0 10px 20px #4a2d1d33}
html[data-theme="warm"] .btn-outline{background:transparent;color:#3a2d24;border:1px solid #b9a28c}
html[data-theme="warm"] .availability{color:#7c7167;font:500 12px var(--font)}
html[data-theme="warm"] .stack-label{color:#a07852;font:700 11px var(--font)}
html[data-theme="warm"] .stack-pills>span:not(.stack-label){color:#625346;background:#efe3d7;border:1px solid #dfcdbd;font:600 11px var(--font);border-radius:8px}
html[data-theme="warm"] .hero-visual{display:block;background:radial-gradient(ellipse at 34% 48%,#ffe8c9 0%,transparent 48%),linear-gradient(160deg,#ecddc9,#c8a68b 90%);overflow:hidden}
html[data-theme="warm"] .hero-visual:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#faf3e65c,transparent 65%);}
html[data-theme="warm"] .hero-visual:after{content:"</>";position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-8deg);display:grid;place-items:center;width:min(68%,340px);aspect-ratio:1.1;border-radius:34px;background:linear-gradient(140deg,#e5cfb8,#baa18e);box-shadow:22px 28px 0 #765e4b25,0 26px 65px #7f5f4745,inset 0 2px 2px #fff8;font:700 clamp(52px,6vw,110px) var(--display);color:#684e3b;border:2px solid #fff8}
html[data-theme="warm"] .hero-visual:has(.hero-profile-frame:not([hidden])):after{display:none}
html[data-theme="warm"] .hero-profile-frame{inset:7% 6% 0;z-index:3}
html[data-theme="warm"] .hero-profile-frame img{filter:drop-shadow(0 8px 26px #7a594660)}
html[data-theme="warm"] .scene-caption{color:#5a4431;right:18px;bottom:15px;z-index:4}
html[data-theme="warm"] .terminal-window{display:none}
html[data-theme="warm"] .ticker{display:none}
html[data-theme="warm"] .framed{border-color:var(--line)}
html[data-theme="warm"] .site-section{background:#fbf8f2}
html[data-theme="warm"] .section-heading h2,html[data-theme="warm"] .site-section h2,html[data-theme="warm"] .contact-section h2{color:#29211b}
html[data-theme="warm"] .eyebrow{color:#9b744d;font:700 10px var(--font);letter-spacing:.12em}
html[data-theme="warm"] .text-link{color:#795231;font:700 12px var(--font)}
html[data-theme="warm"] .section-side p,html[data-theme="warm"] .project-info p,html[data-theme="warm"] .article-card p,html[data-theme="warm"] .video-card p,html[data-theme="warm"] .about-panel p,html[data-theme="warm"] .contact-section p{color:#796a5f}
html[data-theme="warm"] .project-card,html[data-theme="warm"] .article-card,html[data-theme="warm"] .video-card{background:#fffefa;border:1px solid #e7d9c9;border-radius:14px;box-shadow:0 8px 35px #5f46350d}
html[data-theme="warm"] .project-card:hover,html[data-theme="warm"] .article-card:hover,html[data-theme="warm"] .video-card:hover{border-color:#a07953;box-shadow:0 13px 32px #72563b26}
html[data-theme="warm"] .project-info h3,html[data-theme="warm"] .article-card h3,html[data-theme="warm"] .video-card h3{color:#35271d}
html[data-theme="warm"] .number-tag,html[data-theme="warm"] .tag{border-color:#dcc8b4;background:#f6eee4;color:#715840}
html[data-theme="warm"] .project-media{background:#ede1d4;border-color:#e1d1bf}
html[data-theme="warm"] .skill-tile{background:#fffefa;border:1px solid #e7d9c9;border-radius:11px;min-height:85px;gap:12px;padding:13px}
html[data-theme="warm"] .skill-tile:hover{background:#f1e5d7;border-color:#a78361}
html[data-theme="warm"] .skill-icon{color:#906a49}
html[data-theme="warm"] .skill-tile .skill-copy strong{color:#382b22;font:700 12px var(--font)}
html[data-theme="warm"] .skill-tile .skill-copy small{color:#76685c}
html[data-theme="warm"] .about-facts div{border-color:#d8c2ad}
html[data-theme="warm"] .about-facts small{color:#76685c}
html[data-theme="warm"] .pixel-globe{color:#ae8e6a;text-shadow:none;background:radial-gradient(circle,#dbc9b266,transparent 60%)}
html[data-theme="warm"] .quality-tags span{background:#f7ecdf;border-color:#dfcbb7;color:#66482f}
html[data-theme="warm"] .about-profile{background:#f6ede3;border-color:#e6d3c0}
html[data-theme="warm"] .contact-section{background:#eee1d1}
html[data-theme="warm"] .contact-form label{color:#624b38}
html[data-theme="warm"] .contact-form input,html[data-theme="warm"] .contact-form textarea,html[data-theme="warm"] .catalog-tools input,html[data-theme="warm"] .catalog-tools select{background:#fffaf3;color:#30251e;border-color:#d9c5af}
html[data-theme="warm"] .social-links a{color:#6c4a32;border-color:#d7bfa6;background:#fffcf7}
html[data-theme="warm"] .footer{background:#f2e7dc;color:#77695c}
html[data-theme="warm"] .footer-brand{color:#31251d}
html[data-theme="warm"] .detail-layout{background:#fffaf4;color:#302820;border-radius:16px;box-shadow:0 14px 50px #65544415}
html[data-theme="warm"] .detail-layout p{color:#74695f}
html[data-theme="warm"] .detail-layout .prose p{color:#6f6257}
html[data-theme="warm"] .prose h3,html[data-theme="warm"] .prose h4,html[data-theme="warm"] .prose h5{color:#3a2a1d}
html[data-theme="warm"] .empty-state{border-color:#d4bea7;color:#826c58}
html[data-theme="warm"] .video-thumb{background:#e9d5c5}
html[data-theme="warm"] .to-top{background:#4b3627;color:#fff8ef}

/* ===== 06 — GLASSMORPHISM: layered aurora, translucent panels ===== */
html[data-theme="glass"]{color-scheme:dark;--bg:#080f29;--bg2:#0b1631;--panel:#101c3f;--panel2:#1e2952;--line:#53619d65;--line-strong:#93a5ff77;--mint:#bfadff;--mint2:#8e74ff;--aqua:#79dcff;--text:#f3f5ff;--soft:#c1cafa;--dim:#8a99cb;--display:'Space Grotesk',system-ui,sans-serif;--mono:'Space Mono',monospace}
html[data-theme="glass"] body{background:radial-gradient(circle at 12% 9%,#3549a9 0%,transparent 25%),radial-gradient(circle at 87% 30%,#602fa3 0%,transparent 27%),radial-gradient(circle at 52% 78%,#16347e 0%,transparent 42%),#070f28;background-attachment:fixed;color:var(--text)}
html[data-theme="glass"] .scanlines{display:none}
html[data-theme="glass"] .nav-bar{background:#101c3cbf;border-color:#738bd14a;backdrop-filter:blur(26px);box-shadow:0 14px 32px #080b2518}
html[data-theme="glass"] .brand-mark{color:#cfc7ff;background:#ffffff14;border-color:#a8a9ff85;box-shadow:0 0 21px #8370ff47}
html[data-theme="glass"] .nav-link{color:#d9def9}
html[data-theme="glass"] .nav-link small{color:#909dcd}
html[data-theme="glass"] .language-control select{color:#eef2ff;background:#ffffff12;border-color:#b3baff44}
html[data-theme="glass"] .theme-control{background:#ffffff13;border-color:#b3baff55}
html[data-theme="glass"] .theme-control select{color:#f5f0ff}
html[data-theme="glass"] .nav-cta{background:#ffffff16;color:#ece6ff;border-color:#baa8ff77;border-radius:10px}
html[data-theme="glass"] .hero{background:radial-gradient(circle at 73% 20%,#5473e85c,transparent 38%),linear-gradient(122deg,#101938a1,#1b12419e);border:1px solid #8799e751;border-radius:20px;min-height:500px;box-shadow:0 22px 65px #01071f6e;overflow:hidden}
html[data-theme="glass"] .grid-backdrop{opacity:.27;background-image:radial-gradient(#e3e5ff 1px,transparent 1px);background-size:30px 30px}
html[data-theme="glass"] .hero-copy{padding-top:55px;padding-bottom:55px}
html[data-theme="glass"] .hero h1{color:#fff;text-shadow:0 10px 35px #03071b;font-weight:700}
html[data-theme="glass"] .hero .hero-statement{color:#f4f1ff}
html[data-theme="glass"] .hero-intro{color:#c5cefb}
html[data-theme="glass"] .hero .eyebrow{color:#c9afff}
html[data-theme="glass"] .hero-command{color:#e2dcff}
html[data-theme="glass"] .btn,html[data-theme="glass"] .nav-cta{border-radius:10px}
html[data-theme="glass"] .btn-primary{background:linear-gradient(125deg,#9877f8,#d45cf3);color:#fff;border:1px solid #eddcff66;box-shadow:0 10px 30px #a23fff68}
html[data-theme="glass"] .btn-primary:hover{background:linear-gradient(125deg,#ad8aff,#dd77f8);box-shadow:0 12px 36px #a23fff88}
html[data-theme="glass"] .btn-outline{background:#ffffff12;color:#fff;border-color:#99aafd88;backdrop-filter:blur(10px)}
html[data-theme="glass"] .availability{color:#e0dcff}
html[data-theme="glass"] .stack-pills>span:not(.stack-label){background:#ffffff14;border-color:#9faddc55;border-radius:10px;color:#eaebff}
html[data-theme="glass"] .hero-visual{background:radial-gradient(circle at 65% 25%,#7548cb88,transparent 47%),linear-gradient(150deg,#101d55,#090d2f)}
html[data-theme="glass"] .hero-visual:before{background:linear-gradient(90deg,#101638aa,transparent 55%),linear-gradient(0deg,#111839bb,transparent 50%)}
html[data-theme="glass"] .hero-visual:after{content:"";position:absolute;z-index:1;left:13%;top:19%;width:75%;aspect-ratio:1;border:1px solid #ffffff65;border-radius:28px;transform:rotate(-14deg);background:linear-gradient(130deg,#a6c8ff49,#a169eb30);backdrop-filter:blur(7px);box-shadow:16px 13px 0 #ffffff12,-20px -25px 0 #ffffff0a,0 0 65px #7d5fe75e}
html[data-theme="glass"] .hero-visual:has(.hero-profile-frame:not([hidden])):after{opacity:.3}
html[data-theme="glass"] .hero-profile-frame{inset:8% 2% 4%;z-index:3}
html[data-theme="glass"] .terminal-window{background:#121a3ec9;border:1px solid #a5a4ff88;backdrop-filter:blur(24px);box-shadow:0 24px 55px #07051fbb,0 0 30px #876dff26;border-radius:17px}
html[data-theme="glass"] .terminal-top{background:#ffffff12;border-color:#ffffff38;border-radius:17px 17px 0 0}
html[data-theme="glass"] .terminal-answer{color:#d5d7fc}
html[data-theme="glass"] .terminal-answer.muted{color:#adbaf4}
html[data-theme="glass"] .terminal-form input{color:#f4edff}
html[data-theme="glass"] .term-foot{border-color:#ffffff2c;color:#aab4e5}
html[data-theme="glass"] .ticker{background:#151b48d9;border-color:#8d85d455;color:#abb4f4;border-radius:9px;margin:3px 23px}
html[data-theme="glass"] .framed{border-color:#ffffff32}
html[data-theme="glass"] .site-section,html[data-theme="glass"] .contact-section{background:linear-gradient(160deg,#ffffff10,#ffffff07);backdrop-filter:blur(18px)}
html[data-theme="glass"] .section-heading h2,html[data-theme="glass"] .site-section h2,html[data-theme="glass"] .contact-section h2{color:#f3f1ff}
html[data-theme="glass"] .section-side p,html[data-theme="glass"] .project-info p,html[data-theme="glass"] .article-card p,html[data-theme="glass"] .video-card p,html[data-theme="glass"] .about-panel p{color:#bec8fa}
html[data-theme="glass"] .project-card,html[data-theme="glass"] .article-card,html[data-theme="glass"] .video-card,html[data-theme="glass"] .skill-tile{background:linear-gradient(145deg,#ffffff1e,#ffffff09);border:1px solid #b3bbff58;backdrop-filter:blur(22px);border-radius:15px;box-shadow:inset 0 1px #ffffff26,0 14px 32px #05092136}
html[data-theme="glass"] .project-card:hover,html[data-theme="glass"] .article-card:hover,html[data-theme="glass"] .video-card:hover{border-color:#dabfff;box-shadow:0 17px 44px #10082c91}
html[data-theme="glass"] .project-info h3,html[data-theme="glass"] .article-card h3,html[data-theme="glass"] .video-card h3{color:#fff}
html[data-theme="glass"] .project-media{background:#11214f;border-color:#aaa9e45c}
html[data-theme="glass"] .number-tag,html[data-theme="glass"] .tag{border-color:#ada7f464;background:#a29aff1a;color:#e1d7ff}
html[data-theme="glass"] .skill-tile{min-height:78px}
html[data-theme="glass"] .skill-tile:hover{background:#9a8cf22d;border-color:#a5a0ff}
html[data-theme="glass"] .skill-tile .skill-copy strong{color:#fff}
html[data-theme="glass"] .skill-tile .skill-copy small{color:#c4cafa}
html[data-theme="glass"] .pixel-globe{color:#786df6;text-shadow:0 0 35px #9c8aff88}
html[data-theme="glass"] .quality-tags span{background:#ffffff14;border-color:#b3aaff6e;color:#ddd6ff}
html[data-theme="glass"] .about-profile{background:#ffffff14;border-color:#b3aaff58}
html[data-theme="glass"] .contact-section p{color:#ccd0ff}
html[data-theme="glass"] .contact-form label{color:#e9e2ff}
html[data-theme="glass"] .contact-form input,html[data-theme="glass"] .contact-form textarea,html[data-theme="glass"] .catalog-tools input,html[data-theme="glass"] .catalog-tools select{background:#ffffff10;border:1px solid #bbadff70;color:#fff}
html[data-theme="glass"] .social-links a{background:#ffffff18;border-color:#c9b6ff70;color:#ecdbff}
html[data-theme="glass"] .footer{color:#b6c1fb}
html[data-theme="glass"] .footer-brand{color:#f4edff}
html[data-theme="glass"] .detail-layout{background:#ffffff15;backdrop-filter:blur(24px);border:1px solid #a4a8e866;border-radius:18px}
html[data-theme="glass"] .detail-layout p{color:#d1d7ff}
html[data-theme="glass"] .empty-state{border-color:#a5a1dd88;color:#d2d1fc}
html[data-theme="glass"] .to-top{background:#a58bff;color:#131531}

@media(max-width:1350px){
 html[data-theme="warm"] .hero{grid-template-columns:1fr 1fr}
 html[data-theme="warm"] .hero-visual{display:block}
 html[data-theme="glass"] .hero{grid-template-columns:1fr 1fr}
 html[data-theme="glass"] .hero-visual{display:none}
}
@media(max-width:960px){
 html[data-theme="warm"] .hero{grid-template-columns:1fr 1fr}
 html[data-theme="warm"] .hero-visual{display:block}
 html[data-theme="warm"] .nav-links{background:#fffbf6;border-color:#d9c4b0}
 html[data-theme="glass"] .nav-links{background:#171d46ee;border-color:#aa9eea77}
}
@media(max-width:690px){
 .theme-control{padding:0;width:39px;height:36px;justify-content:center}
 .theme-control .theme-icon{pointer-events:none;font-size:20px}
 .theme-control select{position:absolute;inset:0;width:100%;height:100%;max-width:100%;opacity:0;cursor:pointer}
 .nav-actions{gap:5px}
 html[data-theme="warm"] .hero{grid-template-columns:1fr;min-height:auto}
 html[data-theme="warm"] .hero-copy{padding:36px 22px}
 html[data-theme="warm"] .hero-visual{display:none}
 html[data-theme="warm"] .hero h1{font-size:clamp(38px,10vw,62px)}
 html[data-theme="warm"] .hero-statement{font-size:28px}
 html[data-theme="glass"] .hero{grid-template-columns:1fr}
 html[data-theme="glass"] .hero-copy{padding:34px 19px 10px}
 html[data-theme="glass"] .hero h1{font-size:clamp(38px,10vw,62px)}
 html[data-theme="glass"] .terminal-window{margin:16px 15px 26px}
 .about-profile img{width:65px;height:65px}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme="glass"] .project-card,html[data-theme="warm"] .project-card{transition:none}
}
