@import "./common.css";

.nip85-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.nip85-info h2 {
    color: #2c3e50;
    margin-bottom: 16px;
}

.nip85-info h3 {
    color: #34495e;
    margin: 20px 0 12px 0;
}

.nip85-info ul {
    padding-left: 20px;
}

.nip85-info li {
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.nip85-info li:last-child {
    border-bottom: none;
}

.authors-showcase {
    background: #ffffff;
    border: 2px solid #3498db;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.authors-showcase h2 {
    color: #2980b9;
    margin-bottom: 16px;
    text-align: center;
}

.loading-state {
    text-align: center;
    padding: 40px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stats-summary {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    color: #0c5460;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.author-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.author-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.author-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6c757d;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 16px;
}

.author-pubkey {
    font-family: monospace;
    font-size: 12px;
    color: #6c757d;
    word-break: break-all;
}

.author-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-weight: 600;
    color: #2980b9;
    display: block;
    font-size: 18px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.error-state {
    text-align: center;
    padding: 40px;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

.developer-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}

.developer-info h2 {
    color: #2c3e50;
    margin-bottom: 16px;
}

.integration-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.step {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
}

.step h3 {
    color: #2980b9;
    margin-bottom: 12px;
}

.step p {
    color: #5a6c7d;
    margin: 0;
}

/* Sample events toggle styling */
.sample-events-section {
    margin: 20px 0;
    text-align: center;
}

.toggle-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.toggle-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 160px;
}

.toggle-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.toggle-btn.active {
    background: #27ae60;
}

.toggle-btn.active:hover {
    background: #229954;
}

.sample-event-container {
    margin: 16px 0;
    padding: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}

.sample-event-header {
    background: #e9ecef;
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sample-event-content {
    padding: 0;
    margin: 0;
}

.sample-event-content pre {
    margin: 0;
    padding: 16px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
}

.sample-event-content-small {
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    text-align: left;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #495057;
}

@media (max-width: 768px) {
    .authors-grid {
        grid-template-columns: 1fr;
    }
    
    .integration-steps {
        grid-template-columns: 1fr;
    }
    
    .toggle-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .toggle-btn {
        width: 200px;
    }
    
    .sample-event-content pre {
        font-size: 11px;
    }
}