
/* SpaceHowen Blog - Estilos Unificados */

/* Custom Fonts */
@font-face {
    font-family: 'FantasqueSans';
    src: url('/assets/fonts/FantasqueSansMNerdFont-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FantasqueSans';
    src: url('/assets/fonts/FantasqueSansMNerdFontMono-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'FantasqueSans', 'JetBrains Mono', 'Fira Code', monospace;
}

body {
    background-color: #0e0e0e;
    color: var(--text-primary);
    color: #f1f1f1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'FantasqueSans', 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: bold;
    text-transform: uppercase;
}

strong, b, .fw-bold {
    font-family: 'FantasqueSans', 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: bold;
}

p, span, div, .text-normal {
    font-family: 'FantasqueSans', 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: normal;
}

/* Anuncios */
.ad-multiplex, .ad-display {
    margin: 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

/* Utility Classes - Inline Styles Replacements */
.logo-navbar {
    height: 30px;
    margin-right: 10px;
}

.avatar-small {
    width: 24px;
    height: 24px;
}

.avatar-medium {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.avatar-large {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.avatar-xl {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder-small {
    width: 25px;
    height: 25px;
}

.avatar-placeholder-medium {
    width: 50px;
    height: 50px;
}

.avatar-placeholder-large {
    width: 120px;
    height: 120px;
}

.avatar-placeholder-xl {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.preview-image {
    max-width: 200px;
    height: auto;
}

.preview-video {
    max-width: 300px;
    height: auto;
}

.settings-logo {
    max-height: 50px;
}

.settings-favicon {
    width: 16px;
    height: 16px;
}

.quill-editor {
    height: 400px;
    background: white;
    color: black;
}

.delete-icon {
    font-size: 2rem;
}

.avatar-text-small {
    font-size: 10px;
}

.admin-icon {
    font-size: 40px;
}

.footer-custom {
    background-color: #101010;
    border-top: 1px solid var(--border);
    color:#f1f1f1;
}

/* ========== GLOBAL STYLES ========== */
/* Navbar unificado */
.navbar {
    background-color: #101010 !important;
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent) !important;
}

/* Cards unificados */
.card {
    background-color: #101010;
    border: none;
    border-radius: 8px;
    transition: transform 0.2s ease;
    color: #fff;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: none;
    color: var(--text-primary);
    font-weight: 600;
}

/* Forms unificados */
.form-control, 
.form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #777;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.form-control:hover,
.form-select:hover {
    border-color: #999;
    background-color: rgba(255, 255, 255, 0.08);
}

.form-control:focus, 
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.form-check-input {
    background-color: var(--bg-primary);
    border-color: var(--border);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Tables unificadas */
.table-dark {
    --bs-table-bg: var(--bg-secondary);
    --bs-table-border-color: var(--border);
    --bs-table-striped-bg: var(--bg-card);
    --bs-table-hover-bg: var(--bg-card);
}

.table-dark th,
.table-dark td {
    border-color: var(--border);
}

/* Alerts unificadas */
.alert-success {
    background-color: #0f5132;
    border-color: #0f5132;
    color: #75b798;
}

.alert-danger {
    background-color: #842029;
    border-color: #842029;
    color: #ea868f;
}

.alert-info {
    background-color: #055160;
    border-color: #055160;
    color: #6edff6;
}

.alert-warning {
    background-color: #664d03;
    border-color: #664d03;
    color: #ffda6a;
}

/* Admin Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stats-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Comments unificados */
.comment-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comment-content {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 1rem;
    margin: 0.5rem 0;
}

/* Estilos globales aplicados a todo el sitio */
body {
    padding-top: 0px;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons unificados */
.btn-primary {
    background-color: #4f46e5d9;
    --bs-btn-border-color: none;
}

.btn-primary:hover {
    background-color: #4f46e5d9;
    --bs-btn-border-color: none;
}

/* Text unificado */
.text-muted {
    color: var(--text-secondary) !important;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #4493e6;
    text-decoration: underline;
}

/* Code blocks unificados */
pre {
    background-color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    position: relative;
}

code {
    background-color: #1a1a1a;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: #e6e6e6;
}

pre code {
    background: none;
    padding: 0;
    color: #e6e6e6;
}

/* Override Highlight.js styles */
.hljs {
    background: #1a1a1a !important;
    color: #e6e6e6 !important;
}

/* Copy button for code blocks */
.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #333;
    border: none;
    color: #e6e6e6;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.copy-code-btn:hover {
    opacity: 1;
    background: #444;
}

.copy-code-btn.copied {
    background: #28a745;
    color: white;
}

/* Frontend Breadcrumbs */
.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-secondary);
    content: ">";
}

/* Frontend Comments */
.comment {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--accent);
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comment-content {
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Comment Form */
.comment-form-section .card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.comment-form-section .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.comment-form-section .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25);
}

.comment-form-section .form-control::placeholder {
    color: var(--text-secondary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* ========== UTILITY CLASSES ========== */
.container {
    max-width: 1200px;
}

.hero-section {
    min-height: 100vh;
    /*background-color: #010101;*/
}

.post-media {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tag {
    background-color: var(--accent);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Etiqueta específica para categoría Termux */
.tag.termux {
    background-color: #007bff;
    color: white;
}

/* Category cards en index */
.category-card {
    overflow: hidden;
}

.category-card .card-title {
    color: var(--text-primary);

}

.category-card img {
    margin: 0;
    padding: 0;
    border: none;
}

/* 3 cards por fila en categorías */
.categories-sidebar .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/* Botón flotante de autenticación */
.floating-auth-btn {
    position: fixed;
    bottom: 120px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.floating-auth-btn .btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.floating-auth-btn .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-auth-btn .btn-custom {
    background-color: #4f46e5d9;
    border-color: #4f46e5d9;
    color: white;
    text-decoration: none !important;
}

.floating-auth-btn .btn-custom:hover {
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .floating-auth-btn {
        bottom: 120px;
        right: 15px;
    }
    
    .floating-auth-btn .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}


