/* Case Analysis Styles */
.analysis-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.analysis-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #ffcc00;
}

.analysis-header h1 {
    color: #ffcc00;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.disclaimer {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0 0 0;
    color: #ffcc00;
    font-size: 14px;
    line-height: 1.6;
}

.disclaimer i {
    margin-right: 8px;
    font-size: 16px;
}

/* Section Styles */
.analysis-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #2d2d2d;
    transition: all 0.3s ease;
}

.analysis-section:hover {
    border-color: #ffcc00;
    box-shadow: 0 4px 20px rgba(255, 204, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2d2d2d;
}

.section-title {
    color: #ffcc00;
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 28px;
}

.toggle-btn {
    background: none;
    border: none;
    color: #ffcc00;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.toggle-btn:hover {
    transform: scale(1.1);
}

.toggle-btn.collapsed {
    transform: rotate(180deg);
}

.section-content {
    color: #e0e0e0;
    line-height: 1.8;
}

.section-content.collapsed {
    display: none;
}

/* Metadata Grid */
.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.metadata-item {
    background: #0f0f0f;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #ffcc00;
}

.metadata-label {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.metadata-value {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* Document Cards */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.document-card {
    background: #0f0f0f;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.document-card:hover {
    border-color: #ffcc00;
    transform: translateY(-2px);
}

.document-title {
    color: #ffcc00;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.document-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.info-label {
    color: #999;
}

.info-value {
    color: #fff;
    font-weight: 500;
}

/* Party Cards */
.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.party-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 20px;
}

.party-name {
    color: #ffcc00;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.party-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    gap: 10px;
}

.detail-label {
    color: #999;
    min-width: 120px;
    font-size: 14px;
}

.detail-value {
    color: #fff;
    font-size: 14px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 15px;
    background: #0f0f0f;
    border-radius: 8px;
    border: 1px solid #2d2d2d;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffcc00;
    border: 3px solid #0a0a0a;
}

.timeline-date {
    color: #ffcc00;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.timeline-event {
    color: #fff;
    font-size: 15px;
    margin-bottom: 5px;
}

.timeline-significance {
    color: #999;
    font-size: 13px;
    font-style: italic;
}

.timeline-reference {
    color: #666;
    font-size: 12px;
    margin-top: 8px;
}

/* Financial Info */
.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.financial-card {
    background: linear-gradient(135deg, #1a3a1a 0%, #0f1f0f 100%);
    border: 1px solid #2d4d2d;
    border-radius: 8px;
    padding: 20px;
}

.financial-amount {
    color: #4ade80;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.financial-type {
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
}

.financial-description {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
}

/* Legal Framework */
.law-card {
    background: #0f0f0f;
    border-left: 4px solid #ffcc00;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.law-title {
    color: #ffcc00;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.law-citation {
    color: #4ade80;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.law-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.law-detail-row {
    display: flex;
    gap: 10px;
}

.law-detail-label {
    color: #999;
    min-width: 140px;
    font-size: 13px;
}

.law-detail-value {
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.6;
}

/* Issues */
.issue-card {
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.issue-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.issue-number {
    background: #ffcc00;
    color: #0a0a0a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.issue-title {
    color: #ffcc00;
    font-size: 20px;
    font-weight: 600;
}

.issue-description {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 15px;
}

.perspectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.perspective-card {
    background: #0f0f0f;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 20px;
}

.perspective-party {
    color: #4ade80;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.perspective-section {
    margin-bottom: 15px;
}

.perspective-label {
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.perspective-content {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
}

.perspective-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.perspective-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 5px;
}

.perspective-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ffcc00;
}

/* Concerns */
.concern-card {
    background: linear-gradient(135deg, #2d1a1a 0%, #1a0f0f 100%);
    border: 1px solid #4d2d2d;
    border-left: 4px solid #ff6b6b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.concern-category {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.concern-description {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Educational Insights */
.concept-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.concept-title {
    color: #ada75a;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.concept-explanation {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Recommendations */
.recommendation-card {
    background: #0f0f0f;
    border: 1px solid #2d2d2d;
    border-left: 4px solid #4ade80;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.recommendation-area {
    color: #4ade80;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.recommendation-reason {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.recommendation-questions {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.recommendation-questions li {
    padding: 10px;
    background: #1a1a1a;
    border-radius: 6px;
    margin-bottom: 8px;
    padding-left: 30px;
    position: relative;
}

.recommendation-questions li::before {
    content: '?';
    position: absolute;
    left: 10px;
    color: #ffcc00;
    font-weight: 700;
}

/* Conclusion */
.conclusion-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #ffcc00;
    border-radius: 12px;
    padding: 30px;
}

.conclusion-title {
    color: #ffcc00;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.takeaways-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.takeaways-list li {
    padding: 12px;
    background: #0f0f0f;
    border-left: 3px solid #4ade80;
    border-radius: 6px;
    margin-bottom: 10px;
    padding-left: 20px;
}

.next-steps-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.next-steps-list li {
    padding: 12px;
    background: #0f0f0f;
    border-left: 3px solid #ffcc00;
    border-radius: 6px;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.next-steps-list li::before {
    content: '→';
    position: absolute;
    left: 5px;
    color: #ffcc00;
    font-weight: 700;
}

.consultation-alert {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.consultation-alert h4 {
    color: #ff6b6b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.consultation-alert p {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .analysis-container {
        padding: 15px;
    }

    .analysis-header h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 20px;
    }

    .metadata-grid,
    .document-grid,
    .party-grid,
    .financial-grid,
    .perspectives-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #ffcc00;
    font-size: 18px;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Reference Badge */
.reference-badge {
    display: inline-block;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    color: #ffcc00;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    margin-left: 8px;
}

/* List Styles */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.styled-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #e0e0e0;
    line-height: 1.6;
}

.styled-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #ffcc00;
    font-weight: 700;
}

/* Summary Styles */
.summary-overview {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.timeline-overview-box {
    background: #0f0f0f;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.timeline-label {
    color: #ffcc00;
}

/* Subsection Titles */
.subsection-title {
    color: #ffcc00;
    margin: 25px 0 15px 0;
}

.subsection-title-spaced {
    margin: 15px 0 15px 0;
}

/* Financial Reference */
.financial-reference {
    color: #666;
    font-size: 12px;
    margin-top: 10px;
}

/* Concern Styles */
.concern-implications {
    margin-top: 10px;
}

.implications-label {
    color: #ff6b6b;
}

.concern-review {
    margin-top: 10px;
}

.review-label {
    color: #4ade80;
}

.concern-reference {
    margin-top: 10px;
}

/* Analysis Notes */
.analysis-notes-box {
    background: #0f0f0f;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.notes-label {
    color: #ffcc00;
}

/* Considerations Box */
.considerations-box {
    margin-top: 15px;
}

.considerations-label {
    color: #ffcc00;
}

/* Perspectives Title */
.perspectives-title {
    color: #ffcc00;
    margin: 20px 0 15px 0;
}

/* Concept Application */
.concept-application {
    margin-top: 10px;
}

.application-label {
    color: #6b9eff;
}

.concept-reading {
    margin-top: 10px;
    font-size: 13px;
    color: #999;
}

/* Recommendation Questions Section */
.questions-section {
    margin-top: 10px;
}

.questions-label {
    color: #4ade80;
}

/* Expertise Box */
.expertise-box {
    margin-top: 15px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 6px;
}

.expertise-label {
    color: #ffcc00;
}

/* Conclusion Summary */
.conclusion-summary {
    font-size: 15px;
    line-height: 1.8;
}
