/* Brand font setup - Using Google Fonts */
/* Montserrat for headings (replaces Circular Standard) */
/* Poppins for body text (replaces Lato) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Update root variables with brand colors */
:root {
    --primary: #022662; /* Indigo Ink blue */
    --secondary: #f68b1f; /* Indigo Ink orange */
    --dark: #1a1a1a;
    --light: #f5f7fa;
    --paper: #ffffff;
    --sidebar-width: 30%;
    --text: #363636;
    --accent-light: #e7f0fb; /* Lighter shade of primary blue */
    --highlight: #fff1e6; /* Lighter shade of secondary orange */
}

/* Base styles with brand font */
body {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo animation */
.rotate-logo {
    animation: rotate 20s linear infinite;
    max-width: 120px;
    height: auto;
    display: block;
    margin: 20px auto;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Cover page redesign */
.cover-page {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.cover-page::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--secondary);
    opacity: 0.1;
}

.cover-content {
    position: relative;
    z-index: 2;
}

/* Update headings with brand styling */
h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: white;
    font-weight: 900;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

h2 {
    font-size: 32px;
    margin: 0 0 30px 0;
    color: var(--primary);
    font-weight: 900;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
}

h3 {
    font-size: 22px;
    margin: 30px 0 20px 0;
    color: var(--secondary);
    font-weight: 900;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
}

h4 {
    font-size: 18px;
    margin: 25px 0 15px 0;
    color: var(--dark);
    font-weight: 900;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
}
/* Logo styling */
.cover-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 30px;
}

.sidebar-logo {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    display: block;
}

/* Enhanced navigation styling */
.navigation {
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    background-color: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-button:hover {
    background-color: #e07a10;
}

.nav-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#page-indicator {
    color: white;
    font-weight: bold;
    align-self: center;
}

/* Sidebar enhancements */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--accent-light);
    padding: 40px 30px;
    border-left: 1px solid #e0e0e0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.best-practice {
    background-color: var(--highlight);
    border-left: 3px solid var(--secondary);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

/* Technique preview enhancement */
.technique-preview {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    margin: 30px 0;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(2, 38, 98, 0.1);
}

.quality-title {
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

/* Link styling */
a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* TOC styling */
.toc-list .page-ref {
    color: var(--secondary);
    font-weight: bold;
}
/* Content pages header */
.page-header {
    background-color: var(--primary);
    padding: 15px 40px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--secondary);
}

.header-logo {
    height: 40px;
    width: auto;
    margin-right: 20px;
}

.header-title {
    color: white;
    font-size: 24px;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

/* Enhanced callout */
.callout {
    background-color: var(--highlight);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    border-left: 4px solid var(--secondary);
}

.callout::before {
    content: '!';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 24px;
    height: 24px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.callout p {
    margin-left: 30px;
    margin-bottom: 0;
}

/* Enhanced limitations list */
.limitations-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.limitations-list li::before {
    content: "•";
    color: var(--secondary);
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -2px;
    font-weight: bold;
}

/* Print compatibility */
@media print {
    .page-header {
        background-color: white !important;
        border-bottom: 1px solid #ccc;
    }
    
    .header-title {
        color: var(--primary) !important;
    }
    
    .navigation {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 10px 20px;
    }
    
    .header-logo {
        height: 30px;
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .rotate-logo {
        max-width: 80px;
    }
}