/* ========================================
   BASE STYLES (Reset & Defaults)
   Compatible with Bootstrap - use scoped selectors
   ======================================== */

/* 
 * NOTE: Do NOT use global resets here as they conflict with Bootstrap.
 * Bootstrap already provides box-sizing and basic resets.
 * Only add theme-specific overrides below.
 */

/* Reset margins for figures within theme components */
.vietcf-material figure,
.vietcf-material blockquote {
    margin: 0;
    padding: 0;
}

/* HTML & Body */
html {
    font-size: 100%; /* 16px base */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    /* color: var(--color-gray-600); */
    background-color: var(--color-white);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: none;
    word-break: keep-all;

    @media screen and (max-width:780px) {
        font-size: var(--font-size-sm);  
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

/* Links - scoped to theme elements only */
.vietcf-material a {
    color: inherit;
    text-decoration: none;
    /* transition: color var(--transition-fast); */
}

.vietcf-material a:hover {
    text-decoration: none;
}

/* Lists - scoped to specific theme components */
.nav-list,
.category-list,
.footer-links,
.material-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Images - scoped to theme elements */
.vietcf-material img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons - Only style theme-specific buttons, not Bootstrap .btn */
.vietcf-btn-reset {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

/* Form Elements - Only for theme-specific forms */
.vietcf-material input,
.vietcf-material textarea,
.vietcf-material select {
    font-family: inherit;
    font-size: inherit;
}

input::placeholder {
    color: var(--color-gray-500);
}

/* Focus Styles (Accessibility) */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
