/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/**
 * Container Styles for Theme Width Inheritance
 */
.site-main .container {
    width: 100%;
    max-width: var(--content-width, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--content-padding, 15px);
    padding-right: var(--content-padding, 15px);
    box-sizing: border-box;
}

/**
 * Document Viewer Styles
 */
.document-viewer-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 30px 0;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.document-viewer-container vue-pdf-app {
    width: 100%;
    max-width: 100%;
}

.document-viewer-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

/**
 * Document Archive Styles
 */
.documents-archive-wrapper {
    padding: 40px 0;
}

.documents-archive-wrapper .page-title {
    margin-bottom: 30px;
    font-size: 32px;
}

/* Document Filters */
.document-filters {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.document-filters h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.document-filters h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.document-filters ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.document-filters ul li {
    margin-bottom: 8px;
}

.document-filters ul li a {
    color: #333;
    text-decoration: none;
}

.document-filters ul li a:hover {
    color: #0073aa;
}

/* Document Items */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.document-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.document-inner {
    padding: 20px;
}

.document-thumbnail {
    height: 180px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding-top: 15px;
}

.document-thumbnail img {
    width: 100%;
    height: calc(100% + 15px);
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s;
    margin-top: -15px;
}

.document-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
}

.document-title a {
    color: #333;
    text-decoration: none;
}

.document-title a:hover {
    color: #0073aa;
}

.document-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.document-type {
    background: #0073aa;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.document-type a {
    color: #fff !important;
    text-decoration: none;
}

.document-type a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.document-excerpt {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.read-more {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #005a87;
    color: #fff;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pagination a.page-numbers:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* No Documents Found */
.no-documents {
    background: #f8f8f8;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
}

.no-documents p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/**
 * Single Document Styles
 */
.single-document-wrapper {
    padding: 40px 0;
}

.single-document-wrapper .entry-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.single-document-wrapper .entry-meta {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.single-document-wrapper .entry-thumbnail {
    margin-bottom: 30px;
}

.single-document-wrapper .entry-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.single-document-wrapper .entry-content {
    margin-bottom: 30px;
}

/* Single Document Entry Meta */
.single-document-wrapper .entry-meta .document-type {
    display: inline-block;
    margin-right: 10px;
    background: #0073aa;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
}

.single-document-wrapper .entry-meta .document-type a {
    color: #fff !important;
    text-decoration: none;
}

.single-document-wrapper .entry-meta .document-type a:hover {
    text-decoration: underline;
}

/* Document Download Box */
.document-download-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    margin: 30px 0;
    border: 1px solid #eee;
}

.document-download-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.document-download-button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease;
    margin-top: 15px;
}

.document-download-button:hover {
    background: #005a87;
    color: #fff;
}

/* Document Navigation */
.document-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-previous,
.nav-next {
    max-width: 48%;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
}

.nav-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 14px;
    font-weight: bold;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: #0073aa;
}

/* Document Sidebar */
.document-sidebar {
    margin-bottom: 30px;
}

.document-sidebar .widget {
    margin-bottom: 30px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
}

.document-sidebar .widget-title {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
}

.document-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-sidebar ul li {
    margin-bottom: 8px;
}

.document-sidebar ul li a {
    text-decoration: none;
    color: #333;
}

.document-sidebar ul li a:hover {
    color: #0073aa;
}

/* Responsive Design */
@media (max-width: 767px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .document-navigation {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        max-width: 100%;
        margin-bottom: 15px;
    }
}

/**
 * Public styles for Court Document Management plugin
 */

/* Document Info */
.document-info {
    margin-bottom: 2em;
    padding: 1.5em;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.document-expired-notice {
    margin-bottom: 1em;
    padding: 0.5em 1em;
    background-color: #ffecec;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.document-title {
    margin-top: 0;
    margin-bottom: 1em;
}

.document-meta {
    margin-bottom: 1.5em;
}

.document-meta > div {
    margin-bottom: 0.5em;
}

.meta-label {
    font-weight: bold;
    margin-right: 0.5em;
}

.document-description {
    margin-bottom: 1.5em;
}

.document-download {
    margin-top: 1.5em;
}

.document-download-link {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.document-download-link:hover {
    background-color: #005f8b;
    color: #fff;
}

.document-file-info {
    display: inline-block;
    margin-right: 1em;
}

.document-publication-date, 
.document-expiration-date {
    display: inline-block;
    margin-right: 1.5em;
}

.document-expiration-date.expired {
    color: #721c24;
}

.expiring-soon {
    display: inline-block;
    margin-left: 0.5em;
    color: #856404;
    font-style: italic;
}

.document-categories,
.document-types {
    margin-bottom: 1em;
}

.category-label,
.type-label {
    font-weight: bold;
}

/* Document Archive */
.document-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1 0 220px;
    margin-bottom: 10px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #4a5568;
}

.filter-select, 
.filter-text,
.filter-date {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
}

.filter-select:focus, 
.filter-text:focus,
.filter-date:focus {
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.filter-actions {
    flex-basis: 100%;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.filter-button,
.reset-button {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-button {
    background-color: #4299e1;
    color: white;
    border: none;
}

.filter-button:hover {
    background-color: #3182ce;
}

.reset-button {
    background-color: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reset-button:hover {
    background-color: #e2e8f0;
}

.date-range-inputs {
    display: flex;
    gap: 10px;
}

.date-range-inputs > div {
    flex: 1;
}

.document-type-filters {
    flex-basis: 100%;
    margin-bottom: 10px;
}

/* Paging styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
}

.pagination .page-numbers {
    margin: 0 5px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
}

.pagination .page-numbers.current {
    background-color: #4299e1;
    color: white;
    border-color: #3182ce;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #e2e8f0;
}

/* Document grid styles */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding: 5px;
}

.document-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.document-card.expired {
    opacity: 0.7;
}

.document-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.document-thumbnail {
    height: 180px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding-top: 15px;
}

.document-thumbnail img {
    width: 100%;
    height: calc(100% + 15px);
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s;
    margin-top: -15px;
}

.document-card:hover .document-thumbnail img {
    transform: scale(1.05);
}

.expired-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(229, 62, 62, 0.85);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1;
}

.document-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.document-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #2d3748;
}

.document-date {
    font-size: 14px;
    color: #718096;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .document-filter-form {
        flex-direction: column;
    }

    .filter-group {
        flex-basis: 100%;
    }

    .date-range-inputs {
        flex-direction: column;
    }

    .document-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
        padding: 0;
    }
}

/* Judge information styling */
.document-judge-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
}

.document-judge-info h3 {
    margin-top: 0;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
}

.document-judge-info p {
    margin-bottom: 5px;
}

.document-judge-info .judge-status {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/**
 * Active Filters
 */
.active-filters {
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: #f0f8ff;
    border: 1px solid #e0eeff;
    border-radius: 4px;
}

.active-filters h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #0055a4;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.filter-tag {
    display: inline-block;
    padding: 8px 12px;
    background-color: #e0eeff;
    color: #0055a4;
    border-radius: 30px;
    font-size: 14px;
    line-height: 1;
}

/* Results Count */
.results-count {
    margin-top: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    font-style: italic;
} 