/* ============================================
   EL FIN DE LOS TIEMPOS - Custom CSS
   ============================================ */

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #d4a017; border-radius: 4px; }

/* ── Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Hero ── */
.hero-bg {
    background: radial-gradient(ellipse at center, rgba(212, 160, 23, 0.08) 0%, transparent 70%),
                linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
}

/* ── Glow effects ── */
.gold-glow {
    box-shadow: 0 0 30px rgba(212, 160, 23, 0.15);
}
.gold-glow-text {
    text-shadow: 0 0 40px rgba(212, 160, 23, 0.3);
}

/* ── Cards ── */
.study-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 160, 23, 0.2);
}

.prophetic-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.9));
    border: 1px solid rgba(212, 160, 23, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.prophetic-card:hover {
    border-color: rgba(212, 160, 23, 0.5);
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.1);
}

/* ── Verse decoration ── */
.verse-quote {
    position: relative;
}
.verse-quote::before {
    content: '\201C';
    font-family: 'Cinzel', serif;
    font-size: 6rem;
    color: rgba(212, 160, 23, 0.15);
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    line-height: 1;
    pointer-events: none;
}

/* ── Nav link underline ── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a017;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ── Line clamp ── */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Form focus ring ── */
input:focus, select:focus, textarea:focus {
    border-color: #d4a017 !important;
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.15);
}

/* ── Checkbox styling ── */
input[type="checkbox"] {
    accent-color: #d4a017;
}

/* ══════════════════════════════════════
   ARTICLE CONTENT (prose-like styles)
   ══════════════════════════════════════ */

.article-content {
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content h2 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

.article-content h3 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #facc15;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content strong {
    color: #ffffff;
    font-weight: 600;
}

.article-content em {
    color: #d4a017;
}

.article-content a {
    color: #d4a017;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover {
    color: #facc15;
}

.article-content blockquote {
    border-left: 4px solid #d4a017;
    background: rgba(20, 20, 20, 0.8);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #e5e7eb;
}

.article-content blockquote p {
    margin-bottom: 0.5rem;
}
.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.article-content li::marker {
    color: #d4a017;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 160, 23, 0.2);
}

.article-content table th {
    background: rgba(212, 160, 23, 0.1);
    color: #d4a017;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(50, 50, 50, 0.5);
    color: #d1d5db;
    font-size: 0.95rem;
}

.article-content table tr:last-child td {
    border-bottom: none;
}

.article-content table tr:hover td {
    background: rgba(20, 20, 20, 0.5);
}

.article-content img {
    border-radius: 12px;
    margin: 1.5rem 0;
    max-width: 100%;
}

.article-content hr {
    border: none;
    border-top: 1px solid rgba(212, 160, 23, 0.2);
    margin: 2rem 0;
}

/* First h2 doesn't need top margin */
.article-content h2:first-child {
    margin-top: 0;
}
