/* SolMed Blog — Custom Styles */

:root {
    --solmed-primary: #0d6efd;
    --solmed-dark: #1a1a2e;
    --solmed-light: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.7;
}

/* Navbar */
.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

/* Articles */
article h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

article img {
    max-width: 100%;
    height: auto;
}

article .card-title a:hover {
    color: var(--solmed-primary) !important;
}

/* Content blocks from Piranha */
article .block-group {
    margin-bottom: 1.5rem;
}

article .block-group p {
    margin-bottom: 1rem;
}

article .block-group h2,
article .block-group h3,
article .block-group h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

article .block-group blockquote {
    border-left: 4px solid var(--solmed-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

article .block-group ul,
article .block-group ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

article .block-group code {
    background: #f1f3f5;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Sidebar cards */
aside .card {
    border-radius: 8px;
    overflow: hidden;
}

aside .card-header {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

aside .list-group-item {
    border-left: none;
    border-right: none;
}

/* Hero section */
section.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%) !important;
}

/* Comment section */
#comentarios .card {
    border-radius: 8px;
}

#comentarios .card-body p {
    white-space: pre-line;
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Share buttons */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-secondary:hover {
    color: white;
}

/* Search highlight */
.search-highlight {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

/* Footer */
footer a:hover {
    color: var(--solmed-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    article h1 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    section.bg-primary h1 {
        font-size: 1.8rem;
    }
}

/* Print styles */
@media print {
    .navbar, footer, aside, .btn, form, #comentarios {
        display: none !important;
    }

    article {
        max-width: 100% !important;
    }
}
