/* BlackWave Theme - Professional & Authoritative */

/* --- Globālās vērtības un stili --- */
:root {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #00BFFF;
    --border-color: #333333;
    --font-family: 'JetBrains Mono', monospace;
    --container-width: 1100px;
    --border-radius: 4px;
    --box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

body {
    font-family: var(--font-family);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 20px;
}

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

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

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

li {
    margin-bottom: 10px;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Galvene un navigācija --- */
.site-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
}

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

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

.site-title a {
    color: #ffffff;
}

.site-title a:hover {
    text-decoration: none;
    color: var(--accent-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.1rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-page {
    border-bottom-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
}

/* --- Galvenā satura izkārtojums --- */
.main-content {
    padding: 50px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 800px) {
    .content-layout {
        grid-template-columns: 2.5fr 1fr;
    }
}

main {
    max-width: 100%;
    overflow: hidden;
}

/* --- Raksti un priekšskatījumi --- */
.articles-list {
    display: grid;
    gap: 40px;
}

.post-preview {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.post-preview h2 a {
    color: #ffffff;
}

.post-preview h2 a:hover {
    color: var(--accent-color);
}

.read-more {
    display: inline-block;
    font-weight: 700;
    margin-top: 15px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.article-header h1 {
    margin-bottom: 10px;
}

.article-meta {
    font-size: 0.9rem;
    color: #aaa;
}

/* --- Sānjosla --- */
.sidebar-widget {
    background-color: var(--surface-color);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: 12px;
}

.sidebar-widget a {
    display: block;
    font-weight: 700;
}

/* --- Aicinājums uz darbību --- */
.cta-section {
    background-color: var(--surface-color);
    border: 1px solid var(--accent-color);
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    border-radius: var(--border-radius);
}

.cta-section h2 {
    margin-top: 0;
    color: var(--accent-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 14px 30px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 15px;
    border-radius: var(--border-radius);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    text-decoration: none;
    background-color: #ffffff;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* --- Kontaktforma --- */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #ffffff;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    border-radius: var(--border-radius);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: var(--accent-color);
    color: #121212;
    border: none;
    padding: 14px 35px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease-in-out;
}

.contact-form button:hover {
    background-color: #ffffff;
}

/* --- Kājenes --- */
.site-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 50px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.copyright {
    font-size: 1rem;
    color: #aaa;
}

/* --- Responsīvie pielāgojumi --- */
@media (max-width: 799px) {
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}
