/* =============================================================================
   MicrasBot Website Stylesheet
   Color scheme inspired by MicrasWiki (MediaWiki Monobook)
   ============================================================================= */

/* CSS Variables */
:root {
    --color-primary: #0645AD;
    --color-primary-hover: #0B0080;
    --color-secondary: #0099CC;
    --color-background: #F6F6F6;
    --color-card: #FFFFFF;
    --color-text: #202122;
    --color-text-secondary: #54595D;
    --color-border: #A2A9B1;
    --color-border-light: #C8CCD1;
    --color-success: #14866D;
    --color-warning: #AC6600;

    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

    --max-width: 900px;
    --header-height: 60px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

p {
    margin: 0 0 1rem 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

code {
    font-family: var(--font-mono);
    background-color: #EAECF0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

ul, ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-card);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    background: linear-gradient(180deg, var(--color-card) 0%, var(--color-background) 100%);
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 69, 173, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-card);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Setup Section */
.setup {
    padding: 4rem 0;
    background-color: var(--color-card);
}

.setup h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

.setup-steps {
    max-width: 650px;
    margin: 0 auto;
}

.setup-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--color-text-secondary);
    margin: 0;
}

/* Commands Section */
.commands {
    padding: 4rem 0;
}

.commands h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.command-category {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-card);
}

.category-header {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--color-card);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    transition: background-color 0.2s ease;
}

.category-header:hover {
    background-color: var(--color-background);
}

.category-header.active {
    border-bottom: 1px solid var(--color-border-light);
}

.toggle-icon {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.category-content .command {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.category-content .command:last-child {
    border-bottom: none;
}

.command code {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.command p {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.admin-note {
    font-style: italic;
    color: var(--color-warning);
    font-size: 0.9rem;
    padding: 1rem 0 0.5rem;
    margin: 0;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background-color: var(--color-card);
}

.faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-background);
}

.faq-question {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--color-background);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #EAECF0;
}

.faq-question.active {
    background-color: #EAECF0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    background: var(--color-card);
}

.faq-answer p:first-child,
.faq-answer ul:first-child,
.faq-answer ol:first-child {
    margin-top: 1rem;
}

.faq-answer p:last-child,
.faq-answer ul:last-child,
.faq-answer ol:last-child {
    margin-bottom: 1rem;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-card) 100%);
}

.cta h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: var(--color-text);
    color: #C8CCD1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #C8CCD1;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #72777D;
    border-top: 1px solid #404040;
    padding-top: 1.5rem;
}

.footer-bottom p {
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .setup-step {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .features, .setup, .commands, .faq, .cta {
        padding: 3rem 0;
    }

    h2 {
        font-size: 1.5rem !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus:not(:focus-visible) {
    outline: none;
}
