/* Custom styles for SimplerLLM website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Code blocks styling */
pre[class*="language-"] {
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

code[class*="language-"],
pre[class*="language-"] {
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Inline code */
:not(pre) > code {
    background: #161b22;
    color: #58a6ff;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Copy button for code blocks */
.code-toolbar {
    position: relative;
}

.code-toolbar .toolbar {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.code-toolbar:hover .toolbar {
    opacity: 1;
}

.code-toolbar .toolbar button {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.code-toolbar .toolbar button:hover {
    background: #30363d;
    color: #58a6ff;
}

/* Feature cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(88, 166, 255, 0.1);
}

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(135deg, #58a6ff 0%, #8957e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Links */
a {
    text-decoration: none;
}

/* Headings in docs */
.docs-content h1,
.docs-content h2,
.docs-content h3 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.docs-content h1 {
    font-size: 2.25rem;
    border-bottom: 1px solid #30363d;
    padding-bottom: 0.5rem;
}

.docs-content h2 {
    font-size: 1.875rem;
    border-bottom: 1px solid #30363d;
    padding-bottom: 0.5rem;
}

.docs-content h3 {
    font-size: 1.5rem;
}

/* Docs sidebar */
.docs-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

.docs-sidebar a {
    display: block;
    padding: 0.5rem 1rem;
    color: #8b949e;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.docs-sidebar a:hover {
    color: #c9d1d9;
    background: #161b22;
    border-left-color: #58a6ff;
}

.docs-sidebar a.active {
    color: #58a6ff;
    background: #161b22;
    border-left-color: #58a6ff;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Hero section gradient background */
.hero-gradient {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive typography */
@media (max-width: 768px) {
    .docs-content h1 {
        font-size: 1.875rem;
    }

    .docs-content h2 {
        font-size: 1.5rem;
    }

    .docs-content h3 {
        font-size: 1.25rem;
    }
}

/* Code block with line numbers */
.line-numbers .line-numbers-rows {
    border-right: 1px solid #30363d;
}

/* Selection color */
::selection {
    background: #58a6ff;
    color: #ffffff;
}

::-moz-selection {
    background: #58a6ff;
    color: #ffffff;
}

/* Multi-Chat Specific Styles */
.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth height transitions for response cards */
.response-content {
    transition: min-height 0.3s ease;
}

/* Custom checkbox styling */
input[type="checkbox"]:checked {
    background-color: #58a6ff;
    border-color: #58a6ff;
}

/* Animations for loading states */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Hover effects for model selection labels */
label:has(input[type="checkbox"]:checked) {
    background-color: #21262d !important;
    border: 1px solid #30363d;
}

/* Smooth transitions for all interactive elements */
button, a, label, .model-response-card {
    transition: all 0.2s ease;
}
