/* ==========================================
   JOURNAL PAGE - EXPERT DESIGN
   ========================================== */

/* Hero Section */
.journal-hero {
    position: relative;
    background: #000000;
    overflow: hidden;
    padding-top: 240px;
    padding-bottom: 120px;
}

.journal-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.journal-hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1497215842964-222b430dc094?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
}

.journal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #000000, rgba(0, 0, 0, 0.7), #000000);
}

.journal-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.journal-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(201, 162, 39, 0.4);
    background: rgba(201, 162, 39, 0.1);
    color: #c9a227;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    border-radius: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    animation: fadeUp 0.8s ease-out forwards;
}

.journal-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1;
    animation: fadeUp 0.8s ease-out 0.1s forwards;
    opacity: 0;
}

.journal-title-accent {
    color: #c9a227;
}

.journal-subtitle {
    color: #9ca3af;
    max-width: 42rem;
    margin: 0 auto;
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.75;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* Blog Grid Section */
.journal-grid-section {
    padding: 8rem 0;
    background: #000000;
    position: relative;
    z-index: 10;
}

.journal-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

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

/* Article Card */
.journal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.journal-card:hover {
    transform: translateY(-4px);
}

.journal-card-image-link {
    position: relative;
    display: block;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

.journal-card-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #171717;
}

.journal-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.7s ease-out;
}

.journal-card:hover .journal-card-image {
    transform: scale(1.1);
}

.journal-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.journal-card:hover .journal-card-image-overlay {
    opacity: 1;
}

.journal-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #262626 0%, #171717 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-card-image-placeholder-text {
    font-size: 0.75rem;
    color: #525252;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.journal-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 2px;
}

.journal-card-category-text {
    font-size: 0.75rem;
    color: #c9a227;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.journal-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.journal-card-date {
    font-size: 0.75rem;
    color: #c9a227;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.journal-card-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-family: var(--font-display);
    color: #ffffff;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    min-height: 3.6rem;
    /* Ensures consistent title height */
}

.journal-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.journal-card-title-link:hover {
    color: #c9a227;
}

.journal-card-excerpt {
    color: #9ca3af;
    font-weight: 300;
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
    font-size: 1rem;
    line-height: 1.75;
    height: 5.25rem;
    /* Fixed height for exactly 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-card-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.journal-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.journal-card:hover .journal-card-link {
    gap: 1rem;
    color: #c9a227;
}

.journal-card-link-icon {
    width: 1rem;
    height: 1rem;
}

/* Empty State */
.journal-empty {
    text-align: center;
    padding: 10rem 0;
    border: 2px dashed #262626;
    border-radius: 0.5rem;
    background: rgba(23, 23, 23, 0.2);
    max-width: 42rem;
    margin: 0 auto;
}

.journal-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: #404040;
}

.journal-empty-title {
    color: #737373;
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.025em;
}

.journal-empty-subtitle {
    color: #525252;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Pagination */
.journal-pagination {
    margin-top: 6rem;
    display: flex;
    justify-content: center;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .journal-hero {
        padding-top: 180px;
        padding-bottom: 80px;
    }

    .journal-grid-section {
        padding: 4rem 0;
    }

    .journal-grid {
        gap: 3rem 2rem;
    }
}