/* assets/site.css */

/* THEME TOKENS */
html[data-theme="dark"] {
    --bg-page: #0f0f11;
    --bg-card: #1a1a1f;
    --bg-header: #1f1f27;
    --bg-hover: #2a2a33;
    --text-main: #f5f5f8;
    --text-dim: #9b9ba8;
    --accent: #4ea0ff;
    --border-color: #2f2f3a;
    --shadow-card: 0 16px 32px rgba(0,0,0,0.6);
}

html[data-theme="light"] {
    --bg-page: #f9f9fb;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-hover: #efefef;
    --text-main: #1b1b23;
    --text-dim: #5a5a6a;
    --accent: #3b6dd8;
    --border-color: #dcdce6;
    --shadow-card: 0 16px 32px rgba(0,0,0,0.07);
}

/* GLOBAL RESETS */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

/* LAYOUT HELPERS */
.shell {
    width: 100%;
    max-width: 1200px;
    padding: 1rem 1.25rem;
    margin: 0 auto;
}

.page-wrap {
    padding-bottom: 4rem;
    padding-top: 2rem;
}

/* SUPERHEADER */
#superheader {
    background: #000;
    color: #fff;
    text-align: center;
    font-size: .8rem;
    line-height: 1.2;
    padding: .5rem 1rem;
}
#superheader a {
    color: #fff;
    text-decoration: none;
}
/* You can override this with your rotating banner include. Or hide it on some pages. */

/* HEADER / NAV */
.site-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.header-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    min-width: 0;
}
.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: .4rem;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    object-fit: cover;
}
.brand-text {
    margin-left: .75rem;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}
.brand-tagline {
    font-size: .75rem;
    font-weight: 400;
    color: var(--text-dim);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.nav-link {
    display: inline-block;
    font-size: .9rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: .5rem .75rem;
    border-radius: .4rem;
    line-height: 1.2;
    transition: background-color .12s, color .12s;
}
.nav-link:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}
.nav-link.active {
    background-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* THEME TOGGLE PILL */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: .4rem .6rem .4rem .5rem;
    cursor: pointer;
    font-size: .8rem;
    color: var(--text-main);
    line-height: 1;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.theme-toggle-track {
    position: relative;
    width: 2.5rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.theme-toggle-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform .15s ease;
}
.theme-toggle-text {
    min-width: 2.5rem;
}

/* HERO / INTRO BLOCKS */
.hero-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    border-radius: .75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 1.5rem;
}
@media(min-width:768px){
    .hero-block {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}
.hero-text h1 {
    margin: 0 0 .5rem;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--text-main);
    font-weight: 600;
}
.hero-text p {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text-dim);
}
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.btn-primary {
    background-color: var(--accent);
    border: 0;
    border-radius: .5rem;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    padding: .75rem 1rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}
.btn-primary:hover {
    filter: brightness(1.1);
}
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    color: var(--text-main);
    font-size: .9rem;
    font-weight: 500;
    padding: .75rem 1rem;
    line-height: 1.2;
    text-decoration: none;
}
.btn-outline:hover {
    background-color: var(--bg-hover);
}

/* FEATURE GRID */
.feature-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media(min-width:768px){
    .feature-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: .75rem;
    box-shadow: var(--shadow-card);
    padding: 1rem 1.25rem;
}
.feature-card h2,
.feature-card h3 {
    margin: 0 0 .5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}
.feature-card p {
    margin: 0;
    font-size: .9rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* BOT LIST / CARDS */
.bot-list-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 1rem;
}
@media(min-width:768px){
    .bot-list-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media(min-width:1024px){
    .bot-list-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}
.bot-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: .75rem;
    box-shadow: var(--shadow-card);
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}
.bot-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
.bot-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}
.bot-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .7rem;
}
.badge {
    background-color: var(--accent);
    color: #fff;
    border-radius: .4rem;
    font-weight: 600;
    padding: .3rem .5rem;
    line-height: 1.2;
    white-space: nowrap;
}
.bot-card-desc {
    margin-top: .5rem;
    font-size: .85rem;
    color: var(--text-dim);
    line-height: 1.4;
    flex-grow: 1;
}
.bot-card-cta {
    margin-top: .75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* COMMAND TABLE */
.commands-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 2rem 0 0.5rem;
}
.cmd-table-wrapper {
    overflow-x: auto;
}
.cmd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    min-width: 500px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: .5rem;
}
.cmd-table th,
.cmd-table td {
    text-align: left;
    padding: .6rem .75rem;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
    color: var(--text-main);
}
.cmd-table th {
    background-color: var(--bg-hover);
    font-weight: 600;
    white-space: nowrap;
}
.cmd-label {
    display: inline-block;
    font-family: monospace;
    font-size: .8rem;
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: .3rem;
    padding: .25rem .4rem;
    color: var(--text-main);
    white-space: nowrap;
    line-height: 1.2;
}

/* FOOTER */
.site-footer {
    background-color: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    color: var(--text-dim);
    font-size: .8rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 2rem;
}
@media(min-width:768px){
    .footer-inner {
        grid-template-columns: 1fr auto auto;
    }
}
.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    color: var(--text-main);
}
.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: .4rem;
    border: 2px solid var(--accent);
    background: var(--bg-card);
    object-fit: cover;
}
.footer-disclaimer {
    margin-top: .75rem;
    line-height: 1.4;
}
.footer-links a,
.footer-meta a {
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.6;
    display: block;
    font-size: .8rem;
}
.footer-links a:hover,
.footer-meta a:hover {
    color: var(--accent);
}
.footer-meta {
    color: var(--text-dim);
    line-height: 1.4;
}
