/**
 * Resource Center Documentation-Style CSS
 * 
 * Custom styles for the documentation-style Resource Center
 */

/* Resource Center Archive Page */
.resource-center-container {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.resource-sidebar {
    position: sticky;
    top: 30px;
}

.resource-categories a, 
.resource-types a {
    color: #333;
    text-decoration: none;
    padding: 6px 0;
    display: block;
    transition: all 0.2s ease;
}

.resource-categories a:hover, 
.resource-types a:hover {
    color: #0073aa;
    transform: translateX(5px);
}

.resource-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
}

.resource-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.resource-icon {
    color: #0073aa;
    text-align: center;
}

.resource-card .card-title a {
    color: #333;
    text-decoration: none;
}

.resource-card .card-title a:hover {
    color: #0073aa;
}

.pagination-container .pagination {
    justify-content: center;
}

/* Resource Single Page */
.resource-single-container {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.resource-content {
    word-wrap: break-word;
}

.resource-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.resource-content-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.resource-content-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.resource-content-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.resource-content-body p {
    margin-bottom: 1.5rem;
}

.resource-content-body ul,
.resource-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.resource-content-body li {
    margin-bottom: 0.5rem;
}

.resource-content-body pre {
    background-color: #f1f1f1;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.resource-content-body code {
    background-color: #f1f1f1;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.resource-content-body blockquote {
    border-left: 4px solid #0073aa;
    padding-left: 1rem;
    margin-left: 0;
    color: #555;
    font-style: italic;
}

.resource-content-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.resource-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.resource-content-body table th,
.resource-content-body table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.resource-content-body table th {
    background-color: #f8f9fa;
    text-align: left;
}

.resource-content-body table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.toc-content ul {
    padding-left: 0;
    list-style-type: none;
}

.toc-content a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: all 0.2s ease;
}

.toc-content a:hover {
    color: #0073aa;
    transform: translateX(5px);
}

.resource-meta ul li {
    margin-bottom: 10px;
}

.attachment-item {
    transition: all 0.2s ease;
}

.attachment-item:hover {
    background-color: #f8f9fa;
}

.resource-navigation a {
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.resource-navigation a:hover {
    color: #0073aa;
}

/* Resource Category and Tag Archives */
.taxonomy-description {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #555;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .resource-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .resource-title {
        font-size: 2rem;
    }
}

/* Documentation-specific Elements */
.doc-note,
.doc-warning,
.doc-tip {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    position: relative;
    padding-left: 60px;
}

.doc-note:before,
.doc-warning:before,
.doc-tip:before {
    font-family: "dashicons";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

.doc-note {
    background-color: #e8f4fd;
    border-left: 4px solid #0073aa;
}

.doc-note:before {
    content: "\f348";
    color: #0073aa;
}

.doc-warning {
    background-color: #fff8e5;
    border-left: 4px solid #f0b849;
}

.doc-warning:before {
    content: "\f534";
    color: #f0b849;
}

.doc-tip {
    background-color: #ecf9ec;
    border-left: 4px solid #46b450;
}

.doc-tip:before {
    content: "\f339";
    color: #46b450;
}

/* Code Syntax Highlighting */
.resource-content-body .wp-block-code {
    background: #282c34;
    color: #abb2bf;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

/* Resource Version Badge */
.resource-version {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 10px;
    vertical-align: middle;
}

/* Resource Author */
.resource-author {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.resource-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

.resource-author-info h5 {
    margin: 0;
    font-size: 1rem;
}

.resource-author-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Resource Feedback Section */
.resource-feedback {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.resource-feedback h4 {
    margin-bottom: 1rem;
}

.resource-rating {
    margin-bottom: 1.5rem;
}

.resource-rating .rating-stars {
    font-size: 1.5rem;
    color: #f0b849;
}

/* Print Styles */
@media print {
    .resource-sidebar,
    .site-header,
    .site-footer,
    .resource-navigation,
    .resource-feedback {
        display: none !important;
    }
    
    .resource-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .resource-content-body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .resource-content-body a {
        text-decoration: underline;
        color: #000 !important;
    }
    
    .resource-content-body a:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #555;
    }
}
