/* Journal index page */
.journal-header {
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--border-light);
    padding: 4rem 0;
}

.journal-header-title {
    font-size: 3rem;
    line-height: 1;
    color: #ffffff;
}

.journal-header-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    max-width: 36rem;
}

.journal-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.journal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .journal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .journal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Journal card */
.journal-card {
    background-color: #1a1a1a;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    text-decoration: none;
    height: 100%;
}

.journal-card-img {
    width: 100%;
    height: 13rem;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.journal-card:hover .journal-card-img {
    opacity: 1;
}

.journal-card-placeholder {
    width: 100%;
    height: 13rem;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.journal-card-body {
    padding: 1.5rem;
}

.journal-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.journal-card-category {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--primary-hex);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.journal-card-read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.journal-card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.journal-card:hover .journal-card-title {
    color: var(--primary-hex);
}

.journal-card-excerpt {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.journal-card-date {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

.journal-card-arrow {
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.journal-card:hover .journal-card-arrow {
    color: var(--primary-hex);
}

.journal-empty {
    text-align: center;
    padding: 5rem 0;
}

.journal-empty-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}

/* Journal post detail */
.post-hero-image-wrapper {
    width: 100%;
    height: 18rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .post-hero-image-wrapper {
        height: 24rem;
    }
}

.post-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.post-body {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.post-back-link {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}

.post-back-link:hover {
    color: var(--primary-hex);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-meta-category {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--primary-hex);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.post-meta-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.post-meta-read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.post-meta-date {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .post-title {
        font-size: 3rem;
    }
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    border-left: 2px solid var(--primary-hex);
    padding-left: 1rem;
}

.post-content {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.25rem;
}
