/* Awards Posts Display Styles */

.awards-posts-table-wrapper {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}
.close-popup:hover{
	color: #ffffff !important;
    border-radius: 50px !important;
}
/* Search Controls */
.awards-posts-search-wrapper {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.search-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.awards-posts-search {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-btn, .clear-search-btn, .cleared-search-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.search-btn:hover, .clear-search-btn:hover {
    background: #005a87;
}

.clear-search-btn {
    background: #666;
}

.clear-search-btn:hover {
    background: #444;
}

.search-status {
    font-size: 12px;
    color: #666;
}

.search-status .typing {
    color: #0073aa;
}

.search-status .searching {
    color: #ff6600;
}

.search-status .search-results {
    color: #28a745;
}

.search-status .no-results {
    color: #dc3545;
}

.search-status .error {
    color: #dc3545;
}

/* Table Styles */
.awards-posts-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.awards-posts-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
}

.awards-posts-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.awards-posts-table tr:hover {
    background: #f8f9fa;
}

.awards-posts-table tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.view-more-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.view-more-btn:hover {
    background: #218838;
}

.video-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.video-link:hover {
    text-decoration: underline;
}

/* Pagination */
.awards-posts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.awards-posts-pagination a {
    padding: 8px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.awards-posts-pagination a:hover {
    background: #005a87;
}

.awards-posts-pagination .disabled {
    padding: 8px 12px;
    background: #6c757d;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-number {
    padding: 8px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.page-number:hover {
    background: #005a87;
}

.page-number.current {
    background: #28a745;
    cursor: default;
}

.page-number.current:hover {
    background: #28a745;
}

.page-dots {
    padding: 8px 4px;
    color: #6c757d;
    font-size: 14px;
}

.page-info {
    font-size: 12px;
    color: #6c757d;
    margin-left: 10px;
}

/* Popup Styles */
.awards-post-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    overflow-y: auto;
}

.popup-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.popup-header h3 {
    margin: 0;
    color: #495057;
}

.close-popup {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup:hover {
    color: #dc3545;
}

.popup-body {
    padding: 20px;
}

/* Post Details */
.post-details-content {
    margin-bottom: 20px;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.detail-row {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-row strong {
    display: inline-block;
    min-width: 120px;
    color: #495057;
    margin-right: 10px;
}

.text-content, .content-text, .array-content {
    display: inline-block;
    max-width: 70%;
    word-wrap: break-word;
}

.meta-value {
    margin-bottom: 5px;
    padding: 2px 0;
}

.empty-value {
    color: #999;
    font-style: italic;
}

.video-link-display {
    background: #f0f8ff;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #0073aa;
}

.video-link-display a {
    color: #0073aa;
    font-weight: bold;
    text-decoration: none;
}

.video-link-display a:hover {
    text-decoration: underline;
}

.content-text {
    line-height: 1.6;
}

/* Video Container */
/* .video-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
} */

.video-container h4 {
    margin: 0 0 15px 0;
    color: #495057;
}

.video-iframe {
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Loading States */
.loading {
    text-align: center;
    padding: 20px;
    color: #0073aa;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .awards-posts-table {
        font-size: 12px;
    }
    
    .awards-posts-table th,
    .awards-posts-table td {
        padding: 8px;
    }
    
    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .awards-posts-search {
        margin-bottom: 10px;
    }
    
    .awards-posts-pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-numbers {
        flex-wrap: wrap;
    }
    
    .popup-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .popup-header,
    .popup-body {
        padding: 15px;
    }
    
    .detail-row strong {
        display: block;
        margin-bottom: 5px;
        min-width: auto;
    }
    
    .text-content, .content-text, .array-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .awards-posts-table {
        font-size: 11px;
    }
    
    .awards-posts-table th,
    .awards-posts-table td {
        padding: 6px;
    }
    
    .view-more-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .page-number,
    .awards-posts-pagination a {
        padding: 6px 8px;
        font-size: 12px;
    }
}
