/* Minecraft Color Codes page only.
   Uses variables and shared header/footer styles from /assets/css/global.css */

.cc-hero{
    padding:74px 0 58px;
    overflow:hidden
}
.cc-hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);
    gap:52px;
    align-items:center
}
.cc-hero h1{
    margin:0;
    max-width:780px;
    font-size:clamp(2.8rem,6vw,5.25rem);
    line-height:.98;
    letter-spacing:-.06em
}
.cc-hero h1 span{color:var(--green2)}
.cc-hero-copy{
    max-width:780px;
    margin:22px 0 0;
    color:#bdc8bf;
    font-size:1.08rem;
    line-height:1.75
}
.cc-trust-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:24px
}
.cc-trust-row span{
    padding:7px 10px;
    border:1px solid #314036;
    border-radius:999px;
    background:#101713;
    color:#aebbb0;
    font-size:.8rem;
    font-weight:750
}
.cc-hero-preview{
    border:1px solid #2a392f;
    border-radius:22px;
    background:
        linear-gradient(145deg,rgba(120,214,75,.09),rgba(255,214,90,.035)),
        #101713;
    padding:18px;
    box-shadow:var(--shadow)
}
.cc-terminal{
    min-height:320px;
    padding:22px;
    border-radius:15px;
    border:1px solid #334238;
    background:#070a08;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:16px;
    box-shadow:inset 0 0 36px rgba(0,0,0,.46)
}
.cc-terminal-head{
    position:absolute;
    align-self:flex-start;
    margin-top:-262px;
    display:flex;
    gap:6px
}
.cc-terminal-head span{
    width:8px;height:8px;border-radius:50%;background:#475349
}
.cc-terminal-line{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:15px;
    align-items:center
}
.cc-terminal-line code{
    color:#809087;
    font:700 .78rem ui-monospace,SFMono-Regular,Menlo,monospace
}
.cc-terminal-line b{
    font:900 1.38rem ui-monospace,SFMono-Regular,Menlo,monospace;
    text-shadow:2px 2px 0 rgba(0,0,0,.65)
}
.c-gold{color:#FFAA00}.c-aqua{color:#55FFFF}.c-green{color:#55FF55}.c-red{color:#FF5555}

.cc-tool-shell{
    padding:28px 0 66px
}
.cc-tool-heading{
    display:flex;
    justify-content:space-between;
    gap:26px;
    align-items:end;
    margin-bottom:18px
}
.cc-tool-heading h2,
.cc-section-head h2{
    margin:0;
    font-size:clamp(1.9rem,4vw,3rem);
    line-height:1.05;
    letter-spacing:-.045em
}
.cc-tool-heading p:not(.eyebrow),
.cc-section-head>p:not(.eyebrow){
    max-width:800px;
    margin:10px 0 0;
    color:#aeb9b0
}
.cc-mini-link{
    flex:0 0 auto;
    color:#ceffb8;
    text-decoration:none;
    font-weight:850
}
.cc-mini-link:hover{color:#fff}

.cc-studio{
    display:grid;
    grid-template-columns:minmax(0,.92fr) minmax(380px,1.08fr);
    gap:14px;
    align-items:start
}
.cc-card{
    border:1px solid #29372d;
    border-radius:18px;
    background:linear-gradient(180deg,#121a14,#0e1510);
    box-shadow:0 14px 38px rgba(0,0,0,.13)
}
.cc-builder{padding:22px}
.cc-preview-card{
    position:sticky;
    top:calc(var(--header-height) + 14px);
    padding:22px
}
.cc-output-card{
    grid-column:1/-1;
    padding:20px
}
.cc-field+ .cc-field{
    padding-top:20px;
    margin-top:20px;
    border-top:1px solid #26332a
}
.cc-label-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:8px
}
.cc-label-row label,.cc-label{
    color:#edf5eb;
    font-weight:850
}
.cc-label-row>span:last-child{
    color:#849288;
    font-size:.78rem
}
.cc-builder textarea,
.cc-output-box textarea,
.cc-hex-controls input[type="text"]{
    width:100%;
    border:1px solid #334239;
    border-radius:11px;
    background:#080d09;
    color:#e7efe8;
    outline:none;
    font:600 .91rem/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace
}
.cc-builder textarea{
    min-height:126px;
    resize:vertical;
    padding:13px
}
.cc-builder textarea:focus,
.cc-output-box textarea:focus,
.cc-hex-controls input[type="text"]:focus{
    border-color:#5c8b61;
    box-shadow:0 0 0 3px rgba(120,214,75,.09)
}
.cc-help{
    margin:8px 0 0;
    color:#849188;
    font-size:.82rem
}
.cc-help code,.cc-section code,.cc-bedrock-note code{
    color:#d5ffbf;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace
}

.cc-syntax-choice{
    display:flex;
    border:1px solid #34443a;
    border-radius:9px;
    overflow:hidden
}
.syntax-btn{
    min-width:38px;
    border:0;
    border-right:1px solid #34443a;
    padding:6px 10px;
    background:#0c120e;
    color:#9aaa9d;
    font-weight:900
}
.syntax-btn:last-child{border-right:0}
.syntax-btn.active{background:#254128;color:#dfffd1}

.cc-palette{
    display:grid;
    grid-template-columns:repeat(8,minmax(0,1fr));
    gap:7px
}
.cc-color-btn{
    aspect-ratio:1.15;
    min-height:40px;
    border:2px solid rgba(255,255,255,.11);
    border-radius:9px;
    position:relative;
    overflow:hidden;
    box-shadow:inset 0 -4px 0 rgba(0,0,0,.2);
    transition:transform .12s ease,filter .12s ease,border-color .12s ease
}
.cc-color-btn:hover{
    transform:translateY(-2px);
    filter:brightness(1.12);
    border-color:rgba(255,255,255,.42)
}
.cc-color-btn span{
    position:absolute;
    right:4px;
    bottom:3px;
    padding:1px 4px;
    border-radius:4px;
    background:rgba(0,0,0,.6);
    color:#fff;
    font:800 .66rem ui-monospace,SFMono-Regular,Menlo,monospace
}

.cc-format-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px
}
.cc-format-grid button{
    display:grid;
    grid-template-columns:32px 1fr auto;
    gap:7px;
    align-items:center;
    min-height:46px;
    padding:7px 9px;
    border:1px solid #324138;
    border-radius:10px;
    background:#0d130f;
    color:#c2cec4;
    text-align:left
}
.cc-format-grid button:hover{
    background:#18221a;
    border-color:#48604e
}
.cc-format-grid button>strong,
.cc-format-grid button>em,
.cc-format-grid button>u,
.cc-format-grid button>s{
    color:#e9f8e5;
    text-align:center
}
.cc-format-grid button code{color:#86a18d}
.cc-builder-actions{
    display:flex;
    gap:8px;
    margin-top:20px
}
.cc-btn,.copy-btn,.copy-symbol{
    border:1px solid #3a4d3f;
    border-radius:9px;
    background:#151f17;
    color:#d8e4da;
    padding:9px 12px;
    font-weight:800
}
.cc-btn:hover,.copy-btn:hover,.copy-symbol:hover{
    background:#203023;
    border-color:#5c7b61
}

.cc-preview-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px
}
.cc-preview-title .eyebrow{margin-bottom:2px}
.cc-status-dot{
    padding:5px 8px;
    border-radius:999px;
    background:#19341e;
    color:#aaff82;
    font-size:.69rem;
    font-weight:900;
    letter-spacing:.08em
}
.cc-game-preview{
    min-height:210px;
    margin-top:15px;
    padding:28px 22px;
    border:1px solid #344039;
    border-radius:14px;
    background:
        linear-gradient(rgba(0,0,0,.44),rgba(0,0,0,.44)),
        repeating-linear-gradient(0deg,#47514a 0 2px,#424b45 2px 4px);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    align-content:center;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    text-align:center;
    font:900 clamp(1.15rem,3vw,1.8rem)/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    text-shadow:2px 2px 0 rgba(0,0,0,.72)
}
.cc-game-preview span{text-decoration-thickness:2px}
.cc-preview-note{
    margin:10px 0 0;
    color:#7f8d82;
    font-size:.78rem;
    line-height:1.5
}

.cc-output-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
}
.cc-output-box{
    min-width:0;
    padding:13px;
    border:1px solid #29372e;
    border-radius:12px;
    background:#0b110d
}
.cc-output-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:8px
}
.cc-output-head strong{
    font-size:.88rem
}
.copy-btn{
    padding:6px 8px;
    font-size:.75rem
}
.cc-output-box textarea{
    min-height:76px;
    resize:vertical;
    padding:10px;
    color:#cde7c7
}

.cc-section{
    padding:70px 0
}
.cc-section.cc-alt{
    background:#0d130f;
    border-block:1px solid rgba(255,255,255,.05)
}
.cc-section-head{
    max-width:820px;
    margin-bottom:28px
}
.cc-table-wrap{
    overflow-x:auto;
    border:1px solid #29372d;
    border-radius:16px;
    background:#0e1510
}
.cc-table{
    width:100%;
    min-width:780px;
    border-collapse:collapse
}
.cc-table th,.cc-table td{
    padding:13px 14px;
    border-bottom:1px solid #263229;
    text-align:left;
    vertical-align:middle
}
.cc-table th{
    background:#121b14;
    color:#dfe8e0;
    font-size:.8rem;
    text-transform:uppercase;
    letter-spacing:.06em
}
.cc-table td{
    color:#aebbb0;
    font-size:.91rem
}
.cc-table tr:last-child td{border-bottom:0}
.cc-table tbody tr{cursor:pointer}
.cc-table tbody tr:hover{background:#121b14}
.cc-swatch{
    display:inline-block;
    width:18px;height:18px;
    margin-right:9px;
    border-radius:5px;
    border:1px solid rgba(255,255,255,.18);
    vertical-align:-4px
}
.cc-table code{
    display:inline-block;
    padding:3px 7px;
    border:1px solid #324137;
    border-radius:6px;
    background:#090e0a
}
.cc-preview-word{
    font-weight:900;
    text-shadow:1px 1px 0 #000
}
.cc-copy-code{
    border:1px solid #3b4c40;
    border-radius:8px;
    background:#172019;
    color:#d8e8d6;
    padding:6px 9px;
    font-weight:800
}
.cc-copy-code:hover{background:#213025}
.cc-bedrock-note{
    display:flex;
    gap:10px;
    margin-top:14px;
    padding:14px 16px;
    border:1px solid #48502b;
    border-radius:12px;
    background:rgba(221,214,5,.055);
    color:#aeb9b0
}
.minecoin{color:#DDD605}

.cc-format-cards{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px
}
.cc-format-cards article{
    display:grid;
    grid-template-columns:52px 1fr;
    gap:13px;
    padding:17px;
    border:1px solid #29372d;
    border-radius:13px;
    background:#101713
}
.cc-format-cards article>span{
    display:grid;
    place-items:center;
    width:48px;height:48px;
    border-radius:10px;
    background:#1b2c1e;
    border:1px solid #3f5c43;
    color:#cfffaf;
    font:900 .88rem ui-monospace,SFMono-Regular,Menlo,monospace
}
.cc-format-cards strong{display:block}
.cc-format-cards p{margin:4px 0 0;color:#89968c;font-size:.84rem}
.cc-callout{
    margin-top:18px;
    padding:15px 17px;
    border:1px solid #3a553f;
    border-radius:12px;
    background:linear-gradient(135deg,rgba(120,214,75,.07),rgba(255,214,90,.03));
    color:#aeb9b0
}
.cc-callout strong{color:#e7f4e2}

.cc-hex-grid{
    display:grid;
    grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);
    gap:12px
}
.cc-hex-controls,.cc-hex-output{padding:20px}
.cc-hex-controls label:not(.cc-check){
    display:block;
    margin:0 0 7px;
    color:#dfe9df;
    font-weight:800
}
.cc-hex-controls label:not(:first-child){margin-top:17px}
.cc-hex-controls input[type="text"]{padding:11px}
.cc-color-input{
    display:grid;
    grid-template-columns:58px 1fr;
    gap:9px
}
.cc-color-input input[type="color"]{
    width:58px;height:44px;
    padding:3px;
    border:1px solid #38493e;
    border-radius:9px;
    background:#0d130f
}
.cc-check{
    display:flex;
    gap:8px;
    align-items:center;
    color:#adb9b0;
    margin-top:12px
}
.cc-check input{accent-color:var(--green)}
.cc-hex-preview{
    min-height:112px;
    margin-bottom:10px;
    padding:20px;
    display:grid;
    place-items:center;
    text-align:center;
    border:1px solid #364238;
    border-radius:13px;
    background:#070a08;
    font:900 clamp(1.35rem,3vw,2rem) ui-monospace,SFMono-Regular,Menlo,monospace;
    text-shadow:2px 2px 0 #000
}
.cc-hex-output .cc-output-box+.cc-output-box{margin-top:10px}

.cc-steps{
    display:grid;
    gap:10px;
    list-style:none;
    padding:0;
    margin:0
}
.cc-steps li{
    display:grid;
    grid-template-columns:48px 1fr;
    gap:14px;
    padding:17px;
    border:1px solid #29372d;
    border-radius:13px;
    background:#101713
}
.cc-steps li>span{
    display:grid;
    place-items:center;
    width:42px;height:42px;
    border-radius:10px;
    background:linear-gradient(145deg,#8fe05e,#5eaf3e);
    color:#0b1909;
    font-weight:1000
}
.cc-steps strong{color:#edf6eb}
.cc-steps p{margin:3px 0 0;color:#98a69b}

.cc-intent-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px
}
.cc-intent-card,.cc-trouble-grid article,.cc-key-grid article{
    padding:18px;
    border:1px solid #29372d;
    border-radius:14px;
    background:#101713
}
.cc-code-pill{
    display:inline-block;
    padding:5px 8px;
    border:1px solid #3d5742;
    border-radius:7px;
    background:#17251a;
    color:#c9ffae;
    font:900 .82rem ui-monospace,SFMono-Regular,Menlo,monospace
}
.cc-intent-card h3{margin:13px 0 6px;font-size:1.03rem}
.cc-intent-card p{margin:0;color:#929f96;font-size:.88rem}

.cc-key-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px
}
.cc-key-grid article>span{
    display:block;
    color:#8e9c92;
    font-size:.76rem;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.08em
}
.cc-key-grid strong{
    display:block;
    margin:7px 0 4px;
    color:#e9f4e6
}
.cc-key-grid p{margin:0;color:#89958d;font-size:.84rem}
.copy-symbol{margin-top:8px}
#sectionSymbol{font-size:1.8rem;color:#dfffcd}

.cc-trouble-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
}
.cc-trouble-grid strong{color:#e9f4e6}
.cc-trouble-grid p{margin:5px 0 0;color:#8f9c93}

.cc-narrow{
    width:min(820px,calc(100% - 32px))
}
.cc-faq{
    display:grid;
    gap:8px
}
.cc-faq details{
    border:1px solid #29372d;
    border-radius:12px;
    background:#101713;
    overflow:hidden
}
.cc-faq summary{
    cursor:pointer;
    padding:15px 17px;
    color:#e7f0e7;
    font-weight:850
}
.cc-faq p{
    margin:0;
    padding:0 17px 16px;
    color:#96a49a
}

.cc-related-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
}
.cc-related-grid a{
    display:block;
    padding:20px;
    border:1px solid #29372d;
    border-radius:14px;
    background:#101713;
    text-decoration:none;
    transition:transform .15s ease,border-color .15s ease
}
.cc-related-grid a:hover{
    transform:translateY(-2px);
    border-color:#4a684f
}
.cc-related-grid span{
    color:#8d9a90;
    font-size:.78rem;
    text-transform:uppercase;
    letter-spacing:.08em
}
.cc-related-grid strong{
    display:block;
    margin-top:7px;
    color:#dfffcd;
    font-size:1.05rem
}
.cc-related-grid p{margin:6px 0 0;color:#8e9b91}
.cc-update{
    margin:18px 0 0;
    color:#718078;
    font-size:.8rem
}

.cc-toast{
    position:fixed;
    left:50%;
    bottom:24px;
    z-index:80;
    transform:translate(-50%,18px);
    padding:10px 14px;
    border:1px solid #4a684f;
    border-radius:10px;
    background:#162119;
    color:#e7f5e3;
    box-shadow:0 12px 30px rgba(0,0,0,.35);
    opacity:0;
    visibility:hidden;
    transition:.2s ease;
    pointer-events:none
}
.cc-toast.show{
    opacity:1;
    visibility:visible;
    transform:translate(-50%,0)
}

@media(max-width:980px){
    .cc-hero-grid,.cc-hex-grid{grid-template-columns:1fr}
    .cc-hero-grid{gap:28px}
    .cc-hero-preview{max-width:720px}
    .cc-studio{grid-template-columns:1fr}
    .cc-preview-card{position:static}
    .cc-output-card{grid-column:auto}
    .cc-intent-grid,.cc-key-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:780px){
    .cc-preview-card{
        position:sticky;
        top:calc(var(--header-height) + 6px);
        z-index:24;
        order:-1;
        padding:13px
    }
    .cc-studio{display:flex;flex-direction:column}
    .cc-preview-card,.cc-builder,.cc-output-card{width:100%}
    .cc-game-preview{min-height:130px;padding:16px 13px;font-size:1.03rem}
    .cc-preview-note{display:none}
}

@media(max-width:680px){
    .cc-hero{padding:48px 0 38px}
    .cc-hero h1{font-size:clamp(2.45rem,13vw,4rem)}
    .cc-hero-copy{font-size:1rem}
    .cc-terminal{min-height:270px;padding:18px}
    .cc-terminal-head{margin-top:-218px}
    .cc-terminal-line{grid-template-columns:92px 1fr;gap:10px}
    .cc-terminal-line b{font-size:1.06rem}
    .cc-palette{grid-template-columns:repeat(4,minmax(0,1fr))}
    .cc-format-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .cc-output-grid,.cc-format-cards,.cc-intent-grid,.cc-key-grid,.cc-trouble-grid,.cc-related-grid{grid-template-columns:1fr}
    .cc-tool-heading{align-items:flex-start;flex-direction:column}
    .cc-section{padding:52px 0}
    .cc-builder{padding:17px}
    .cc-output-card{padding:14px}
    .cc-bedrock-note{flex-direction:column}
}

@media(prefers-reduced-motion:reduce){
    .cc-color-btn,.cc-related-grid a,.cc-toast{transition:none}
}
