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

:root {
    --primary-color: #e91e8c;
    --secondary-color: #b967ff;
    --dark-bg: #1a0b2e;
    --darker-bg: #0d0520;
    --text-light: #f0e6ff;
    --card-bg: #2d1b4e;
    --hover-color: #3d2560;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 40px;
}

.site-title {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.post-title {
    color: var(--secondary-color);
    font-size: 2.2em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-subtitle {
    color: var(--text-light);
    opacity: 0.8;
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 40px;
}

h2 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

ul {
    padding-left: 40px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    line-height: 1.6;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    color: var(--secondary-color);
}

code {
    background: var(--card-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

pre {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background: transparent;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 2px solid var(--primary-color);
    opacity: 0.8;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.tooltip-trigger {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: help;
    text-decoration: underline;
    font-style: italic;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.tooltip-trigger:hover {
    opacity: 0.8;
}

.tooltip-popup {
    position: fixed;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    font-size: 0.95em;
    line-height: 1.6;
}

.tooltip-popup.active {
    display: block;
}

.tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2em;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.tooltip-close:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .post-title {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.4em;
    }

    .tooltip-popup {
        max-width: 500px;
        font-size: 0.9em;
    }
}
