/* Record Component Styles */

/* Record Details Section */
.record-details {
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    background: white;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.hide-details-btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.hide-details-btn:hover {
    background: #1e3a8a;
}

.details-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.details-content.collapsed {
    max-height: 0;
    padding: 0;
}

/* Metadata Navigation */
.metadata-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.metadata-nav-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.metadata-nav-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.metadata-nav-btn.active {
    color: #1e40af;
    border-bottom-color: #1e40af;
    background: white;
}

/* Metadata Content */
.metadata-content-container {
    position: relative;
    min-height: 200px;
}

.metadata-panel {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.metadata-panel.active {
    display: block;
}

.metadata-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.metadata-row:last-child {
    margin-bottom: 0;
}

.metadata-field {
    flex: 1;
    min-width: 200px;
}

.metadata-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.metadata-value {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tag {
    display: inline-block;
    background: #1e40af;
    color: white;
    padding: 0.3rem 0.6rem;
    margin: 0.2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Entity and Address Lists */
.entity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.entity-item {
    background: #f0f4ff;
    color: #1e40af;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e0e8ff;
}

.address-list, .plat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.address-list li, .plat-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.address-list li:last-child, .plat-list li:last-child {
    border-bottom: none;
}

.plat-id {
    background: #1e40af;
    color: white;
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Record Loading States */
.record-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Permalink Styles */
.permalink-container {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 4px;
}

.permalink-link-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.permalink-url {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #1e40af;
    background: #f0f4ff;
    padding: 0.75rem;
    border: 1px solid #e0e8ff;
    border-radius: 4px;
    word-break: break-all;
    user-select: all;
}

.permalink-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.permalink-copy-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.permalink-copy-btn:active {
    transform: translateY(0);
}

.permalink-copy-btn.success {
    background: #28a745;
}

.permalink-copy-btn.error {
    background: #dc3545;
}

.permalink-info {
    text-align: center;
    margin-top: 1rem;
}
