/* Card Styles - Card layouts, hover effects, grids, result cards */

/* Admin Result Cards */
.admin-result-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    padding-bottom: 50px;
}

.admin-result-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.admin-card-content {
    position: relative;
    padding: 2rem;
}

.admin-card-header {
    margin-bottom: 1rem;
}

.admin-card-title {
    font-size: 11pt;
    font-weight: 600;
    color: #2d5f3f;
    margin: 0;
    line-height: 1.4;
}

.admin-card-title a {
    color: #2d5f3f;
    text-decoration: none;
}

.admin-card-title a:hover {
    text-decoration: underline;
}

.admin-card-body {
    margin-bottom: 2.5rem;
}

.admin-field {
    margin: 0.5rem 0;
    font-size: 10pt;
    color: #666;
    line-height: 1.4;
}

.admin-field strong {
    color: #333;
    font-weight: 600;
}

.admin-card-edit {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-card-edit:hover {
    background: #2d5f3f;
    color: white;
}

.admin-card-edit .edit-icon {
    color: #2d5f3f;
    transition: color 0.3s ease;
}

.admin-card-edit:hover .edit-icon {
    color: white;
}


/* Research Results Card Styles */
.research-result-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.research-result-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.research-card-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.research-card-title {
    margin: 0;
    font-size: 12pt;
    line-height: 1.4;
}

.research-title-link {
    color: #2d5f3f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.research-title-link:hover {
    color: #1e4029;
    text-decoration: underline;
}

.research-title-text {
    color: #333;
    font-weight: 600;
}

.research-card-content {
    color: #666;
    font-size: 10pt;
    line-height: 1.6;
}

.research-card-content p {
    margin: 0 0 0.75rem 0;
}

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

.research-publication,
.research-author,
.research-source,
.research-intervention {
    color: #555;
}

.research-publication strong,
.research-author strong,
.research-source strong,
.research-intervention strong {
    color: #2d5f3f;
    font-weight: 600;
}


/* Legacy styles for backward compatibility */
.research-result-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.research-result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.research-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
}



.research-title {
    color: #2d5f3f;
    font-size: 12pt;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-align: left;
}

.research-meta {
    color: #666;
    font-size: 9pt;
}

.research-year {
    font-weight: 500;
    color: #2d5f3f;
}

.research-type {
    background: #e8f5e8;
    color: #2d5f3f;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 8pt;
    font-weight: 500;
}

.research-authors, .research-journal {
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 10pt;
}

.research-abstract {
    margin-bottom: 1rem;
    color: #666;
}

.research-abstract p {
    margin-top: 0.5rem;
    line-height: 1.6;
    font-size: 10pt;
}

.research-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.research-link {
    color: #2d5f3f;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border: 1px solid #2d5f3f;
    border-radius: 4px;
    font-size: 9pt;
    transition: all 0.3s ease;
}

.research-link:hover {
    background: #2d5f3f;
    color: white;
}

.research-tags {
    color: #777;
    font-size: 9pt;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}


/* Responsive adjustments for research results */
@media (max-width: 768px) {
    .research-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .research-link {
        text-align: center;
    }
    
    .research-title {
        font-size: 1.1rem;
    }
}


/* Collections Grid Styles - Vertical stacking for wider cards */
.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.collection-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.collection-card:hover {
    border-color: #2d5f3f;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.collection-name {
    color: #2d5f3f;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.collection-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.collection-actions .action-btn {
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-actions .action-btn:hover {
    background-color: #f8f9fa;
}

.collection-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.collection-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

.item-count {
    color: #2d5f3f;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state h3 {
    color: #888;
    margin-bottom: 0.5rem;
}

.create-collection-btn {
    background-color: #2d5f3f;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.create-collection-btn:hover {
    background-color: #245f3a;
}


/* Positioning for card actions container in favorites cards */
.favorite-item .card-actions-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-item .save-icon-container {
    display: flex;
    align-items: center;
}

.favorite-save-icon {
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
    color: #666;
}


/* Distribution cards styling */
.distribution-card {
    background: #f8f9fa !important;
    border-left: 4px solid #2d5f3f !important;
    transition: all 0.2s ease;
}

.distribution-card:hover {
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.15);
    transform: translateY(-1px);
}

.distribution-card .collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.distribution-card .collection-header h4 {
    margin: 0;
    color: #2d5f3f;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.distribution-card .collection-header p {
    margin: 2px 0 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.2;
}

.distribution-card .action-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.distribution-card .action-btn:hover {
    background-color: rgba(45, 95, 63, 0.1);
}

.distribution-card .action-btn svg {
    transition: all 0.2s;
}

.distribution-card .action-btn:hover svg {
    stroke: #1e4029;
}

/* Distribution container empty state */
.distributions-container .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.distributions-container .empty-state h3 {
    color: #2d5f3f;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.distributions-container .empty-state p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
