:root {
    --primary-color: #A020F0; /* Vibrant Purple */
    --primary-hover-color: #BF40BF; /* Lighter Purple */
    --secondary-color: #E58E26; /* Muted Orange */
    --secondary-hover-color: #BF721D; /* Darker Orange */
    --text-color: #FFFFFF; /* White */
    --background-gradient: linear-gradient(135deg, #4c004c, #000000); /* Rich Purple to Black Gradient */
    --card-background-color: rgba(255, 255, 255, 0.05); /* Glassmorphism effect */
    --border-color: rgba(255, 255, 255, 0.1); /* Subtle white border */
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    background: var(--background-gradient);
    color: var(--text-color);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Global Containers --- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    padding: 2rem 0;
}

section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}
section:last-of-type {
    border-bottom: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1em; }
h3 { font-size: 1.8rem; font-weight: 600; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.7); }

p {
    margin-bottom: 1em;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #FFFFFF;
}

.inline-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-icon {
    height: 160px;
    width: auto;
}

.footer-icon {
    height: 200px;
    width: auto;
    margin-bottom: 1rem;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

nav a.active, nav a:hover {
    color: var(--primary-color);
}

/* --- Links --- */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* --- Buttons --- */
.button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.button:hover {
    background-color: var(--secondary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- Lists --- */
ul, ol {
    margin-left: 1.5rem; /* Adjusted for native bullets/numbers */
    margin-bottom: 1.5em;
    padding: 0;
}

ul {
    list-style-type: disc; /* Standard bullet */
}

ul li {
    margin-bottom: 0.8em;
    padding-left: 0.5rem; /* Space between bullet and text */
}

ol {
    list-style-type: decimal;
}

ol li {
    margin-bottom: 0.8em;
    padding-left: 0.5rem;
}

/* --- Card --- */
.card {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- Addon Sidebar Options (Tools Page) --- */
.addon-sidebar-options li {
    margin-bottom: 1rem;
    padding: 0.8rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.03); /* Very subtle background */
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.addon-sidebar-options li:hover {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly more visible on hover */
    transform: translateY(-3px); /* Subtle lift effect */
}

.addon-sidebar-options li a {
    font-size: 1.3rem; /* Significantly larger font size */
    font-weight: 600;
    color: var(--primary-color);
    display: block; /* Make the whole area clickable */
    text-decoration: none;
}

.addon-sidebar-options li a:hover {
    color: var(--primary-hover-color);
    text-decoration: none;
}

.tools-sidebar-heading {
    margin-top: 3rem; /* Add some space above the heading */
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* --- Code Blocks/Preformatted Text --- */
pre {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5em;
}

code {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f89588;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.9em;
}

/* --- Footer --- */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem;
    margin-top: 5rem;
    background-color: rgba(10, 10, 10, 0.5);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .container {
        padding: 0 1rem;
    }
    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    p { font-size: 1rem; }
    ul, ol {
        margin-left: 1.5rem;
    }
    nav {
        flex-direction: column;
    }
}
