:root {
  --bg-color: #1c1d29;
  --text-color: white;
  --text-secondary: lightgrey;
  --header-gradient: linear-gradient(to right, #435db5, #35d977);
}

[data-theme="light"] {
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-secondary: #666666;
  --header-gradient: linear-gradient(to right, #4a90e2, #50c878);
}

body {
    background-color: var(--bg-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.content-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 15%;
    box-sizing: border-box;
}

h1, h2, h3, h4 {
    color: var(--text-color) !important;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

p, li {
    color: var(--text-secondary) !important;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header-gradient);
    padding: 15px 40px;
    width: 100%;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.theme-toggle svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.back-button {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.favicon {
    height: 32px;
}

.main-title {
    color: aqua;
    font-size: 4.2rem;
}

@media (max-width: 1200px) {
    .content-container {
        padding: 30px 10%;
    }
}

@media (max-width: 768px) {
    .content-container {
        padding: 20px 5%;
    }

    header {
        padding: 10px 20px;
    }

    p, li {
        font-size: 1rem;
        line-height: 1.7;
    }
}

body * {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.copyright-notice {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

[data-theme="light"] .copyright-notice {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.article-meta {
    margin: 1rem 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-date {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 0.5rem;
}

.article-author {
    color: #e14eca;
    font-size: 0.9em;
    font-weight: 600;
}
