/* MCP Integration Page Styles */
/* Inherits from the main site's color scheme and navigation */

/* Use the site's CSS variables for consistency */
:root {
    /* Integration-specific overrides if needed */
    --mcp-accent: var(--accent-color, #24b9bd);
    --mcp-bg: var(--bg-color, #131314);
    --mcp-card-bg: var(--card-bg, #1e2124);
    --mcp-text: var(--text-color, #f8f8f8);
    --mcp-border: var(--border-color, #333);
    --mcp-button-bg: var(--button-bg, #252526);
    --mcp-hover: var(--hover-color, #333);
}

/* Page Layout */
.mcp-page {
    background-color: var(--mcp-bg);
    min-height: calc(100vh - 80px); /* Account for top navigation */
    padding: 2rem 1rem;
}

/* Container styling to match site */
.mcp-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Card styling consistent with site */
.mcp-card {
    background-color: var(--mcp-card-bg) !important;
    border: 1px solid var(--mcp-border) !important;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.15s ease-in-out;
}

.mcp-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mcp-card .card-body {
    padding: 2rem;
}

.mcp-card .card-title {
    color: var(--mcp-text) !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mcp-card .card-text {
    color: var(--secondary-text, #a9a9a9) !important;
    margin-bottom: 1.5rem;
}

/* Button styling to match site theme */
.mcp-btn {
    background-color: var(--mcp-button-bg) !important;
    border-color: var(--mcp-border) !important;
    color: var(--mcp-text) !important;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mcp-btn:hover {
    background-color: var(--mcp-hover) !important;
    border-color: var(--mcp-accent) !important;
    color: var(--mcp-accent) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(36, 185, 189, 0.2);
}

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

/* Primary button variant */
.mcp-btn-primary {
    background-color: var(--mcp-accent) !important;
    border-color: var(--mcp-accent) !important;
    color: white !important;
}

.mcp-btn-primary:hover {
    background-color: #1ea5a8 !important;
    border-color: #1ea5a8 !important;
    color: white !important;
}

/* Button group spacing */
.mcp-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Details/Summary styling */
.mcp-details {
    margin-top: 1.5rem;
    border: 1px solid var(--mcp-border);
    border-radius: 0.5rem;
    background-color: var(--mcp-button-bg);
}

.mcp-details summary {
    padding: 1rem;
    cursor: pointer;
    color: var(--mcp-text);
    font-weight: 500;
    user-select: none;
    transition: background-color 0.15s ease-in-out;
}

.mcp-details summary:hover {
    background-color: var(--mcp-hover);
}

.mcp-details[open] summary {
    border-bottom: 1px solid var(--mcp-border);
    background-color: var(--mcp-hover);
}

.mcp-details .details-content {
    padding: 1rem;
}

/* Code block styling */
.mcp-code {
    background-color: var(--mcp-bg) !important;
    border: 1px solid var(--mcp-border) !important;
    border-radius: 0.375rem;
    padding: 1rem;
    color: var(--mcp-text) !important;
    font-family: 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    overflow-x: auto;
    margin: 0;
}

/* Platform-specific button icons */
.mcp-btn::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.mcp-btn[href*="WIN"]::before {
    content: '🪟';
    font-size: 1rem;
}

.mcp-btn[href*="MAC"]::before {
    content: '🍎';
    font-size: 1rem;
}

.mcp-btn[href*="LINUX"]::before {
    content: '🐧';
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .mcp-page {
        padding: 1rem 0.5rem;
    }
    
    .mcp-card .card-body {
        padding: 1.5rem;
    }
    
    .mcp-btn-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mcp-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Loading states and animations */
.mcp-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.mcp-btn.loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

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

/* Status indicators */
.mcp-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.mcp-status.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.mcp-status.warning {
    background-color: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.mcp-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Helper text */
.mcp-help-text {
    color: var(--secondary-text, #a9a9a9);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Focus states for accessibility */
.mcp-btn:focus,
.mcp-details summary:focus {
    outline: 2px solid var(--mcp-accent);
    outline-offset: 2px;
}