/* Samybaxy's Hyperdrive Debug Widget Styles */

#shypdr-debug-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.shypdr-debug-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-weight: 600;
}

.shypdr-debug-toggle:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.shypdr-debug-content {
    display: none;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
    max-width: 320px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shypdr-debug-widget.expanded .shypdr-debug-content {
    display: block;
}

.shypdr-debug-widget.expanded .shypdr-debug-toggle {
    border-radius: 4px 4px 0 0;
}

.shypdr-debug-stat {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.shypdr-debug-stat strong {
    color: #333;
    display: inline-block;
    min-width: 85px;
}

.shypdr-debug-stat.highlight {
    background: #f0f9ff;
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #bae6fd;
    margin: 5px 0;
}

.shypdr-debug-stat.highlight strong {
    color: #0369a1;
}

.shypdr-debug-list {
    margin: 10px 0;
    padding: 8px 0;
}

.shypdr-debug-list strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 12px;
}

.shypdr-debug-list ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 15px;
}

.shypdr-debug-list li {
    color: #666;
    margin: 3px 0;
    font-size: 11px;
    word-break: break-word;
}

.shypdr-debug-list em {
    color: #999;
    font-style: italic;
}

.shypdr-debug-content hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #eee;
}

/* Debug sections with scrollable plugin lists */
.shypdr-debug-section {
    margin: 10px 0;
}

.shypdr-section-title {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
}

.shypdr-section-title.shypdr-collapsible {
    cursor: pointer;
    user-select: none;
    padding: 4px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.shypdr-section-title.shypdr-collapsible:hover {
    background: #f5f5f5;
}

.shypdr-plugin-list-scrollable {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
    background: #fafafa;
    border-radius: 3px;
    border: 1px solid #eee;
}

.shypdr-plugin-list-scrollable ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shypdr-plugin-list-scrollable li {
    color: #555;
    margin: 4px 0;
    font-size: 11px;
    word-break: break-word;
    line-height: 1.3;
    padding: 2px 4px;
}

.shypdr-plugin-bullet {
    color: #667eea;
    font-weight: bold;
    margin-right: 4px;
}

/* Collapsible content */
.shypdr-collapsible-content {
    display: block;
    max-height: 200px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.shypdr-debug-section:not(.expanded) .shypdr-collapsible-content {
    display: none;
    max-height: 0;
    opacity: 0;
}

.shypdr-debug-section.expanded .shypdr-collapsible-content {
    display: block;
    max-height: 200px;
    opacity: 1;
}

/* Scrollbar for plugin lists */
.shypdr-plugin-list-scrollable::-webkit-scrollbar {
    width: 5px;
}

.shypdr-plugin-list-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.shypdr-plugin-list-scrollable::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.shypdr-plugin-list-scrollable::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Scrollbar styling for debug content */
.shypdr-debug-content::-webkit-scrollbar {
    width: 6px;
}

.shypdr-debug-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.shypdr-debug-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.shypdr-debug-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Mobile responsive */
@media (max-width: 480px) {
    #shypdr-debug-widget {
        bottom: 10px;
        right: 10px;
    }

    .shypdr-debug-content {
        max-width: calc(100vw - 40px);
        max-height: 400px;
    }
}
