/**
 * Author Blog Pro - Footer Stylesheet
 * File: assets/css/footer.css
 *
 * Implements "You May Have Missed" Continuous Running Marquee & Minimalist Bottom Bar.
 * Background matches site body background (Gaya menyatu, tidak kontras).
 * Cards & elements feature "Kotak Lancip ala Gubuk Penceng (-4deg) namun ga penceng amat".
 *
 * @package author-blog-pro
 * @author Rifan Muazin (https://gig.web.id)
 */

/* ==========================================================================
   1. Site Footer Container (.abp-site-footer) - Seamless Blending
   ========================================================================= */

.abp-site-footer {
    background-color: var(--en-card-bg, #ffffff) !important;
    color: var(--en-text-muted, #64748b) !important;
    border-top: 1px solid var(--en-card-border, #e2e8f0) !important;
    font-family: var(--abp-font-body, inherit);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* ==========================================================================
   2. "You May Have Missed" Marquee Section (Running / Jalan)
   ========================================================================= */

.abp-footer-marquee-wrap {
    padding-top: 2.25rem;
    padding-bottom: 2rem;
    background: transparent !important;
    border-bottom: 1px solid var(--en-card-border, #e2e8f0);
    position: relative;
}

/* Header above Marquee */
.abp-footer-marquee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 12px;
}

.abp-marquee-label-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.abp-marquee-pulse {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: abpMarqueePulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes abpMarqueePulse {
    to {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.abp-marquee-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--en-primary, #e63946);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    transform: skewX(-12deg);
    border-radius: 0 !important; /* Kotak Lancip Menceng */
}

.abp-marquee-badge-tag > * {
    transform: skewX(12deg);
    display: inline-block;
}

.abp-marquee-subtext {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--en-text-muted, #64748b);
}

.abp-marquee-pause-hint {
    background: var(--en-card-bg, #ffffff);
    border: 1px solid var(--en-card-border, #e2e8f0);
    padding: 4px 12px;
    border-radius: 0 !important;
    transform: skewX(-12deg);
    font-size: 0.72rem;
    color: var(--en-text-muted, #64748b);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.abp-marquee-pause-hint > * {
    transform: skewX(12deg);
    display: inline-block;
}

/* Marquee Track Container (Continuous Flowing Track) */
.abp-marquee-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    user-select: none;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.abp-marquee-track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: max-content;
    animation: abpMarqueeInfinite 42s linear infinite;
    will-change: transform;
}

.abp-marquee-track-container:hover .abp-marquee-track {
    animation-play-state: paused;
}

@keyframes abpMarqueeInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Marquee Card - Gaya Gubuk Penceng (-4deg) namun ga penceng amat */
.abp-marquee-card {
    flex: 0 0 320px;
    max-width: 320px;
    background: var(--en-card-bg, #ffffff) !important;
    border: 1px solid var(--en-card-border, #e2e8f0) !important;
    border-radius: 0 !important; /* Kotak Lancip */
    transform: skewX(-4deg) !important; /* Gubuk Penceng halus */
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.abp-marquee-card:hover {
    background: var(--en-card-bg, #ffffff) !important;
    border-color: var(--en-primary, #e63946) !important;
    transform: skewX(-4deg) translateY(-3px) !important;
    box-shadow: 0 8px 22px rgba(230, 57, 70, 0.14) !important;
}

.abp-marquee-card > * {
    transform: skewX(4deg); /* Counter-skew inner contents */
}

.abp-marquee-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-sizing: border-box;
}

/* Media Thumbnail Lancip Gubuk Penceng */
.abp-marquee-card-media {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 0 !important;
    transform: skewX(-4deg) !important;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.abp-marquee-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transform: skewX(4deg) scale(1.08) !important;
    transition: transform 0.35s ease !important;
}

.abp-marquee-card:hover .abp-marquee-card-img {
    transform: skewX(4deg) scale(1.08) !important; /* NO ZOOM ON HOVER */
}

.abp-marquee-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(29,53,87,0.1));
    color: #94a3b8;
    font-size: 1.5rem;
    transform: skewX(4deg);
}

.abp-marquee-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.abp-marquee-card-cat {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--en-primary, #e63946);
    letter-spacing: 0.04em;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.abp-marquee-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--en-text-main, #1e293b);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.abp-marquee-card:hover .abp-marquee-card-title {
    color: var(--en-primary, #e63946);
}

.abp-marquee-card-date {
    font-size: 0.7rem;
    color: var(--en-text-muted, #64748b);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.abp-marquee-card-date i {
    font-size: 0.72rem;
    color: var(--en-primary, #e63946);
}

/* ==========================================================================
   3. Minimal Bottom Copyright Bar (.abp-footer-bottom)
   ========================================================================= */

.abp-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-size: var(--abp-fs-xs, 0.78rem);
    color: var(--en-text-muted, #64748b);
    padding: 1.5rem 0;
    gap: 1rem;
}

@media (min-width: 768px) {
    .abp-footer-bottom {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.abp-footer-copyright {
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--en-text-muted, #64748b);
}

.abp-footer-copyright a {
    color: var(--en-text-main, #1e293b);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.abp-footer-copyright a:hover {
    color: var(--en-primary, #e63946);
}

@media (min-width: 768px) {
    .abp-footer-copyright {
        text-align: left;
    }
}

.abp-footer-bottom-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.abp-footer-bottom-menu li {
    margin: 0;
    padding: 0;
}

.abp-footer-bottom-link,
.abp-footer-bottom-menu a {
    color: var(--en-text-muted, #64748b);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.abp-footer-bottom-link:hover,
.abp-footer-bottom-menu a:hover {
    color: var(--en-primary, #e63946);
}

.abp-back-top-link i {
    font-size: 0.9rem;
}

/* ==========================================================================
   4. Dark Mode Palette Alignment (Seamless Dark Harmony)
   ========================================================================= */

body.aft-dark-mode .abp-site-footer {
    background-color: #0b1120 !important;
    color: #94a3b8 !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.aft-dark-mode .abp-footer-marquee-wrap {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.aft-dark-mode .abp-marquee-pause-hint {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

body.aft-dark-mode .abp-marquee-card {
    background: #111827 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none;
}

body.aft-dark-mode .abp-marquee-card:hover {
    background: #1e293b !important;
    border-color: var(--en-primary, #e63946) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35) !important;
}

body.aft-dark-mode .abp-marquee-card-media {
    background: #1e293b;
}

body.aft-dark-mode .abp-marquee-card-title {
    color: #f1f5f9;
}

body.aft-dark-mode .abp-footer-copyright {
    color: #94a3b8;
}

body.aft-dark-mode .abp-footer-copyright a {
    color: #f1f5f9;
}

body.aft-dark-mode .abp-footer-bottom-link,
body.aft-dark-mode .abp-footer-bottom-menu a {
    color: #94a3b8;
}

body.aft-dark-mode .abp-footer-bottom-link:hover,
body.aft-dark-mode .abp-footer-bottom-menu a:hover {
    color: #ffffff;
}
