/*
Theme Name: AI MODU LAB
Description: 모두의 AI 연구소 — AI 정보 커뮤니티 전용 반응형 테마
Version: 1.2.1.0
Author: AI MODU LAB
Requires at least: 6.2
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: aimodulab
*/
:root{--accent:#079c61;--bg:#f6f8fc;--surface:#fff;--ink:#18213a;--muted:#667085;--line:#e4e8f1;--shadow:0 3px 13px #17234d0b;color-scheme:light}*{box-sizing:border-box}html[data-theme=dark]{--bg:#101522;--surface:#1a2234;--ink:#edf1ff;--muted:#a8b3c9;--line:#313b50;--shadow:none;color-scheme:dark}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,'Malgun Gothic','Apple SD Gothic Neo',sans-serif;font-size:15px;line-height:1.55}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #708fff;outline-offset:3px}img{max-width:100%;height:auto}.wrap,.header-inner{max-width:1320px;margin:auto;width:calc(100% - 48px)}.site-header{background:var(--surface);border-bottom:1px solid var(--line)}.header-inner{min-height:76px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:8px;font-size:21px;font-weight:850;white-space:nowrap;letter-spacing:-.8px}.brand img{max-height:44px;width:auto}.brand b{color:var(--accent)}.brand-mark{background:linear-gradient(135deg,#20cb8a,#057c50);color:white;border-radius:9px;padding:0 9px;font-size:25px}.nav{display:flex;gap:24px;align-items:center;flex:1;justify-content:center;font-weight:700;white-space:nowrap}.nav ul,.site-footer ul{list-style:none;padding:0;margin:0;display:flex;gap:18px}.nav li{position:relative}.nav .sub-menu{display:none;position:absolute;background:var(--surface);padding:12px;z-index:5;top:100%;left:0;box-shadow:var(--shadow)}.nav li:hover>.sub-menu,.nav li:focus-within>.sub-menu{display:block}.actions{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:13px}.actions button,.mobile-toggle{border:0;background:none;color:var(--ink);font-size:24px;padding:4px}.mobile-toggle{display:none}.pill{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;border-radius:999px;padding:10px 22px;font-weight:700;white-space:nowrap}.pill:hover{color:white;filter:brightness(.93)}.pill.white{background:#fff;color:#20294c}.pill.outline{background:transparent;border:1px solid var(--line);color:var(--ink)}.actions .pill{padding:7px 14px}.search-panel{max-width:700px;margin:auto;padding:0 20px 16px}.search-form{display:flex;gap:8px}.search-form label{flex:1}.search-field{width:100%}input,textarea{border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--surface);color:var(--ink)}input[type=submit]{background:var(--accent);color:white;cursor:pointer}.home-main{padding-top:20px}.hero{border-radius:24px;min-height:264px;display:flex;align-items:center;position:relative;overflow:hidden;padding:40px 6%;color:white;background:radial-gradient(ellipse at 90% 100%,#a277ee 0%,transparent 48%),radial-gradient(ellipse at 65% 80%,#4e50db 0%,transparent 55%),linear-gradient(120deg,#18235d,#323399 70%,#6460d6);background-size:cover;background-position:center}.hero-copy{position:relative;z-index:1;max-width:70%}.eyebrow{font-size:13px;letter-spacing:.08em;color:#c9d3ff;font-weight:700}.hero h1{font-size:clamp(27px,3vw,44px);line-height:1.25;letter-spacing:-1.8px;margin:8px 0 12px}.hero p{color:#e1e6ff;margin:0 0 23px}.hero-buttons{display:flex;gap:10px;flex-wrap:wrap}.hero-art{position:absolute;right:3%;width:33%;max-width:400px;top:50%;transform:translateY(-50%)}.quick-nav{display:grid;grid-template-columns:repeat(8,1fr);background:var(--surface);border:1px solid var(--line);border-radius:18px;margin:18px 0 26px;padding:14px 0;box-shadow:var(--shadow)}.quick-nav a{display:flex;align-items:center;flex-direction:column;gap:6px;font-weight:700;border-right:1px solid var(--line);font-size:14px}.quick-nav a:last-child{border:0}.quick-nav span{font-size:30px;line-height:1.15;color:#7165ed}.quick-nav a:nth-child(1) span{color:#079c61}.quick-nav a:nth-child(2) span{color:#ed805b}.section-head{display:flex;align-items:center;gap:14px;margin-bottom:12px}.section-head h2{font-size:22px;letter-spacing:-.7px;margin:0;white-space:nowrap}.section-head h2 span{color:var(--accent)}.section-head p{font-size:13px;color:var(--muted);margin:0}.section-head>a{margin-left:auto;font-size:13px;white-space:nowrap;color:var(--muted)}.home-section{margin-bottom:28px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.content-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:var(--shadow)}.thumb{display:block;aspect-ratio:2.1;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.placeholder{display:flex;align-items:center;justify-content:center;gap:8px;font-size:34px;font-weight:800;background:linear-gradient(135deg,#192763,#6558d5);color:white}.placeholder span{font-size:14px}.card-body{padding:14px}.card-body h3{font-size:16px;line-height:1.45;margin:0 0 7px;overflow-wrap:anywhere}.card-body p{font-size:13px;color:var(--muted);margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.meta{font-size:12px;color:var(--muted)}.prompts .content-card{border-top:3px solid #a698f5}.coding .content-card{border-top:3px solid #65bde0}.empty{grid-column:1/-1;border:1px dashed var(--line);background:var(--surface);border-radius:12px;padding:24px;color:var(--muted);font-size:14px}.empty a{color:var(--accent);font-weight:700}.bottom-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(110deg,#263b87,#6650cd);color:white;border-radius:20px;padding:24px 40px;margin:36px 0}.bottom-banner h2{margin:0;font-size:23px}.bottom-banner p{margin:5px 0 0;color:#dce4ff}.site-footer{background:var(--surface);border-top:1px solid var(--line);margin-top:30px}.footer-inner{display:flex;justify-content:space-between;padding:28px 0;color:var(--muted);font-size:13px}.footer-inner strong{font-size:18px;color:var(--ink)}.archive{min-height:55vh;padding:30px 0}.article-wrap{max-width:900px;padding:32px 0}.article{background:var(--surface);padding:36px;border-radius:16px;border:1px solid var(--line);margin-bottom:20px;overflow-wrap:anywhere}.article h1{font-size:clamp(25px,4vw,38px);line-height:1.3;margin:0 0 15px}.entry-content{margin-top:24px;line-height:1.85}.entry-content a{color:var(--accent);text-decoration:underline}.entry-content pre{overflow:auto;background:var(--bg);padding:15px}.entry-content table{border-collapse:collapse;max-width:100%}.entry-content td,.entry-content th{border:1px solid var(--line);padding:8px}.comment-form textarea{width:100%}.comment-list{padding-left:20px}.navigation{margin-top:25px}.page-numbers{padding:7px}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1100px){.header-inner{gap:12px}.nav{gap:12px;font-size:13px}.brand{font-size:18px}.section-head p{display:none}}@media(max-width:900px){.header-inner{flex-wrap:wrap;min-height:62px;padding:10px 0}.mobile-toggle{display:block;margin-left:auto}.nav{display:none;order:4;width:100%;flex:0 0 100%;flex-wrap:wrap;justify-content:flex-start;padding:12px 0}.nav.open{display:flex}.nav ul{flex-wrap:wrap}.actions{gap:5px}.actions .pill{padding:6px 10px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:28px;min-height:235px}.hero-copy{max-width:75%}.hero-art{right:0;width:30%}}@media(max-width:560px){.wrap,.header-inner{width:calc(100% - 28px)}.header-inner{gap:7px}.brand{font-size:16px}.brand-mark{font-size:19px;padding:0 6px}.actions{font-size:11px}.actions button,.mobile-toggle{font-size:20px}.actions .pill{padding:5px 8px}.hero{padding:24px 18px 100px;min-height:280px;border-radius:17px}.hero-copy{max-width:100%}.hero h1{font-size:29px;letter-spacing:-1px}.hero p{font-size:13px;margin-bottom:14px;max-width:95%}.hero-buttons{gap:6px}.hero-buttons .pill{font-size:12px;padding:8px 12px}.hero-art{width:125px;top:auto;bottom:0;right:10px;transform:none}.quick-nav{grid-template-columns:repeat(4,1fr);gap:15px 0;padding:14px 0}.quick-nav a{font-size:12px}.quick-nav a:nth-child(4){border:0}.quick-nav span{font-size:25px}.section-head h2{font-size:18px;white-space:normal}.cards{gap:9px}.card-body{padding:10px}.card-body h3{font-size:14px}.card-body p{font-size:12px}.bottom-banner{padding:20px;align-items:flex-start;flex-direction:column}.bottom-banner h2{font-size:20px}.article{padding:20px}.footer-inner{gap:12px;flex-wrap:wrap}}

/* 1.1 section-specific cards */
.modu-icon{display:inline-block;vertical-align:middle;flex-shrink:0}.section-head h2{display:flex;align-items:center;gap:6px}.section-head h2 .modu-icon{width:23px;height:23px}.modu-card{display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s}.modu-card:hover{transform:translateY(-2px);box-shadow:0 8px 23px #25335718}.modu-card .card-body{flex:1;display:flex;flex-direction:column;min-width:0}.modu-thumb{position:relative;background:linear-gradient(135deg,#18214e,#6456cd);margin:0;aspect-ratio:2.25}.tone-1{--tint:#e8f7f0;--chip:#116a4c;--art:#35b99c}.tone-0{--tint:#fcebf5;--chip:#b32772;--art:#7665ef}.tone-2{--tint:#eeebff;--chip:#6250cb;--art:#8d6ef2}.tone-3{--tint:#fff1df;--chip:#a65c13;--art:#e6a34c}.modu-news.tone-1 .modu-thumb,.modu-learn.tone-1 .modu-thumb{background:linear-gradient(120deg,#123b3b,#33958e)}.modu-news.tone-2 .modu-thumb,.modu-learn.tone-2 .modu-thumb{background:linear-gradient(120deg,#17214e,#795bd3)}.modu-news.tone-3 .modu-thumb,.modu-learn.tone-3 .modu-thumb{background:linear-gradient(120deg,#302451,#a16f9e)}.art-scene{display:flex;position:relative;align-items:center;justify-content:center;width:100%;height:100%;min-height:75px;overflow:hidden;background:radial-gradient(ellipse at 50% 100%,#ffffff22,transparent 70%)}.art-tile{display:grid;place-items:center;width:60px;height:60px;border-radius:15px;background:linear-gradient(145deg,#ffffff66,#ffffff12);border:1px solid #ffffff80;box-shadow:0 8px 24px #0003,inset 0 0 12px #ffffff33;transform:rotate(-9deg);color:#fff}.art-tile svg{width:38px;height:38px}.art-orbit{position:absolute;width:78%;height:43%;border:1px solid #ffffff55;border-radius:50%;transform:rotate(-14deg)}.art-spark{position:absolute;top:12%;right:17%;color:#fff;font-size:20px}.thumb-label{position:absolute;top:9px;left:10px;border-radius:999px;background:#fff;color:#3545a5;padding:3px 9px;font-size:11px;font-weight:750}.card-top{display:flex;align-items:center;gap:6px;margin-bottom:9px;min-width:0}.category-chip{display:inline-block;align-self:flex-start;background:var(--tint,#edf1fa);color:var(--chip,#485675);font-size:11px;font-weight:750;padding:3px 8px;border-radius:999px;white-space:nowrap}.modu-prompts{background:linear-gradient(150deg,var(--tint),var(--surface) 150%);border-top:1px solid var(--line)!important}.modu-copy,.modu-save{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:7px;padding:4px 7px;font-size:11px;font-weight:700;white-space:nowrap}.modu-copy{margin-left:auto}.modu-copy svg,.modu-save svg,.card-meta svg{width:14px;height:14px}.modu-save[aria-pressed=true]{color:var(--accent);background:var(--tint)}.modu-save[aria-pressed=true] svg{fill:currentColor}.tool-layout{display:flex;gap:12px;align-items:flex-start}.tool-symbol{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:12px;background:var(--bg);color:var(--tool-color);font-size:25px;font-weight:800;overflow:hidden}.tool-symbol img{width:100%;height:100%;object-fit:contain}.tool-text{min-width:0;flex:1}.tool-text .card-top{justify-content:space-between;margin:0 0 4px;flex-wrap:wrap}.tool-text h3{margin:0}.tool-text p{margin-bottom:6px}.tool-link{color:var(--accent);font-size:12px;font-weight:700}.coding-layout{display:flex;gap:12px;align-items:flex-start}.coding-layout>div{min-width:0;flex:1}.coding-art{flex:0 0 82px;height:88px;overflow:hidden;border-radius:10px;background:linear-gradient(145deg,var(--tint),var(--art));display:block}.coding-art img{width:100%;height:100%;object-fit:cover}.coding-art .art-tile{width:40px;height:40px;border-radius:8px}.coding-art .art-tile svg{width:26px;height:26px}.coding-art .art-scene{height:100%}.modu-coding{background:linear-gradient(140deg,var(--tint),var(--surface) 85%);border-top:1px solid var(--line)!important}.modu-community .category-chip{margin-bottom:7px}.card-meta{display:flex;align-items:center;gap:6px;margin-top:auto;flex-wrap:wrap}.card-meta img{border-radius:50%;width:24px;height:24px}.meta-spacer{flex:1}.modu-card h3{letter-spacing:-.25px}.modu-card .card-body p{overflow-wrap:anywhere}.modu-prompts .card-body p{margin-bottom:0}html[data-theme=dark] .modu-prompts,html[data-theme=dark] .modu-coding{background:var(--surface)}@media(max-width:560px){.coding-layout,.tool-layout{flex-direction:column;gap:7px}.coding-art{width:100%;flex-basis:auto;height:76px}.tool-symbol{width:36px;height:36px;flex-basis:36px;font-size:20px}.card-top{flex-wrap:wrap;gap:4px}.modu-copy{margin-left:auto}.modu-save{padding:4px}.category-chip{padding:3px 6px}.modu-thumb{aspect-ratio:1.65}.card-meta{font-size:10px}.art-tile{width:45px;height:45px}.art-tile svg{width:29px;height:29px}}

/* Curated YouTube videos */
.modu-yt-mark{display:inline-flex!important;align-items:center;justify-content:center;background:#f03;color:#fff!important;border-radius:6px;width:29px;height:21px;font-size:13px;vertical-align:3px;line-height:1}.modu-video-thumb{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#18213a}.modu-video-thumb img{display:block;width:100%;height:100%;object-fit:cover}.modu-video-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;background:#f03;color:white;width:48px;height:34px;border-radius:9px;font-size:17px;box-shadow:0 2px 12px #0004}.modu-video-card:hover .modu-video-play{background:#c00}.modu-video-card .card-body h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em}.modu-video-player{aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden}.modu-video-player iframe{width:100%;height:100%;border:0;display:block}.modu-video-archive .section-head h1{font-size:clamp(22px,3vw,32px);margin:0}.modu-video-archive .section-head{flex-wrap:wrap}.modu-video-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:900px){.modu-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.modu-video-grid{gap:9px}.modu-video-card .card-body{padding:10px}.modu-video-card .card-body h3{font-size:13px}.modu-video-section .section-head h2{font-size:18px}.modu-video-play{width:38px;height:28px}}
