/* ============================================
   GLOBAL STYLES - SOP Documentation
   ============================================ */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    /* Font Families */
    --font-primary: 'Inter', sans-serif;
    --font-headings: 'Inter', sans-serif;
    --font-monospace: 'Consolas', 'Monaco', 'Courier New', monospace;

    /* Font Sizes */
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;

    /* Colors */
    --color-primary: #e2231a;
    /* Lenovo Red */
    --color-accent: #ff8a00;
    /* Orange Accent */
    --color-text: #1f2933;
    /* Dark Slate */
    --color-text-light: #64748b;
    /* Muted Text */
    --color-background: #ffffff;
    --color-surface: #f8fafc;
    --color-border: #e2e8f0;
    --color-link: #0066cc;
    --color-link-hover: #004499;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Line Heights */
    --line-height-base: 1.6;
    --line-height-headings: 1.25;

    /* Bootstrap Dropdown Overrides - Match Navbar Gradient */
    --bs-dropdown-link-hover-color: #000;
    --bs-dropdown-link-hover-bg: #E7D2E4;
    --bs-dropdown-link-active-color: #000;
    --bs-dropdown-link-active-bg: #E6D1E2;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
/* Global reset removed to prevent conflict with MkDocs theme */

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   TYPOGRAPHY - HEADINGS
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: var(--line-height-headings);
    color: var(--color-text);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
    margin-right: 12px;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
}

/* ============================================
   TYPOGRAPHY - PARAGRAPHS & TEXT
   ============================================ */
p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

strong,
b {
    font-weight: 600;
    color: #0f172a;
}

small {
    font-size: var(--font-size-small);
    color: var(--color-text-light);
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--color-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* ============================================
   LISTS
   ============================================ */
ul,
ol {
    margin-left: 1.5rem;
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: 0.25rem;
}

/* ============================================
   CODE & PREFORMATTED TEXT
   ============================================ */
code {
    font-family: var(--font-monospace);
    font-size: 0.9em;
    background-color: var(--color-surface);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: #db2777;
    /* Pinkish red for code */
    border: 1px solid var(--color-border);
}

pre {
    background-color: #1e293b;
    /* Dark slate theme */
    color: #e2e8f0;
    padding: var(--spacing-md);
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--color-accent);
}

pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    border: none;
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

thead {
    background-color: var(--color-surface);
}

th {
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-text);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #f8fafc;
}

/* ============================================
   BLOCKQUOTES
   ============================================ */
blockquote {
    border-left: 4px solid var(--color-primary);
    background-color: #fff1f2;
    /* Light red tint */
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

/* ============================================
   IMAGES
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: var(--spacing-md) 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   UTILITIES
   ============================================ */
hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

/* Navigation Bar Background Gradient */
.navbar {
    background-image: linear-gradient(135deg,
            #F1CDD0 0%,
            #E7D2E4 35%,
            #E6D1E2 65%,
            #FEF3EA 100%) !important;
}

.nav-link {
    color: black !important;
    font-size: 18px !important;
    font-weight: 400 !important;
}

/* Dropdown Menu Styling */
.bs-dropdown-link-hover-bg,
--bs-dropdown-link-hover-bg {
    background-image: linear-gradient(135deg,
            #F1CDD0 0%,
            #E7D2E4 35%,
            #E6D1E2 65%,
            #FEF3EA 100%) !important;
    background-color: transparent !important;
}

/* Dropdown items - all states */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active,
.dropdown-menu a:hover,
.dropdown-menu a:focus,
.dropdown-menu a.active,
.dropdown-menu a:active,
.dropdown-link-hover-bg,
.dropdown-link-active-bg,
.dropdown-submenu a:hover,
.dropdown-submenu a:focus,
.dropdown-submenu a.active,
.dropdown-submenu a:active,
.dropdown-item.open,
.nav-item .dropdown-menu a:hover,
.nav-item .dropdown-menu a:focus,
.nav-item .dropdown-menu a.active,
.nav-item .dropdown-menu a:active,
.nav-item .dropdown-submenu a:hover,
.nav-item .dropdown-submenu a:focus,
.nav-item .dropdown-submenu a.active,
.nav-item .dropdown-submenu a:active
 {
    background-image: linear-gradient(135deg,
            #F1CDD0 0%,
            #E7D2E4 35%,
            #E6D1E2 65%,
            #FEF3EA 100%) !important;
    background-color: #E7D2E4 !important;
    color: black !important;
}

/* Remove Grid Background from Homepage */
body.homepage::before {
    display: none !important;
}

/* ============================================
   SITE NAME STYLING
   ============================================ */
/* Site name in navigation bar */
.navbar-brand,
.navbar .brand,
.wy-side-nav-search>a,
.wy-side-nav-search .wy-dropdown>a,
div[role="main"]>div>a.navbar-brand {
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #e2231a !important;
    /* Lenovo Red */
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* Hover effect for site name */
.navbar-brand:hover,
.navbar .brand:hover,
.wy-side-nav-search>a:hover {
    color: #ff8a00 !important;
    /* Orange accent on hover */
    text-decoration: none !important;
}