/* Blog SpaceHowen - Custom Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0e0e0e;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0e0e0e; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

::selection { background: rgba(139, 92, 246, 0.3); color: #ffffff; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.bg-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

pre { position: relative; }

pre code.hljs {
    display: block;
    overflow-x: auto;
    padding: 1.25rem !important;
    font-size: 0.875rem;
    line-height: 1.6;
    border-radius: 0.75rem 0.75rem 0 0;
    background: #0e0e0e;
}

pre code.hljs::-webkit-scrollbar { height: 6px; }
pre code.hljs::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #a1a1aa;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.2s;
    opacity: 0;
    z-index: 2;
}
pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}
.btn-pill-primary {
    background: rgba(139, 92, 246, 0.25);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.btn-pill-primary:hover {
    background: rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.5);
}
.btn-pill-success {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border: 1px solid rgba(22, 163, 74, 0.25);
}
.btn-pill-success:hover {
    background: rgba(22, 163, 74, 0.3);
    color: #6ee7a0;
    border-color: rgba(22, 163, 74, 0.4);
}
.btn-pill-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-pill-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}
.btn-pill-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #9aa0a6;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-pill-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f1f1f1;
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-pill-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-pill-md { padding: 0.5rem 1.125rem; font-size: 0.875rem; }
.btn-pill-lg { padding: 0.625rem 1.5rem; font-size: 1rem; }

.clase-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #f1f1f1;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.clase-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e4e4e7;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.clase-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}
.clase-content strong {
    color: #f1f1f1;
    font-weight: 600;
}
.clase-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.clase-content ul li { margin-bottom: 0.375rem; }
.clase-content code:not(.hljs) {
    background: rgba(255,255,255,0.06);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    color: #f1f1f1;
}
