/**
 * Library Entry Single View Styles
 * Context: Single library entry page display
 * Purpose: Enhanced layout with proper AST theme containment
 * Updated: 2025-10-01
 * Conflicts: AST theme container overrides for proper centering
 */

/* Library Entry Post Background - All Posts */
.single-library_entry .library-entry.library_entry.ast-article-single,
.single-library_entry article.library_entry,
.single-library_entry .type-library_entry {
    background-color: #333333 !important;
}

/* AST Theme Container Override for Single Entries */
.single-library_entry .ast-container,
.single-library_entry .container,
.single-library_entry .site-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.single-library_entry .ast-container {
    display: block !important;
}

/* Main Container */
.library-entry-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 40px;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Breadcrumbs */
.entry-breadcrumbs {
    margin-bottom: 15px;
    color: #ff6900 !important;
    font-size: 14px;
}

.entry-breadcrumbs a {
    color: #ffffff !important;
    text-decoration: none;
}

.entry-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Entry Title */
.entry-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #ffffff !important;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

/* Entry Layout - Three Column: Image | Sidebar | Sources */
.entry-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

/* Cover Image Column (Left) */
.entry-cover-column {
    width: 600px;
    flex-shrink: 0;
}

/* Cover and Info Side by Side */
.cover-and-info-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cover-and-info-wrapper .entry-cover {
    width: 280px;
    flex-shrink: 0;
}

.cover-and-info-wrapper .entry-quick-info {
    flex: 1;
    background-color: #ff6900;
    border-radius: 5px;
    border-color: #fff5f5;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.cover-and-info-wrapper .entry-quick-info h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 8px;
}

.cover-and-info-wrapper .entry-quick-info .info-item {
    margin-bottom: 12px;
}

.cover-and-info-wrapper .entry-quick-info .info-label {
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 4px;
}

.cover-and-info-wrapper .entry-quick-info .info-label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-color: #ffffff;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    flex-shrink: 0;
}

/* Use CSS content for simple icons */
.cover-and-info-wrapper .entry-quick-info .info-label::before {
    content: "📄"; /* Default icon */
    background: none;
    mask: none;
    font-size: 16px;
    color: #ffffff;
}

/* Language Icon - Globe */
.cover-and-info-wrapper .entry-quick-info .info-item:nth-child(2) .info-label::before {
    content: "🌐";
}

/* Country Icon - Flag/Building */
.cover-and-info-wrapper .entry-quick-info .info-item:nth-child(3) .info-label::before {
    content: "🏛️";
}

/* Published Icon - Calendar */
.cover-and-info-wrapper .entry-quick-info .info-item:nth-child(4) .info-label::before {
    content: "📅";
}

/* Frequency Icon - Clock */
.cover-and-info-wrapper .entry-quick-info .info-item:nth-child(5) .info-label::before {
    content: "🔄";
}

/* ISSN Icon - Numbers */
.cover-and-info-wrapper .entry-quick-info .info-item:nth-child(6) .info-label::before {
    content: "🔢";
}

/* Format Icon - Document */
.cover-and-info-wrapper .entry-quick-info .info-item:nth-child(7) .info-label::before {
    content: "📋";
}

.cover-and-info-wrapper .entry-quick-info .info-value {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    line-height: 1.4;
}

.cover-and-info-wrapper .entry-quick-info .keywords-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Cover Image */
.entry-cover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

/* Sidebar (Middle Column) */
.entry-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Sources Column (Right) */
.entry-sources-column {
    flex-grow: 1;
    min-width: 300px;
}

.entry-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.entry-cover img:hover {
    transform: scale(1.02);
}

/* Quick Info Box */
.entry-quick-info {
    background-color: #ff6900;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-item {
    margin-bottom: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 8px;
}

