/* Landmark Cases Page Styles */

/* Page Header */
.landmark-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 20px 20px 20px;
    text-align: center;
}

.landmark-header .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 12px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb span {
    color: #cbd5e0;
}

.breadcrumb span:last-child {
    color: #ffffff;
    font-weight: 500;
}

/* Page Title */
.landmark-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.landmark-header p {
    font-size: 14px;
    color: #e2e8f0;
    margin: 0 0 12px 0;
}

/* Year Selector Container */
.year-selector-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.year-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.year-selector {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #ffffff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.year-selector:hover {
    background: rgba(255, 255, 255, 0.2);
}

.year-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.year-selector option {
    background: #1a1a2e;
    color: #ffffff;
}

.case-count {
    font-size: 15px;
    color: #cbd5e0;
    font-weight: 500;
}

/* Total Cases Banner */
.total-cases-banner {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    padding: 16px 20px;
    text-align: center;
    border-bottom: 2px solid #4a5568;
}

.total-cases-banner .container {
    max-width: 1200px;
    margin: 0 auto;
}

.total-cases-banner p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

/* Cases Listing Section */
.cases-listing-section {
    padding: 60px 20px;
    background: #f8f9fa;
    min-height: 60vh;
}

.cases-listing-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #64748b;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-state p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}

.empty-state svg {
    margin-bottom: 24px;
    color: #cbd5e0;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
    color: #64748b;
}

/* Cases List - Google Search Style */
.cases-list {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    max-width: 80%;
    margin: 0;
}

.case-result {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.case-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    border-color: #cbd5e0;
}

.case-result:first-child {
    border: 1px solid #e2e8f0;
}

.case-title {
    font-size: 20px;
    font-weight: 400;
    color: #1a0dab;
    margin: 0 0 12px 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    width: 100%;
}

.case-result:hover .case-title {
    text-decoration: underline;
}

.case-meta-top {
    margin-bottom: 8px;
}

.case-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.case-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #fef7e0;
    color: #7c4a03;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #f9e6b2;
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-pill:hover {
    background: #f9e6b2;
    border-color: #f4d68f;
}

.case-pill-secondary {
    background: #e6f4ea;
    color: #137333;
    border-color: #c6e7d0;
}

.case-pill-secondary:hover {
    background: #c6e7d0;
    border-color: #a7d6b5;
}

.case-pill-year {
    background: #e8f0fe;
    color: #174ea6;
    border-color: #d2e3fc;
}

.case-pill-year:hover {
    background: #d2e3fc;
    border-color: #aecbfa;
}

.case-pill-precedent {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #e9d5ff;
}

.case-pill-precedent:hover {
    background: #e9d5ff;
    border-color: #d8b4fe;
}

.case-citation {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 8px;
}

.case-snippet {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.6;
    margin: 8px 0 12px 0;
}

.case-bench {
    font-size: 13px;
    color: #70757a;
    margin-top: 8px;
    font-style: italic;
}

.case-keywords-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8eaed;
}

.case-keywords-label {
    font-size: 12px;
    font-weight: 600;
    color: #5f6368;
    margin-right: 8px;
}

.case-keywords {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.case-keyword {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f3f4;
    color: #3c4043;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.case-keyword:hover {
    background: #e8eaed;
}

.case-keyword-more {
    display: inline-block;
    padding: 4px 10px;
    background: #fff;
    color: #5f6368;
    border: 1px solid #dadce0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-style: italic;
}

.case-statutory-refs {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #1565c0;
    border-radius: 4px;
    font-size: 13px;
}

.statutory-refs-label {
    font-weight: 600;
    color: #1565c0;
    margin-right: 8px;
}

.statutory-refs-text {
    color: #3c4043;
}

.btn-case-analysis {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: #1565c0;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-case-analysis:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

/* Pagination */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.pagination-btn {
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landmark-header {
        padding: 40px 20px 30px;
    }

    .landmark-header h1 {
        font-size: 32px;
    }

    .landmark-header p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .year-selector-container {
        flex-direction: column;
        gap: 12px;
    }

    .year-selector {
        width: 100%;
        max-width: 300px;
    }

    .cases-listing-section {
        padding: 40px 16px;
    }

    .cases-list {
        max-width: 100%;
        gap: 12px;
    }

    .case-result {
        padding: 16px;
        margin: 0;
    }

    .case-result:hover {
        padding: 16px;
        transform: none;
    }

    .case-title {
        font-size: 18px;
    }

    .pagination-container {
        flex-direction: column;
        gap: 16px;
        margin-top: 32px;
    }

    .pagination-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .landmark-header h1 {
        font-size: 28px;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .case-result {
        padding: 14px;
    }

    .case-result:hover {
        padding: 14px;
        transform: none;
    }

    .case-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .case-pills {
        gap: 6px;
    }

    .case-pill {
        font-size: 11px;
        padding: 5px 10px;
        white-space: normal;
        word-break: break-word;
        max-width: calc(100vw - 80px);
    }
}
