/* css/federation-manager.css - Federation/Confederation Styles */

.federation-placeholder {
    padding: 20px 0;
}

/* Development Notice */
.dev-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    margin-bottom: 24px;
}

.dev-icon {
    font-size: 32px;
}

.dev-text strong {
    display: block;
    color: #92400e;
    font-size: 15px;
    margin-bottom: 4px;
}

.dev-text p {
    margin: 0;
    color: #a16207;
    font-size: 13px;
}

/* Action Cards Grid */
.fed-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.fed-action-card {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fed-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.fed-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.fed-action-card h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #111827);
}

.fed-action-card > p {
    margin: 0 0 20px 0;
    color: var(--text-secondary, #6b7280);
    font-size: 14px;
    line-height: 1.5;
}

.fed-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.fed-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-primary, #111827);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.fed-features li:last-child {
    border-bottom: none;
}

.fed-action-card .btn-lg {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
}

.fed-action-card .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.coming-soon-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

/* Info Section */
.fed-info-section {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.fed-info-section h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.fed-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.fed-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
    min-width: 160px;
}

.step-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #2563eb);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-text {
    text-align: left;
}

.step-text strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary, #111827);
}

.step-text span {
    font-size: 11px;
    color: var(--text-secondary, #6b7280);
}

.fed-step-arrow {
    color: var(--text-tertiary, #9ca3af);
    font-size: 20px;
    font-weight: bold;
}

/* Stats Preview */
.fed-stats-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.fed-stat {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.fed-stat .stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin-bottom: 4px;
}

.fed-stat .stat-label {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
}

/* Responsive */
@media (max-width: 768px) {
    .fed-steps {
        flex-direction: column;
    }
    
    .fed-step-arrow {
        transform: rotate(90deg);
    }
    
    .fed-step {
        width: 100%;
    }
}

/* Dark Mode */
[data-theme="dark"] .dev-notice {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-color: #b45309;
}

[data-theme="dark"] .dev-text strong {
    color: #fef3c7;
}

[data-theme="dark"] .dev-text p {
    color: #fde68a;
}

[data-theme="dark"] .fed-action-card,
[data-theme="dark"] .fed-info-section,
[data-theme="dark"] .fed-stat {
    background: var(--bg-secondary, #1f2937);
    border-color: var(--border-color, #374151);
}

[data-theme="dark"] .fed-step {
    background: var(--bg-tertiary, #374151);
}

[data-theme="dark"] .coming-soon-badge {
    background: #374151;
    color: #9ca3af;
}

/* css/federation-manager.css - ПОЛНАЯ ВЕРСИЯ ДЛЯ ДЕМО */

/* Сетка статистики сверху */
.fed-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    flex: 1;
    background: #f7931a; /* Bitcoin Orange */
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.2);
}

/* Главная карточка создания */
.fed-card.primary {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.fed-card h3 {
    margin-top: 0;
    color: #111827;
    font-size: 22px;
}

.fed-card ol {
    margin: 20px 0;
    padding-left: 20px;
    color: #4b5563;
    line-height: 1.6;
}

.fed-card ol li {
    margin-bottom: 8px;
}

/* Список активных федераций */
.fed-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.fed-item {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s;
}

.fed-item:hover {
    transform: translateY(-3px);
    border-color: #f7931a;
}

.fed-item strong {
    color: #111827;
    font-family: monospace;
    font-size: 1.1em;
}

/* Кнопка отправки BTC внутри карточки */
.fed-item button {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: white;
    border: 1px solid #0a0a0a;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.fed-item button:hover {
    background: #0a0a0a;
    color: white;
}

/* Стили для кнопок в стиле Satoshifi */
.btn-primary {
    background: #f7931a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e88310;
}

/* Статусы фаз DKG для демо */
.phase-indicator {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 8px;
}

.phase-step {
    font-size: 12px;
    color: #9ca3af;
    position: relative;
}

.phase-step.active {
    color: #f7931a;
    font-weight: bold;
}

.phase-step.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f7931a;
}
