/* CSS Reset */
* {
    margin: 0;
    padding: 0;
}

/* CSS Variables */
:root {
    --bg1: #0a0a0a;
    --bg2: #1a0a2e;
    --accent: #b412ff;
    --text: #e0e0e0;
    --link: #d18bff;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 50%, var(--bg1) 100%);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: rgba(41, 4, 65, 0.8);
    padding: 30px 20px;
    border-bottom: 3px solid var(--accent);
    text-align: center;
}

h1 {
    margin: 0;
    color: var(--accent);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: "Sekuya", system-ui;
    letter-spacing: 4px;
}

h2 {
    color: var(--link);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

section {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

section p {
    color: #d0d0d0;
    text-align: left;
    margin: 15px 0;
}

/* Typography */
strong {
    color: var(--accent);
    font-weight: bold;
}

em {
    color: var(--link);
    font-style: italic;
}

ul {
    list-style-type: square;
    padding-left: 30px;
}

li {
    margin: 10px 0;
    color: #c0c0c0;
}

/* Images */
figure {
    margin: 20px 0;
    text-align: center;
}

/* Default image style - applies to all images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--link);
}

/* Round image class - for homepage or specific images */
img.round-image {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
}

figcaption {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 10px;
    font-style: italic;
}

/* Navigation */
nav {
    background-color: rgba(41, 4, 65, 0.6);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

nav a {
    display: inline-block;
    padding: 12px 24px;
    color: var(--link);
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

nav a:hover {
    background-color: rgba(153, 0, 255, 0.3);
    color: #d080ff;
}

nav.secondary {
    text-align: right;
    background-color: rgba(41, 4, 65, 0.4);
}

/* Definition Lists */
dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

dt {
    background-color: rgba(153, 0, 255, 0.2);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    color: var(--link);
    font-family: 'Courier New', monospace;
}

dd {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 5px;
    margin: 0;
    color: #d0d0d0;
}

/* Footer */
footer {
    background-color: rgba(41, 4, 65, 0.8);
    padding: 20px;
    text-align: center;
    border-top: 3px solid var(--accent);
    margin-top: 40px;
    color: #a0a0a0;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
    text-align: center;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.ai-attribution {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    color: #888;
}

.highlight-purple {
    color: var(--accent);
    font-weight: bold;
}

.highlight-fox {
    color: #ff8c00;
    font-weight: bold;
}