/**
 * LuckyMCP System Info - Frontend Styles
 * Dark Gaming Theme
 */

/* Container */
.luckymcp-system-info {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 12px;
    overflow: hidden;
    max-width: 600px;
    margin: 20px auto;
}

/* Dark Theme (Default) */
.luckymcp-sysinfo-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #2d2d44;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #e1e1e6;
}

/* Light Theme */
.luckymcp-sysinfo-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: #212529;
}

/* Header */
.sysinfo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.luckymcp-sysinfo-light .sysinfo-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.sysinfo-icon {
    font-size: 24px;
}

.sysinfo-title {
    font-size: 18px;
    font-weight: 600;
}

/* Content */
.sysinfo-content {
    padding: 20px;
}

/* Loading Spinner */
.sysinfo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: #a3a3c2;
}

.sysinfo-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Grid Layout */
.sysinfo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

/* Section */
.sysinfo-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.luckymcp-sysinfo-light .sysinfo-section {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.sysinfo-section-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #667eea;
    letter-spacing: 0.5px;
}

.luckymcp-sysinfo-light .sysinfo-section-title {
    color: #5a67d8;
}

/* Rows */
.sysinfo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sysinfo-row:last-child {
    border-bottom: none;
}

.luckymcp-sysinfo-light .sysinfo-row {
    border-bottom-color: rgba(0, 0, 0, 0.03);
}

.sysinfo-label {
    font-size: 12px;
    color: #a3a3c2;
}

.luckymcp-sysinfo-light .sysinfo-label {
    color: #6c757d;
}

.sysinfo-value {
    font-size: 13px;
    font-weight: 500;
    color: #e1e1e6;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.luckymcp-sysinfo-light .sysinfo-value {
    color: #212529;
}

/* GPU Value (can be long) */
.sysinfo-gpu {
    font-size: 11px;
    line-height: 1.3;
}

/* Footer */
.sysinfo-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.luckymcp-sysinfo-light .sysinfo-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}

/* Copy Button */
.sysinfo-copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sysinfo-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

/* Copy Feedback */
.sysinfo-copy-feedback {
    font-size: 13px;
    color: #10b981;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sysinfo-copy-feedback.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .luckymcp-system-info {
        margin: 10px;
        border-radius: 8px;
    }

    .sysinfo-grid {
        grid-template-columns: 1fr;
    }

    .sysinfo-header {
        padding: 14px 16px;
    }

    .sysinfo-content {
        padding: 16px;
    }

    .sysinfo-footer {
        padding: 14px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .sysinfo-copy-btn {
        width: 100%;
    }

    .sysinfo-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .sysinfo-value {
        max-width: 100%;
        text-align: left;
    }
}
