/* W3 Games - Developer Guide page (resources/views/developers/guide.blade.php) */
.docs { font-size: 1.02rem; line-height: 1.85; }
.docs-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 2.5rem 2rem; margin-bottom: 2rem; border: 1px solid var(--w3-line-strong); background: radial-gradient(520px 260px at 0% 0%, rgba(124, 92, 255, .35), transparent 70%), radial-gradient(520px 260px at 100% 100%, rgba(34, 211, 238, .25), transparent 70%), var(--w3-surface); }
.docs-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: .5rem 0; }
.docs-hero p { color: var(--w3-muted); max-width: 720px; margin: 0 0 1.25rem; }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.docs-toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 1.1rem; border-radius: 16px; background: var(--w3-surface); border: 1px solid var(--w3-line); }
.docs-toc h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--w3-faint); margin-bottom: .6rem; }
.docs-toc a { display: block; padding: .35rem .65rem; border-radius: 9px; color: var(--w3-muted); font-size: .92rem; line-height: 1.5; text-decoration: none; }
.docs-toc a:hover, .docs-toc a.active { background: rgba(124, 92, 255, .16); color: #fff; }
.docs-section { scroll-margin-top: 90px; margin-bottom: 2rem; padding: 1.6rem 1.75rem; border-radius: 18px; background: var(--w3-surface); border: 1px solid var(--w3-line); }
.docs-section h2 { font-size: 1.45rem; margin: 0 0 .9rem; display: flex; align-items: center; gap: .7rem; }
.docs-section h2 .no { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--w3-grad); color: #fff; font-size: .95rem; }
.docs-section h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; color: #dbe3ff; }
.docs-section p, .docs-section li { color: #d6ddf5; }
.docs-section ul, .docs-section ol { padding-left: 1.3rem; }
.docs-section li { margin-bottom: .35rem; }
.docs-section b, .docs-section strong { color: #fff; }
.docs-section a { text-decoration: underline; text-underline-offset: 3px; }
.docs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin: 1rem 0 0; }
.docs-facts div { padding: .9rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--w3-line); }
.docs-facts b { display: block; font-size: 1.4rem; font-family: var(--w3-display); }
.docs-facts span { color: var(--w3-muted); font-size: .86rem; }
.docs-table-wrap { overflow-x: auto; border: 1px solid var(--w3-line); border-radius: 14px; margin: .8rem 0; }
.docs-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.docs-table th, .docs-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--w3-line); text-align: left; vertical-align: top; }
.docs-table th { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--w3-faint); background: rgba(255, 255, 255, .03); }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-section code { font-size: .88em; }
.docs-section pre { margin: .8rem 0; padding: 1rem 1.15rem; border-radius: 14px; background: #060913; border: 1px solid var(--w3-line); color: #d6e1ff; overflow-x: auto; font-size: .86rem; line-height: 1.65; }
.docs-section pre code { background: none; padding: 0; color: inherit; }
.docs-callout { display: flex; gap: .85rem; padding: 1rem 1.15rem; margin: 1rem 0; border-radius: 14px; border: 1px solid; line-height: 1.7; }
.docs-callout i { font-size: 1.3rem; margin-top: .15rem; }
.docs-callout p { margin: 0; }
.docs-tip { background: rgba(52, 211, 153, .09); border-color: rgba(52, 211, 153, .35); } .docs-tip i { color: #6ee7b7; }
.docs-warn { background: rgba(251, 191, 36, .09); border-color: rgba(251, 191, 36, .38); } .docs-warn i { color: #fcd34d; }
.docs-info { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .33); } .docs-info i { color: #67e8f9; }
.docs-yes { color: #6ee7b7; } .docs-no { color: #fda4af; }
.docs-flow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0; }
.docs-flow span { padding: .35rem .85rem; border-radius: 999px; background: rgba(124, 92, 255, .16); border: 1px solid rgba(124, 92, 255, .4); font-size: .9rem; color: #fff; }
.docs-flow i { color: var(--w3-faint); }
@media (max-width: 991.98px) {
    .docs-layout { grid-template-columns: 1fr; }
    .docs-toc { position: static; max-height: none; }
    .docs-section { padding: 1.25rem 1.1rem; }
}
@media print {
    .site-nav, .site-footer, .docs-toc { display: none !important; }
    body, .docs-section, .docs-hero { background: #fff !important; color: #000 !important; }
    .docs-section p, .docs-section li, .docs-section h2, .docs-section h3, .docs-section b { color: #000 !important; }
    .docs-layout { display: block; }
}
