/* ActivityPub One-Click Modal Styles */

.activitypub-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#activitypub-modal.show .activitypub-modal-overlay {
    opacity: 1;
}

.activitypub-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#activitypub-modal.show .activitypub-modal-content {
    transform: translateY(0);
}

.activitypub-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.activitypub-modal-header h3 {
    margin: 0;
    color: #212529;
    font-size: 1.25rem;
}

.activitypub-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.activitypub-modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.activitypub-modal-body {
    padding: 1.5rem;
}

.activitypub-method-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.activitypub-tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #6c757d;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.activitypub-tab:hover {
    color: #495057;
    background: #f8f9fa;
}

.activitypub-tab.active {
    color: #6364ff;
    border-bottom-color: #6364ff;
}

.activitypub-tab-content {
    display: none;
}

.activitypub-tab-content.active {
    display: block;
}

.activitypub-instance-input {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.activitypub-instance-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
}

.activitypub-instance-input input:focus {
    outline: none;
    border-color: #6364ff;
    box-shadow: 0 0 0 2px rgba(99, 100, 255, 0.25);
}

.activitypub-instance-input button {
    background: #6364ff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.activitypub-instance-input button:hover {
    background: #563acc;
}

.activitypub-qr-container {
    text-align: center;
    padding: 1rem 0;
}

.activitypub-qr {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem;
    background: white;
}

.activitypub-qr-handle {
    margin: 1rem 0 0 0;
    font-family: monospace;
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.activitypub-copy-container {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.activitypub-copy-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.activitypub-copy-container button {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.activitypub-copy-container button:hover {
    background: #218838;
}

.activitypub-copy-instructions {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.activitypub-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
    color: #6c757d;
}

.activitypub-modal-footer a {
    color: #6364ff;
    text-decoration: none;
}

.activitypub-modal-footer a:hover {
    text-decoration: underline;
}

.activitypub-quick-follow {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .activitypub-modal-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .activitypub-modal-header {
        border-bottom-color: #4a5568;
    }
    
    .activitypub-modal-header h3 {
        color: #f7fafc;
    }
    
    .activitypub-modal-close {
        color: #a0aec0;
    }
    
    .activitypub-modal-close:hover {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .activitypub-method-tabs {
        border-bottom-color: #4a5568;
    }
    
    .activitypub-tab {
        color: #a0aec0;
    }
    
    .activitypub-tab:hover {
        color: #e2e8f0;
        background: #4a5568;
    }
    
    .activitypub-instance-input input,
    .activitypub-copy-input {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .activitypub-qr-handle {
        background: #4a5568;
        color: #cbd5e0;
    }
    
    .activitypub-modal-footer {
        border-top-color: #4a5568;
        color: #a0aec0;
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .activitypub-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .activitypub-method-tabs {
        flex-wrap: wrap;
    }
    
    .activitypub-tab {
        flex: 1;
        min-width: 0;
        font-size: 0.9rem;
    }
    
    .activitypub-instance-input {
        flex-direction: column;
    }
    
    .activitypub-copy-container {
        flex-direction: column;
    }
}