
/* --- Root Variables & Global Styles (AI / Modern Theme) --- */
:root {
    --bg-color: #0A0A1A;
    --primary-color: #1A1A2E;
    --secondary-color: #0E0E24;
    --accent-color: #7F5AF0;
    --accent-color-hover: #9D86F5;
    --text-color: #E0E0E0;
    --text-muted-color: #94A3B8;
    --border-color: #2A2A4E;
    --font-family: 'Inter', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

a:hover {
    color: var(--accent-color-hover);
}

h1, h2, h3, h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    font-weight: 400;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.main-nav a:hover::after, .main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* --- Main Content & Layout --- */
.main-content {
    padding: 3rem 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.main-area {
    width: 100%;
}

.sidebar {
    width: 100%;
}

@media (min-width: 992px) {
    .main-grid {
        grid-template-columns: 3fr 1fr;
    }
}

/* --- Homepage Intro Section --- */
.intro-section {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
}
.intro-section h1 {
    color: var(--accent-color);
    font-size: 2.8rem;
}
.intro-section p {
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Blog Articles Grid --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    position: relative;
}
.articles-section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    border-radius: 2px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(127, 90, 240, 0.2);
}

.article-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.article-card-content p {
    flex-grow: 1;
    color: var(--text-muted-color);
}

.read-more-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 1rem;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--accent-color-hover);
    color: #fff;
    transform: scale(1.05);
}

/* --- Sidebar Widgets --- */
.widget {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.75rem;
}

.widget ul li a::before {
    content: '→ ';
    color: var(--accent-color);
}

.promo-text {
    background-color: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
    padding: 1.2rem;
    font-style: italic;
    color: var(--text-muted-color);
    border-radius: 0 8px 8px 0;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.site-footer p {
    margin: 0;
    color: var(--text-muted-color);
}

/* --- Article Page Specific Styles --- */
.article-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.article-header h1 {
    font-size: 3rem;
    color: var(--accent-color);
}

.article-meta {
    color: var(--text-muted-color);
    font-size: 0.9rem;
    margin-top: -0.5rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    margin-top: 2rem;
    color: var(--accent-color-hover);
}

.article-content ul {
    list-style-type: '✓ ';
    list-style-position: inside;
    padding-left: 1rem;
    margin-bottom: 1rem;
}
.article-content ul li {
    margin-bottom: 0.5rem;
    color: var(--text-muted-color);
}

.cta-section {
    background: linear-gradient(145deg, var(--accent-color), #5D3FD3);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.cta-section p {
    color: #f0f0f0;
}

.cta-btn {
    display: inline-block;
    background-color: #fff;
    color: var(--accent-color);
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

/* --- Simple Page Styles (About, Contact, etc.) --- */
.simple-page {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    min-height: 50vh;
}

.simple-page h1 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
}

.simple-page p {
    font-size: 1.1rem;
    color: var(--text-muted-color);
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    h1 { font-size: 2rem; }
    .article-header h1 { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.5rem;
    }
    .main-nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }
     .main-nav a::after {
        display: none;
     }
}
