/* ActivityPub Follow Button Styles */

.activitypub-follow {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Inline Style */
.activitypub-follow--inline .activitypub-follow__link {
    color: #6364ff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted currentColor;
}

.activitypub-follow--inline .activitypub-follow__link:hover {
    color: #4f50cc;
    border-bottom-style: solid;
}

.activitypub-follow--inline .activitypub-follow__handle {
    margin-left: 0.5em;
    font-size: 0.9em;
    color: #666;
    background: #f5f5f5;
    padding: 0.1em 0.4em;
    border-radius: 3px;
}

/* Button Style */
.activitypub-follow__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 1.25em;
    background: linear-gradient(135deg, #6364ff 0%, #563acc 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.activitypub-follow__button:hover {
    background: linear-gradient(135deg, #563acc 0%, #4f50cc 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 100, 255, 0.3);
    color: white;
    text-decoration: none;
}

.activitypub-follow__button:active {
    transform: translateY(0);
}

.activitypub-follow__icon {
    font-size: 1.1em;
}

/* Button Sizes */
.activitypub-follow--small .activitypub-follow__button {
    padding: 0.5em 0.875em;
    font-size: 0.9em;
}

.activitypub-follow--large .activitypub-follow__button {
    padding: 1em 1.5em;
    font-size: 1.1em;
}

/* Badge Style */
.activitypub-follow__badge {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 1em;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    max-width: 400px;
}

.activitypub-follow__badge .activitypub-follow__icon {
    font-size: 1.5em;
}

.activitypub-follow__content {
    flex: 1;
}

.activitypub-follow__title {
    display: block;
    margin-bottom: 0.25em;
    color: #212529;
}

.activitypub-follow__handle {
    font-size: 0.875em;
    color: #6c757d;
    background: #e9ecef;
    padding: 0.2em 0.5em;
    border-radius: 4px;
}

.activitypub-follow__badge .activitypub-follow__link {
    background: #6364ff;
    color: white;
    padding: 0.5em 1em;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.activitypub-follow__badge .activitypub-follow__link:hover {
    background: #563acc;
    color: white;
    text-decoration: none;
}

/* Instructions */
.activitypub-follow__instructions {
    margin-top: 1em;
    padding: 1em;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.5;
}

.activitypub-follow__instructions p {
    margin: 0 0 0.5em 0;
}

.activitypub-follow__instructions ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.activitypub-follow__instructions code {
    background: #e9ecef;
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 640px) {
    .activitypub-follow__badge {
        flex-direction: column;
        text-align: center;
        gap: 0.5em;
    }
    
    .activitypub-follow__content {
        order: 1;
    }
    
    .activitypub-follow__badge .activitypub-follow__link {
        order: 2;
        align-self: stretch;
        text-align: center;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .activitypub-follow__badge {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .activitypub-follow__title {
        color: #f7fafc;
    }
    
    .activitypub-follow__handle,
    .activitypub-follow--inline .activitypub-follow__handle {
        background: #4a5568;
        color: #cbd5e0;
    }
    
    .activitypub-follow__instructions {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .activitypub-follow__instructions code {
        background: #4a5568;
        color: #cbd5e0;
    }
}