/* ==========================================
   CONTENT DETAIL PAGE STYLES
   Consistent with Book Detail Template
   ========================================== */

/* Breadcrumb - consistent with detail_template.php */
.detail-breadcrumb {
    margin-bottom: 1.5rem;
}

/* Main Card - Matching biblio-card style exactly */
.detail-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.detail-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Header Section */
.detail-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Title */
.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .detail-title {
        font-size: 1.875rem;
    }
}

/* Section Styles */
.detail-section {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.detail-section:last-child {
    border-bottom: none;
}

/* Content Detail Body - Special styling for rich text content */
.content-detail-body {
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .content-detail-body {
        padding: 2.5rem 2rem;
    }
}

/* CKEditor Content Styling */
.ck-content {
    color: #374151;
    font-size: 1rem;
    line-height: 1.75;
}

.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4,
.ck-content h5,
.ck-content h6 {
    color: #1f2937;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.ck-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.ck-content h2 {
    font-size: 1.75rem;
    color: #047857;
}

.ck-content h3 {
    font-size: 1.5rem;
}

.ck-content h4 {
    font-size: 1.25rem;
}

.ck-content h5 {
    font-size: 1.125rem;
}

.ck-content h6 {
    font-size: 1rem;
}

.ck-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.ck-content p:last-child {
    margin-bottom: 0;
}

.ck-content a {
    color: #7c3aed;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ck-content a:hover {
    color: #6d28d9;
}

.ck-content ul,
.ck-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #374151;
}

.ck-content ul {
    list-style-type: disc;
}

.ck-content ol {
    list-style-type: decimal;
}

.ck-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.ck-content blockquote {
    border-left: 4px solid #047857;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4b5563;
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}

.ck-content code {
    background-color: #f3f4f6;
    color: #ef4444;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: 'Courier New', Courier, monospace;
}

.ck-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.ck-content pre code {
    background-color: transparent;
    color: #f9fafb;
    padding: 0;
}

.ck-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.ck-content table th {
    background-color: #f3f4f6;
    color: #1f2937;
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.ck-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.ck-content table tr:last-child td {
    border-bottom: none;
}

.ck-content table tr:hover {
    background-color: #f9fafb;
}

.ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ck-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

/* Responsive images in content */
@media (max-width: 768px) {
    .ck-content table {
        font-size: 0.875rem;
    }
    
    .ck-content table th,
    .ck-content table td {
        padding: 0.5rem;
    }
    
    .ck-content {
        font-size: 0.9375rem;
    }
}

/* Print styles */
@media print {
    .detail-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .detail-breadcrumb {
        display: none;
    }
}
