/* ===================================
   Peraturan Detail Page Enhanced Styles
   =================================== */

/* Hero Header */
.detail-hero {
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(41, 128, 185, 0.3);
}

.detail-hero-badge span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
}

.detail-hero-badge i {
    margin-right: 5px;
}

.detail-hero-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.detail-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
}

.detail-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-hero-meta .status-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
}

.detail-hero-meta .status-badge.berlaku {
    background: rgba(40, 167, 69, 0.9);
}

.detail-hero-meta .status-badge.dicabut {
    background: rgba(220, 53, 69, 0.9);
}

/* Download Card */
.detail-download-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.detail-download-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.detail-download-card h3 i {
    color: #28a745;
    margin-right: 8px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    color: #fff;
    text-decoration: none;
}

.download-btn i {
    font-size: 18px;
}

.download-btn.pdf {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.download-btn.pdf:hover {
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.download-btn.abstrak {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.download-btn.abstrak:hover {
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}

.no-file {
    color: #999;
    font-style: italic;
}

/* Info Grid */
.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Collapsible Section */
.detail-collapse-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.collapse-toggle {
    width: 100%;
    padding: 20px 25px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.collapse-toggle:hover {
    background: #e9ecef;
}

.collapse-toggle span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.collapse-toggle span i {
    color: #2980b9;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.collapse-content {
    padding: 0 25px 25px 25px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th,
.detail-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.detail-table th {
    width: 35%;
    text-align: left;
    color: #666;
    font-weight: 500;
}

.detail-table td {
    color: #333;
}

.detail-table tr:last-child th,
.detail-table tr:last-child td {
    border-bottom: none;
}

/* Related Section */
.related-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

.related-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.related-section h3 i {
    color: #2980b9;
}

.related-item {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #2980b9;
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-item:last-child {
    margin-bottom: 0;
}

.related-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    text-decoration: none;
}

.related-item h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.related-item .related-meta {
    font-size: 12px;
    color: #666;
}

.related-item .related-meta i {
    color: #2980b9;
    margin-right: 3px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .detail-hero {
        padding: 20px;
    }

    .detail-hero-title {
        font-size: 18px;
    }

    .detail-hero-meta {
        flex-direction: column;
        gap: 10px;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        justify-content: center;
    }

    .info-card {
        padding: 15px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}