<?php require_once __DIR__ . '/../partials/header.php'; ?>

    <style>
        .jurnal-detail-section {
            padding: 6rem 0;
            background-color: #ffffff;
        }
        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background-color: #1e3a5f;
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 30px;
            font-weight: 600;
            text-decoration: none;
            margin-bottom: 2rem;
            transition: all 0.3s ease;
        }
        .back-button:hover {
            background-color: #0f1f3a;
            color: white;
        }
        .jurnal-detail-card {
            background: linear-gradient(135deg, #f0f4ff 0%, #e6ebff 100%);
            border-radius: 30px;
            padding: 3rem;
            box-shadow: 0 10px 40px rgba(0,0,0,0.08);
        }
        .jurnal-category {
            display: inline-block;
            background-color: #1e3a5f;
            color: white;
            padding: 0.5rem 1.25rem;
            border-radius: 30px;
            font-size: 0.875rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            margin-bottom: 1.5rem;
        }
        .jurnal-title {
            font-size: 2.5rem;
            font-weight: 800;
            color: #1e3a5f;
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }
        .jurnal-meta {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            padding: 2rem;
            background-color: white;
            border-radius: 20px;
            margin-bottom: 2rem;
        }
        .meta-item {
            display: flex;
            flex-direction: column;
        }
        .meta-label {
            font-size: 0.875rem;
            color: #4a6fa5;
            font-weight: 600;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .meta-value {
            font-size: 1.1rem;
            color: #1e3a5f;
            font-weight: 700;
        }
        .abstract-title {
            font-size: 1.5rem;
            font-weight: 800;
            color: #1e3a5f;
            margin-bottom: 1rem;
        }
        .abstract-text {
            color: #4a6fa5;
            font-size: 1.1rem;
            line-height: 1.8;
        }
        @media (max-width: 767.98px) {
            .jurnal-title {
                font-size: 1.75rem;
            }
            .jurnal-detail-card {
                padding: 1.5rem;
            }
        }
    </style>

    <section class="jurnal-detail-section fade-in" style="padding-top: 2rem;">
        <div class="container">
            <a href="<?php echo BASE_URL; ?>/jurnal" class="back-button">
                ← Kembali ke Daftar Jurnal
            </a>
            <div class="jurnal-detail-card">
                <span class="jurnal-category"><?php echo $journal['category']; ?></span>
                <h1 class="jurnal-title"><?php echo $journal['title']; ?></h1>
                
                <div class="jurnal-meta">
                    <div class="meta-item">
                        <span class="meta-label">Penulis</span>
                        <span class="meta-value"><?php echo $journal['author']; ?></span>
                    </div>
                    <div class="meta-item">
                        <span class="meta-label">Asal Sekolah</span>
                        <span class="meta-value"><?php echo $journal['school']; ?></span>
                    </div>
                    <div class="meta-item">
                        <span class="meta-label">Lomba yang Diikuti</span>
                        <span class="meta-value"><?php echo $journal['competition']; ?></span>
                    </div>
                </div>
                
                <div>
                    <h3 class="abstract-title">Abstract</h3>
                    <p class="abstract-text"><?php echo $journal['abstract']; ?></p>
                </div>
            </div>
        </div>
    </section>

<?php require_once __DIR__ . '/../partials/footer.php'; ?>
