/* --- Hero --- */
.blog-hero {
    padding: 150px 0 60px;
    text-align: center;
    background: linear-gradient(rgba(11,11,11,0.9), rgba(11,11,11,0.9)), url('/images/main/probox.png');
    background-size: cover;
    background-position: center;
}

/* --- Filtrs --- */
.blog-filter {
    padding: 30px 0;
    background: #000;
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.blog-filter .container { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #333;
    color: #888;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* --- Layout --- */
.blog-main { padding: 60px 0 100px; }

/* --- Cards --- */
.featured-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.blog-card:hover { transform: translateY(-5px); border-color: var(--red); }

.card-image { position: relative; height: 200px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }

/* "Wider" stils izceltajiem */
.blog-card.wide .card-image { height: 300px; }

.card-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--red);
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.card-content { padding: 30px; }
.card-content h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 15px; line-height: 1.2; }
.card-content p { color: #888; font-size: 14px; margin-bottom: 20px; line-height: 1.6; }

.card-link {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--red);
    letter-spacing: 1px;
}

/* --- Mobile --- */
@media (max-width: 968px) {
    .featured-row { grid-template-columns: 1fr; }
}


/* Raksta lapas kopējais stils */
.post-full {
    padding-bottom: 80px;
    background: #0a0a0a;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* HERO SEKCIJA - šeit mēs "savaldām" lielo bildi */
.post-main-image {
    width: 100%;
    height: 50vh; /* Attēls aizņems 50% no ekrāna augstuma */
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.post-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Šis ir vissvarīgākais - bilde neizstiepsies, bet tiks glīti apgriezta */
    object-position: center;
}

/* Izveidojam tumšu pāreju (gradientu), lai teksts būtu salasāms, ja bilde ir gaiša */
.post-main-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(10,10,10,1), transparent);
}

/* VIRSRAKSTA STILS */
.post-header {
    max-width: 800px;
    margin: -100px auto 40px; /* Pabīdām uz augšu virs bildes */
    position: relative;
    z-index: 10;
    padding: 0 20px;
    text-align: center;
}

.post-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* TEKSTA SATURS - ierobežojam platumu, lai būtu viegli lasīt */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #ccc;
    padding: 0 20px;
}

/* GALERIJA */
.post-gallery {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* RESPONSIVE - telefoniem */
@media (max-width: 768px) {
    .post-main-image { height: 40vh; }
    .post-header h1 { font-size: 2.2rem; }
    .post-header { margin-top: -60px; }
}