/**
 * Single Hospital Template Styles
 * Extends content-template.css for hospital-specific pages
 */

/* Placeholder Text Styling */
.placeholder-text {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: var(--spacing-md);
    display: block;
    color: #856404;
    font-style: italic;
    margin: var(--spacing-md) 0;
    border-radius: 4px;
}

.placeholder-text::before {
    content: "⚠️ ";
    font-style: normal;
}

/* Hospital-Specific Highlight Blocks */
.hospital-single-page .quick-answer-block {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-left: 4px solid #ffc107;
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    border-radius: 8px;
}

.hospital-single-page .quick-answer-title {
    color: #856404;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.hospital-single-page .quick-answer-list {
    color: #856404;
    margin: 0;
    padding-left: var(--spacing-lg);
}

.hospital-single-page .quick-answer-list li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}

.hospital-single-page .quick-answer-list strong {
    font-weight: 700;
}

/* Data Tables */
.data-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 1rem;
    table-layout: auto;
}

.data-table thead th {
    background: #163C68;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.data-table tbody td,
.data-table tbody th {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.data-table tbody th {
    background: #f8f9fa;
    color: #163C68;
    font-weight: 600;
    width: 30%;
    text-align: left;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
    border-bottom: none;
}

/* Ensure proper column widths for case table */
.data-table thead th:nth-child(1) {
    width: 10%;
}

.data-table thead th:nth-child(2) {
    width: 40%;
}

.data-table thead th:nth-child(3) {
    width: 20%;
}

.data-table thead th:nth-child(4) {
    width: 30%;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-settlement {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-verdict {
    background: #d4edda;
    color: #155724;
}

.table-amount {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.125rem;
}

/* Hospital Info Table Alternating Rows */
.hospital-info-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

/* Transit Cards */
.transit-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.transit-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.transit-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.transit-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #163C68;
    margin: 0 0 0.75rem 0;
}

.transit-card-content {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Transit Cards */
@media (max-width: 768px) {
    .transit-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .transit-card {
        padding: 1.25rem;
    }

    .transit-card-icon {
        font-size: 2.5rem;
    }
}

/* Responsive Tables */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.9rem;
    }

    .data-table thead th,
    .data-table tbody td,
    .data-table tbody th {
        padding: 0.5rem;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
    }

    .data-table tbody td {
        display: block;
        text-align: right;
        padding: 0.5rem;
        border-bottom: 1px solid #f8f9fa;
    }

    .data-table tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #163C68;
    }

    .hospital-info-table tbody th {
        display: block;
        width: 100%;
        text-align: left;
        background: #163C68;
        color: white;
        border-radius: 8px 8px 0 0;
    }

    .hospital-info-table tbody td {
        text-align: left;
        padding-left: 1rem;
    }
}
