:root {
    --bg-color: #0a1014;
    --surface-color: #111a21;
    --primary-color: #48cae4;
    --secondary-color: #0077b6;
    --text-main: #caf0f8;
    --text-muted: #90e0ef;
    --accent-glow: rgba(72, 202, 228, 0.3);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: #c77dff;
}

.site-header {
    background: linear-gradient(to bottom, #05080a, var(--bg-color));
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(72, 202, 228, 0.1);
}

.header-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #caf0f8, #48cae4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-style: italic;
    font-family: var(--font-heading);
}

.site-nav {
    margin-top: 2rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.site-nav a {
    color: var(--text-main);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

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

.container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    flex: 1;
    transition: max-width 0.5s ease, grid-template-columns 0.5s ease;
}

.post-content details {
    margin-bottom: 2rem;
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.post-content summary {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    color: #fff;
}

.post-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-card {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.post-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-card h2 a {
    color: #fff;
}

.post-card h2 a:hover {
    color: var(--primary-color);
}

.excerpt {
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    color: var(--text-muted);
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.category-list a:hover {
    background-color: rgba(157, 78, 221, 0.1);
    color: #fff;
    padding-left: 1rem;
}

.site-footer {
    background-color: var(--bg-color);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(72, 202, 228, 0.1);
}

body.focus-mode .site-header,
body.focus-mode .sidebar,
body.focus-mode .site-footer {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0.5s ease, margin 0.5s ease, padding 0.5s ease;
}

body.focus-mode .container {
    grid-template-columns: 1fr;
    max-width: 800px;
}

body.focus-mode .post-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

body.focus-mode .post-card:hover {
    transform: none;
    box-shadow: none;
    border: none;
}

#focus-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(72, 202, 228, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#back-home {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: var(--surface-color);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
}

body.focus-mode #back-home {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

#back-home:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateX(0) scale(1.1);
}

#back-home svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#focus-toggle:hover {
    background-color: #90e0ef;
    transform: scale(1.1);
}

#focus-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#focus-tooltip {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    white-space: nowrap;
}

#focus-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.about-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.profile-photo {
    margin-bottom: 3rem;
}

.profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 30px var(--accent-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(72, 202, 228, 0.5);
}

.about-text {
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-main);
}

.about-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .about-text {
        padding: 2rem;
    }
}