.info-item.keywords-section {
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.info-item.keywords-section .info-label {
    text-align: center;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
    margin-bottom: 3px;
    position: relative;
    padding-left: 24px;
}

/* Icons for different field types in Quick Info */
.entry-quick-info.library-entry-single-container .info-label::before {
    position: absolute;
    left: 0;
    color: #0073aa;
    font-size: 16px;
    width: 20px;
    text-align: center;
    content: "📄"; /* Default icon */
}

/* Specific icon assignments using CSS classes that will be added via JavaScript */
.entry-quick-info.library-entry-single-container .info-label.icon-language::before {
    content: "🌐";
}

.entry-quick-info.library-entry-single-container .info-label.icon-country::before {
    content: "🏛️";
}

.entry-quick-info.library-entry-single-container .info-label.icon-published::before {
    content: "📅";
}

.entry-quick-info.library-entry-single-container .info-label.icon-frequency::before {
    content: "🔄";
}

.entry-quick-info.library-entry-single-container .info-label.icon-issn::before {
    content: "🔢";
}

.entry-quick-info.library-entry-single-container .info-label.icon-format::before {
    content: "📋";
}

.entry-quick-info.library-entry-single-container .info-label.icon-keywords::before {
    content: "🏷️";
}

.entry-quick-info.library-entry-single-container .info-label.icon-official::before {
    content: "✅";
}


.info-value {
    color: #333;
}

/* Keywords in Sidebar */
.keywords-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.keywords-section h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
}

.keywords-list-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.keyword-tag-sidebar {
    display: inline-block;
    background-color: #f0f7fb;
    border: 1px solid #d0e5f2;
    color: #0073aa;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.keyword-tag-sidebar:hover {
    background-color: #d0e5f2;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Official Badge */
.official-badge {
    margin-top: 15px;
}

.badge {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* Links Box */
.entry-links, .entry-official-links {
    background-color: #f7f7f7;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.entry-links h3, .entry-official-links h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.entry-links ul, .entry-official-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.entry-links li, .entry-official-links li {
    margin-bottom: 10px;
}

.entry-links li:last-child, .entry-official-links li:last-child {
    margin-bottom: 0;
}

.entry-links a, .entry-official-links a {
    color: #0073aa;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.entry-links a:hover, .entry-official-links a:hover {
    text-decoration: underline;
}

.entry-links a::before, .entry-official-links a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #0073aa;
    border-radius: 50%;
    margin-right: 8px;
}


/* Keywords */
.entry-keywords {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.entry-keywords h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    display: inline-block;
    background-color: #f0f7fb;
    border: 1px solid #d0e5f2;
    color: #0073aa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.keyword-tag:hover {
    background-color: #d0e5f2;
    text-decoration: none;
}

/* Action Buttons */
.entry-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.back-button, .edit-button {
    display: inline-flex;
    align-items: center;
    background-color: #f1f1f1;
    color: #555;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.back-button:hover, .edit-button:hover {
    background-color: #e5e5e5;
}

.back-button .dashicons, .edit-button .dashicons {
    margin-right: 8px;
}

.edit-button {
    background-color: #0073aa;
    color: white;
}

.edit-button:hover {
    background-color: #005d8c;
}

/* Enhanced Interactive Elements */

/* Lightbox animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Enhanced cover image with hover effects and clickable indicator */
.entry-cover {
    position: relative;
}

.entry-cover img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-cover img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Clickable indicator for cover image */
.entry-cover::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}

.entry-cover:hover::after {
    opacity: 1;
}

