/* ===================================
   CSS Reset - The Chatbot Genius
   =================================== */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Remove default margin and padding */
html,
body,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
dl, dd, ol, ul,
form, fieldset, legend,
figure, figcaption,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Set core root defaults */
html {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: var(--line-height-base);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    color: var(--text-dark);
}

/* Remove list styles on ul, ol elements */
ul,
ol {
    list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Disable animations when toggled off */
.no-animations * {
    animation: none !important;
    transition: none !important;
}

/* Skip Navigation Link - Accessibility */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-dark);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-nav:focus {
    top: 0;
}

/* Focus Indicators for Accessibility */
a:focus, 
button:focus, 
input:focus, 
select:focus, 
textarea:focus {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Hide decorative emoji from screen readers */
.decorative-emoji {
    aria-hidden: true;
}