:root {
    --theme: #fafafa;
    --entry: #ffffff;
    --primary: #212121;
    --secondary: #6c757d;
    --tertiary: #d4d4d4;
    --border: #e0e0e0;
    --highlight: #007bff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --theme: #1d1e20;
        --entry: #2e2e33;
        --primary: #eeeeee;
        --secondary: #b0b0b0;
        --tertiary: #6c6c6c;
        --content: #d5d5d5;
        --code-block-bg: #333;
        --border: #333;
        --highlight: #64b5f6;
    }
}

body.dark {
    --theme: #1d1e20;
    --entry: #2e2e33;
    --primary: #eeeeee;
    --secondary: #b0b0b0;
    --tertiary: #6c6c6c;
    --border: #333;
    --highlight: #64b5f6;
}

body.light {
    --theme: #f5f5f5;
    --entry: #ffffff;
    --primary: #212121;
    --secondary: #6c757d;
    --tertiary: #d4d4d4;
    --content: #212121;
    --code-block-bg: #f5f5f5;
    --border: #e0e0e0;
    --highlight: #007bff;
}

html {
    background-color: var(--theme);
}

/* --- Global Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background-color: var(--theme);
    color: var(--primary);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Layout Containers --- */
.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 850px;
    width: 100%;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Avatar Section --- */
.avatar-section {
    flex-shrink: 0;
    margin-top: 10px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--entry);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    background-color: var(--entry);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.02);
}

/* --- Info Section --- */
.info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    color: var(--primary);
}

/* --- Bio List Styling (New) --- */
.bio-list {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between lines */
    margin-bottom: 35px;
}

.bio-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    width: 100%;
    max-width: 600px;
}

/* Style for the SVG icons in the bio list */
.bio-icon {
    width: 20px;
    height: 20px;
    stroke: var(--secondary);
    flex-shrink: 0;
    opacity: 0.8;

    margin-top: 3px;
}

/* --- Buttons --- */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    background-color: var(--entry);
    color: var(--primary);
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);

    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    background-color: var(--theme);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- Header & Footer --- */
header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
        background-color: var(--entry);
}

.theme-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

footer {
    text-align: center;
    padding: 2px 20px;
    color: var(--secondary);
    font-size: 0.75rem;
    animation: fadeIn 1.2s ease;
}

.footer-content {
    margin: 5px 2px;
    opacity: 0.7;
}

/* --- Animations & Media Queries --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        margin-top: 40px;
    }
    .info-section {
        align-items: center;
    }
    .bio-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .social-links {
        justify-content: center;
    }
    h1 { font-size: 2.5rem; }
}

/* Workaround for APlayer title color */
.aplayer-title {
    color: #555555;
}

.aplayer-list-title {
    color: #555555;
}
