/* Data Display Styles - Clean Post Entry Style */

.records-list {
    margin-top: 20px;
}

.record-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 30px;
    transition: none;
}

.record-item:hover {
    box-shadow: none;
    transform: none;
}

.record-item:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 30px;
}

.record-header {
    margin-bottom: 15px;
}

.record-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.record-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.record-title a:hover {
    color: #1976d2;
    text-decoration: underline;
}

.record-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.record-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #bbdefb;
    display: inline-block;
}

.record-date {
    background: #f5f5f5;
    color: #666;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    display: inline-block;
}

.record-content {
    color: #555;
    line-height: 1.6;
}

.record-content p {
    margin: 8px 0;
    font-size: 14px;
}

.record-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.record-location {
    color: #7f8c8d;
    font-weight: 500;
}

.record-description {
    margin: 12px 0 !important;
    color: #555;
    font-style: normal;
}

.record-details {
    margin: 8px 0 !important;
    color: #666;
    font-size: 14px;
}

.record-read-more {
    color: #1976d2;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

/* Ensure read-more links don't have underline (matching original homepage style) */
.read-more {
    color: #1976d2;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

.record-contact,
.record-phone,
.record-email {
    color: #27ae60;
}

.record-date-added {
    display: none; /* Hide the old date format */
}

.no-records {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #bdc3c7;
}

.no-records p {
    font-size: 16px;
    margin: 0;
}

/* Category Overview Styles */
.category-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.category-summary {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.category-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-summary h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.category-summary .count {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    margin: 10px 0;
}

.category-summary .description {
    color: #7f8c8d;
    font-size: 14px;
    margin: 10px 0;
}

.category-summary .view-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.category-summary .view-link:hover {
    background: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .record-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .record-title {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .category-overview {
        grid-template-columns: 1fr;
    }
    
    .record-item {
        padding: 15px;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Record Detail Page Styles */
.record-detail {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}

.record-detail .record-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.record-detail .record-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.record-detail .record-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.record-detail .record-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 16px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #bbdefb;
}

.record-detail .record-date {
    background: #f5f5f5;
    color: #666;
    padding: 6px 16px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

.record-detail .record-content h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 10px 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.record-detail .record-content h3:first-child {
    margin-top: 0;
}

.record-detail .record-content p {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.record-detail .record-content a {
    color: #1976d2;
    text-decoration: none;
}

.record-detail .record-content a:hover {
    text-decoration: underline;
}

.record-sidebar {
    font-size: 14px;
    line-height: 1.6;
}

.record-sidebar h3 {
    color: #2c3e50;
    font-size: 16px;
    margin: 20px 0 10px 0;
}

.record-sidebar h3:first-child {
    margin-top: 0;
}

.record-sidebar p {
    color: #666;
    margin: 10px 0;
}

.record-sidebar .view-all {
    display: inline-block;
    background: #1976d2;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin: 10px 0;
    transition: background-color 0.2s ease;
}

.record-sidebar .view-all:hover {
    background: #1565c0;
    color: white;
}
