/**
 * Kronos Teológico — Unibautista Branding
 * Custom CSS for Material Theme (Tailwind)
 * Palette: https://www.unibautista.edu.co/
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Pontano+Sans:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --ub-primary: #1E73BE;
    --ub-dark: #0056A7;
    --ub-deep: #085190;
    --ub-bright: #1674D1;
    --ub-light: #e8f1fa;
    --ub-lighter: #f0f6fc;
    --ub-text: #111111;
    --ub-text2: #555555;
    --ub-muted: #999999;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
body {
    font-family: 'Pontano Sans', 'Poppins', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Pontano Sans', sans-serif !important;
}

.prose, .prose p, .prose li, .prose td, .prose th {
    font-family: 'Pontano Sans', 'Poppins', sans-serif !important;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: 'Montserrat', sans-serif !important;
}

/* Override theme font classes */
.font-comic-neue, .font-comic-sans, .font-cardo,
.font-cormorant, .font-old-standard-tt, .font-roboto-serif {
    font-family: 'Pontano Sans', 'Poppins', sans-serif !important;
}

.font-display {
    font-family: 'Montserrat', sans-serif !important;
}

/* ============================================
   HERO BANNER — Personalizable
   ============================================
   Para cambiar el color del hero, modifica --ub-hero-bg
   Para usar imagen, sube una Homepage Image en OJS > Settings > Website > Appearance
   ============================================ */
.ub-hero {
    background-color: var(--ub-hero-bg, var(--ub-primary));
    /* Puedes descomentar la siguiente linea y usar una imagen directamente:
    background-image: url('/public/journals/1/tu-imagen.jpg');
    */
    background-size: cover;
    background-position: center;
}

/* Hero title */
.ub-hero .font-display.text-5xl {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
}

/* Hero subtitle */
.ub-hero .text-2xl.tracking-tight {
    font-family: 'Pontano Sans', sans-serif !important;
}

/* Hero buttons */
.ub-hero .bg-blue-300 {
    background-color: #fff !important;
    color: var(--ub-dark) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
}

.ub-hero .bg-blue-300:hover {
    background-color: var(--ub-light) !important;
}

.ub-hero .bg-slate-800 {
    background-color: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
}

.ub-hero .bg-slate-800:hover {
    background-color: rgba(255,255,255,0.25) !important;
}

/* ============================================
   PRIMARY BUTTONS (Enviar artículo)
   ============================================ */
.bg-blue-300 {
    background-color: var(--ub-bright) !important;
    color: #fff !important;
}

.hover\:bg-blue-200:hover {
    background-color: var(--ub-primary) !important;
    color: #fff !important;
}

.active\:bg-blue-500:active {
    background-color: var(--ub-dark) !important;
}

/* ============================================
   TEXT COLORS (links, accents)
   ============================================ */
.text-blue-400 {
    color: var(--ub-primary) !important;
}

.text-blue-500 {
    color: var(--ub-dark) !important;
}

.text-blue-600 {
    color: var(--ub-deep) !important;
}

/* Prose links */
.prose-a\:text-blue-400 :is(:where(a):not(:where([class~="not-prose"],[class~="not-prose"] *))) {
    color: var(--ub-primary) !important;
}

.prose-a\:text-blue-400 :is(:where(a):not(:where([class~="not-prose"],[class~="not-prose"] *))):hover {
    color: var(--ub-dark) !important;
}

/* Before decorators */
.before\:bg-blue-500::before {
    background-color: var(--ub-primary) !important;
}

/* ============================================
   FOCUS / RING STATES
   ============================================ */
.focus\:border-blue-300:focus {
    border-color: var(--ub-primary) !important;
}

.focus\:ring-blue-200:focus {
    --tw-ring-color: rgba(30, 115, 190, 0.3) !important;
}

/* ============================================
   SIDEBAR HEADINGS
   ============================================ */
nav.w-56 .font-display,
.space-y-9 .font-display {
    font-family: 'Montserrat', sans-serif !important;
    color: var(--ub-dark) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
}

/* Sidebar active link indicator */
nav.w-56 .before\:bg-blue-500::before,
.space-y-9 .before\:bg-blue-500::before {
    background-color: var(--ub-primary) !important;
}

/* ============================================
   FOOTER — Unibautista Redesign
   ============================================ */
.ub-footer {
    background-color: var(--ub-primary);
    color: #fff;
    font-family: 'Pontano Sans', sans-serif;
}

.ub-footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.ub-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .ub-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.ub-footer-col {
    color: #fff;
}

.ub-footer-heading {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff !important;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.25);
}

.ub-footer-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85) !important;
    margin: 0 0 1.2rem 0;
}

.ub-footer-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ub-footer-list li {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ub-footer-list li svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.ub-footer-list li a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ub-footer-list li a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Social icons */
.ub-footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.ub-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ub-footer-social a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Bottom bar */
.ub-footer-bottom {
    background: var(--ub-dark);
    text-align: center;
    padding: 1rem 2rem;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.ub-footer-bottom p {
    margin: 0.15rem 0;
    color: rgba(255,255,255,0.7) !important;
}

.ub-footer-bottom a {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none;
}

.ub-footer-bottom a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.ub-footer-credits {
    font-size: 12px;
    opacity: 0.6;
}

/* ============================================
   HEADER BAR
   ============================================ */
header.sticky {
    border-bottom: 2px solid var(--ub-primary);
}

/* Search icon ring */
header .ring-1.ring-black\/5 {
    border-color: var(--ub-primary) !important;
}

/* Navigation links in header */
header .pkp_navigation_primary a,
header .pkp_navigation_user a {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
}

/* ============================================
   GALLEY / DOWNLOAD LINKS
   ============================================ */
a.obj_galley_link {
    background-color: var(--ub-primary) !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    padding: 6px 16px !important;
}

a.obj_galley_link:hover {
    background-color: var(--ub-dark) !important;
}

/* ============================================
   FORMS
   ============================================ */
input:focus, select:focus, textarea:focus {
    border-color: var(--ub-primary) !important;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15) !important;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f4f4f4; }
::-webkit-scrollbar-thumb { background: var(--ub-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ub-dark); }
