/* Document Page Specific Styles */
.document-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    margin-bottom: 40px;
}

.document-header h1 {
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.document-header .lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.document-meta {
    margin-top: 30px;
}

.document-meta .badge {
    margin: 0 5px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.6);
}

/* Document Sections */
.document-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.document-section h2 i {
    color: #667eea;
}

/* PDF Container */
.pdf-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pdf-container iframe {
    border: none;
    background: #f8f9fa;
}

/* Video Section */
.video-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s;
}

.video-thumbnail:hover .play-button {
    background: #667eea;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    font-size: 1.1rem;
    margin: 15px 15px 10px;
    color: #2c3e50;
}

.video-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 15px 15px;
    line-height: 1.4;
}

/* Researcher Section */
.researcher-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.researcher-avatar {
    flex-shrink: 0;
}

.researcher-item h6 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.researcher-item p {
    color: #6c757d;
    margin-bottom: 8px;
}

.researcher-item .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* AdSense Styles */
.ad-banner, .ad-inline, .ad-sidebar {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.ad-banner {
    min-height: 90px;
}

.ad-inline {
    min-height: 250px;
}

.ad-sidebar {
    min-height: 600px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .document-header {
        padding: 100px 0 40px;
    }
    
    .document-header h1 {
        font-size: 2rem;
    }
    
    .pdf-container iframe {
        height: 400px;
    }
    
    .video-card {
        margin-bottom: 20px;
    }
    
    .ad-sidebar {
        min-height: 250px;
    }
}

/* Loading States */
.pdf-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: #f8f9fa;
}

.pdf-container.loading::after {
    content: "Loading PDF...";
    color: #6c757d;
    font-style: italic;
}

/* Error States */
.pdf-container.error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Print Styles */
@media print {
    .ad-banner, .ad-inline, .ad-sidebar {
        display: none;
    }
    
    .document-header {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .pdf-container iframe {
        height: 800px;
    }
}

/* Accessibility */
.video-thumbnail:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.researcher-item:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .document-section h2 {
        color: #e9ecef;
        border-bottom-color: #495057;
    }
    
    .researcher-item {
        background: #343a40;
        border-color: #495057;
    }
    
    .video-card {
        border-color: #495057;
    }
    
    .ad-banner, .ad-inline, .ad-sidebar {
        background: #343a40;
        border-color: #495057;
    }
}