/* Enhanced keyword tags with animation */
.keyword-tag {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.keyword-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 115, 170, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.keyword-tag:hover::before {
    transform: scaleX(1);
}

.keyword-clicked {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Enhanced external links with slide effect */
.entry-links a {
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
}

.entry-links a:hover {
    transform: translateX(3px);
}

/* Sources Cards Layout - Tabulated Card Design */
.library-entry-single-container .entry-sources {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.library-entry-single-container .entry-sources h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    font-weight: 600;
}

.library-entry-single-container .sources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

/* Tabulated Card Design */
.library-entry-single-container .source-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.library-entry-single-container .source-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.library-entry-single-container .source-card.primary-source {
    border-top: 4px solid #0073aa;
}

.library-entry-single-container .source-card.secondary-source {
    border-top: 4px solid #6b7280;
}

.library-entry-single-container .source-card.successor-source {
    border-top: 4px solid #7c3aed;
}

/* Card Header */
.library-entry-single-container .source-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}

.library-entry-single-container .source-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Card Content with Table Rows */
.library-entry-single-container .source-content {
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Table-like rows for metadata */
.library-entry-single-container .source-meta-info {
    border: none;
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.library-entry-single-container .source-meta-info .meta-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    font-size: 14px;
    color: #555;
    transition: background-color 0.2s ease;
}

.library-entry-single-container .source-meta-info .meta-item:last-child {
    border-bottom: none;
}

.library-entry-single-container .source-meta-info .meta-item:nth-child(even) {
    background: #f8f9fa;
}

.library-entry-single-container .source-meta-info .meta-item:hover {
    background: #e8f4f8;
}

/* Icons for metadata items */
.library-entry-single-container .source-meta-info .meta-item.format::before {
    content: "📋";
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #f59e0b;
}

.library-entry-single-container .source-meta-info .meta-item.access::before {
    content: "🔓";
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #10b981;
}

.library-entry-single-container .source-meta-info .meta-item.status::before {
    content: "⬇️";
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #3b82f6;
}

.library-entry-single-container .source-meta-info .meta-item strong {
    font-weight: 600;
    color: #374151;
    margin-right: 8px;
    min-width: 80px;
}

/* Access Link Button Container - Always at bottom */
.library-entry-single-container .source-link-wrapper {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
    text-align: center;
    margin-top: 10px;
}

/* Button Styles - Exact match to view-entry-btn from library directory */
.library-entry-single-container .source-access-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.internet-sources-horizontal-grid .source-card .source-access-link {
    margin-top: 20px;
}

/* Internet Sources Section (Standalone Under Cover Image) */
.internet-sources-section {
    margin: 30px 0;
    padding: 25px;
    background-color: #fff5f5;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.internet-sources-section .section-title {
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.library-entry-single-container .source-access-link:hover {
    background-color: #ff6900;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* Remove source-type specific styling since all buttons should look the same */
.library-entry-single-container .source-card.primary-source .source-access-link,
.library-entry-single-container .source-card.secondary-source .source-access-link,
.library-entry-single-container .source-card.successor-source .source-access-link {
    background-color: #0073aa;
}

.library-entry-single-container .source-card.primary-source .source-access-link:hover,
.library-entry-single-container .source-card.secondary-source .source-access-link:hover,
.library-entry-single-container .source-card.successor-source .source-access-link:hover {
    background-color: #ff6900;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* Successor text styling */
.library-entry-single-container .successor-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    color: #7c3aed;
    font-weight: 500;
    font-size: 14px;
    background: #faf5ff;
}

.library-entry-single-container .successor-text::before {
    content: "📋";
    margin-right: 8px;
    font-size: 16px;
}

/* Loading animation for source cards */
.library-entry-single-container .source-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.4) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.library-entry-single-container .source-card:hover::before {
    left: 100%;
}

/* Loading animation for images */
.entry-cover img:not([complete]) {
    min-height: 200px;
    background-color: #f5f5f5;
    animation: shimmer 1.5s infinite linear;
    background-image: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.5) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .single-library_entry .ast-container,
    .single-library_entry .container,
    .single-library_entry .site-content {
        padding: 0 20px !important;
    }
    
    .entry-layout {
        gap: 20px;
    }
    
    .entry-cover-column {
        width: 250px;
    }
    
    .entry-sidebar {
        width: 280px;
    }
    
    .entry-sources-column {
        min-width: 250px;
    }
}

@media screen and (max-width: 992px) {
    .entry-layout {
        flex-direction: column;
        gap: 25px;
    }
    
    .entry-cover-column {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Stack cover and info vertically on tablets */
    .cover-and-info-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .cover-and-info-wrapper .entry-cover {
        width: 100%;
        max-width: 280px;
        flex-shrink: 0;
    }
    
    .cover-and-info-wrapper .entry-quick-info {
        width: 100%;
        max-width: 400px;
    }
    
    .entry-sidebar {
        width: 100%;
    }
    
    .entry-sources-column {
        width: 100%;
        min-width: auto;
    }
    
    /* Restore grid layout for larger sources section on tablet */
    .library-entry-single-container .sources-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .single-library_entry .ast-container,
    .single-library_entry .container,
    .single-library_entry .site-content {
        padding: 0 15px !important;
    }
    
    .entry-layout {
        gap: 20px;
    }
    
    /* Mobile cover and info optimizations */
    .entry-cover-column {
        max-width: 100%;
    }
    
    .cover-and-info-wrapper {
        gap: 15px;
    }
    
    .cover-and-info-wrapper .entry-cover {
        max-width: 250px;
    }
    
    .cover-and-info-wrapper .entry-quick-info {
        max-width: 100%;
        padding: 12px;
    }
    
    .cover-and-info-wrapper .entry-quick-info h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    /* Single column for sources on mobile */
    .library-entry-single-container .sources-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media screen and (max-width: 576px) {
    .entry-title {
        font-size: 26px;
    }
    
    /* Small mobile cover and info optimizations */
    .cover-and-info-wrapper {
        gap: 12px;
    }
    
    .cover-and-info-wrapper .entry-cover {
        max-width: 220px;
    }
    
    .cover-and-info-wrapper .entry-quick-info {
        padding: 10px;
        border-radius: 4px;
    }
    
    .cover-and-info-wrapper .entry-quick-info h3 {
        font-size: 15px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    
    .cover-and-info-wrapper .entry-quick-info .info-item {
        margin-bottom: 8px;
    }
    
    .cover-and-info-wrapper .entry-quick-info .info-label {
        font-size: 14px;
    }
    
    .cover-and-info-wrapper .entry-quick-info .info-value {
        font-size: 14px;
    }
    
    .entry-quick-info {
        padding: 15px;
    }
    
    .entry-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .back-button, .edit-button {
        text-align: center;
        justify-content: center;
    }
    
    /* Enhanced responsive adjustments */
    .entry-cover::after {
        bottom: 5px;
        right: 5px;
        width: 25px;
        height: 25px;
    }
    
    .keyword-tag-sidebar {
        margin-bottom: 4px;
        font-size: 11px;
        padding: 3px 6px;
    }
    
    /* Sources cards responsive - tabulated layout */
    .library-entry-single-container .entry-sources {
        padding: 15px;
    }
    
    .library-entry-single-container .sources-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .library-entry-single-container .source-header {
        padding: 12px 15px;
    }
    
    .library-entry-single-container .source-title {
        font-size: 15px;
    }
    
    .library-entry-single-container .source-meta-info .meta-item {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .library-entry-single-container .source-meta-info .meta-item strong {
        min-width: 70px;
        font-size: 13px;
    }
    
    .library-entry-single-container .source-link-wrapper {
        padding: 15px;
    }
    
    .library-entry-single-container .source-access-link {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .library-entry-single-container .successor-text {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* Tablet responsive adjustments for sources */
@media screen and (max-width: 768px) and (min-width: 577px) {
    .library-entry-single-container .sources-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .library-entry-single-container .source-header {
        padding: 14px 18px;
    }
    
    .library-entry-single-container .source-meta-info .meta-item {
        padding: 11px 18px;
    }
    
    .library-entry-single-container .source-link-wrapper {
        padding: 18px;
    }
}

/*
 * LIBRARY REFERENCES TABLE - Modern Design
 * Context: Single library entry page (.entry-references-section)
 * Purpose: Modern table design for Library References section
 * Updated: 2025-10-01
 * Conflicts: None - new styles
 * Notes: Uses parent container strategy for conflict prevention
 */
.library-entry-single-container .entry-references-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.library-entry-single-container .entry-references-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.library-entry-single-container .entry-references-section .section-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 12px;
    position: relative;
}

.library-entry-single-container .entry-references-section .section-title::before {
    content: "🔗";
    margin-right: 10px;
    font-size: 20px;
}

.library-entry-single-container .entry-references-section .references-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

.library-entry-single-container .entry-references-section .references-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.library-entry-single-container .entry-references-section .references-table td:first-child {
    background-color: #0073aa;
    color: #ffffff;
    font-weight: bold;
    width: 120px;
    text-align: left;
}

.library-entry-single-container .entry-references-section .references-table td:last-child {
    background-color: #ffffff;
    text-align: left;
}


.library-entry-single-container .entry-references-section .ref-link {
    color: #0073aa;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.library-entry-single-container .entry-references-section .ref-link:hover {
    color: #ff6900;
    text-decoration: none;
}


.library-entry-single-container .entry-references-section .no-data {
    color: #64748b;
    font-style: italic;
    font-size: 14px;
}

.library-entry-single-container .entry-references-section .successor-text {
    color: #374151;
    font-size: 14px;
}

/* =================================================================
   RESPONSIVE STYLES FOR LIBRARY REFERENCES TABLE
   ================================================================= */

/* Tablet responsive (768px - 991px) */
@media screen and (max-width: 991px) {
    .library-entry-single-container .entry-references-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .library-entry-single-container .entry-references-section .section-title {
        font-size: 20px;
        margin-bottom: 18px;
    }
    
    .library-entry-single-container .entry-references-section .references-table td {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .library-entry-single-container .entry-references-section .references-table td:first-child {
        width: 110px;
    }
}

/* Mobile responsive (576px - 767px) */
@media screen and (max-width: 767px) {
    .library-entry-single-container .entry-references-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .library-entry-single-container .entry-references-section .section-title {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .library-entry-single-container .entry-references-section .section-title::before {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .library-entry-single-container .entry-references-section .references-table td {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .library-entry-single-container .entry-references-section .references-table td:first-child {
        width: 100px;
    }
}

/* Small mobile responsive (max 575px) */
@media screen and (max-width: 575px) {
    .library-entry-single-container .entry-references-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .library-entry-single-container .entry-references-section .section-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .library-entry-single-container .entry-references-section .references-table td {
        padding: 5px 6px;
        font-size: 11px;
    }
    
    .library-entry-single-container .entry-references-section .references-table td:first-child {
        width: 80px;
    }
}

/* Large screen enhancements */
@media screen and (min-width: 1200px) {
    .library-entry-single-container .sources-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .library-entry-single-container .entry-references-section {
        padding: 30px;
    }
    
    .library-entry-single-container .entry-references-section .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .library-entry-single-container .entry-references-section .col-header {
        padding: 18px 16px;
        font-size: 16px;
    }
    
    .library-entry-single-container .entry-references-section .table-cell {
        padding: 20px 18px;
        min-height: 65px;
    }
    
    .library-entry-single-container .entry-references-section .ref-link {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/*
 * INTERNET SOURCES GRID LAYOUT - Modern Minimalist Design
 * Context: Single library entry page (.internet-sources-section)
 * Purpose: Full-width modern grid layout for internet source cards
 * Updated: 2025-10-01
 * Conflicts: None - new styles
 * Notes: Uses parent container strategy for conflict prevention
 */

/* Internet Sources Section Container */
.internet-sources-section {
    width: 100%;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.internet-sources-section .section-title {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.internet-sources-section .section-title::before {
    content: "🌐";
    margin-right: 12px;
    font-size: 26px;
}

.internet-sources-section .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #ff6900);
    border-radius: 2px;
}

/* Full-width Grid Layout */
.internet-sources-section .internet-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
}

/* Individual Source Cards */
.internet-sources-section .internet-source-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.internet-sources-section .internet-source-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #0073aa;
}

/* Card Header */
.internet-sources-section .source-card-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    padding: 20px 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.internet-sources-section .source-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.internet-sources-section .source-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.internet-sources-section .source-badge.official {
    background: #ff6900;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Card Content */
.internet-sources-section .source-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.internet-sources-section .source-info {
    margin-bottom: 20px;
}

.internet-sources-section .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.internet-sources-section .info-row:last-child {
    border-bottom: none;
}

.internet-sources-section .info-row:hover {
    background-color: #f8fafc;
    margin: 0 -8px;
    padding: 12px 8px;
    border-radius: 6px;
}

.internet-sources-section .info-label {
    font-weight: 600;
    color: #475569;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.internet-sources-section .info-label::before {
    color: #0073aa;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.internet-sources-section .info-value {
    font-size: 14px;
    color: #fff5f5;
    font-weight: 500;
    text-align: right;
    background: #ff6900;
    padding: 4px 12px;
    border-radius: 6px;
}

/* Styling for "Not Specified" text */
.internet-sources-section .info-value.not-specified {
    color: #ff6900;
    font-style: italic;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    opacity: 0.8;
}

/* Card Footer with Button */
.internet-sources-section .source-card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.internet-sources-section .view-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.internet-sources-section .view-link-btn:hover {
    background: linear-gradient(135deg, #ff6900 0%, #e55a00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 105, 0, 0.4);
    color: white;
    text-decoration: none;
}

.internet-sources-section .view-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 105, 0, 0.3);
}

.internet-sources-section .view-link-btn::after {
    content: "→";
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.internet-sources-section .view-link-btn:hover::after {
    transform: translateX(4px);
}

/* No Sources Message */
.internet-sources-section .no-sources-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-style: italic;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.internet-sources-section .no-sources-message p {
    margin: 0;
    font-size: 16px;
}

/* =================================================================
   RESPONSIVE STYLES FOR INTERNET SOURCES GRID
   ================================================================= */

/* Large Desktop (1200px+) */
@media screen and (min-width: 1200px) {
    .internet-sources-section {
        padding: 40px;
    }
    
    .internet-sources-section .internet-sources-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .internet-sources-section .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

/* Tablet (768px - 1199px) */
@media screen and (max-width: 1199px) {
    .internet-sources-section {
        padding: 25px;
    }
    
    .internet-sources-section .internet-sources-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .internet-sources-section .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .internet-sources-section .source-card-header {
        padding: 16px 20px;
    }
    
    .internet-sources-section .source-card-content {
        padding: 20px;
    }
}

/* Mobile (576px - 767px) */
@media screen and (max-width: 767px) {
    .internet-sources-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .internet-sources-section .internet-sources-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .internet-sources-section .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .internet-sources-section .source-card-header {
        padding: 14px 16px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .internet-sources-section .source-card-title {
        font-size: 16px;
    }
    
    .internet-sources-section .source-card-content {
        padding: 16px;
    }
    
    .internet-sources-section .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0;
    }
    
    .internet-sources-section .info-value {
        text-align: left;
        width: 100%;
    }
    
    .internet-sources-section .view-link-btn {
        padding: 10px 24px;
        font-size: 13px;
        min-width: 120px;
    }
}

/* Small Mobile (max 575px) */
@media screen and (max-width: 575px) {
    .internet-sources-section {
        padding: 15px;
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .internet-sources-section .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .internet-sources-section .section-title::before {
        font-size: 20px;
        margin-right: 8px;
    }
    
    .internet-sources-section .source-card-header {
        padding: 12px 14px;
    }
    
    .internet-sources-section .source-card-title {
        font-size: 15px;
    }
    
    .internet-sources-section .source-card-content {
        padding: 14px;
    }
    
    .internet-sources-section .view-link-btn {
        padding: 8px 20px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .internet-sources-section .no-sources-message {
        padding: 30px 15px;
    }
    
    .internet-sources-section .no-sources-message p {
        font-size: 14px;
    }
}