/**
 * DPS.MEDIA Unified Production Footer Stylesheet
 *
 * Architecture: 3-Column Minimalist Layout, WCAG AA High Contrast, 100% Native Inline SVG.
 * Zero external font dependency, zero layout shift (CLS = 0).
 *
 * @package Haptic
 * @version 6.1.5
 */

:root {
    --dps-ft-bg-canvas: #060813;
    --dps-ft-bg-card: rgba(255, 255, 255, 0.045);
    --dps-ft-bg-card-hover: rgba(255, 255, 255, 0.08);
    --dps-ft-border: rgba(255, 255, 255, 0.09);
    --dps-ft-border-hover: rgba(0, 229, 255, 0.45);
    
    --dps-ft-cyan: #00d4ff;
    --dps-ft-green: #2bb656;
    --dps-ft-green-glow: #00f2a9;
    --dps-ft-blue: #1062b8;

    --dps-ft-text-head: #ffffff;
    --dps-ft-text-body: #e2e8f0;
    --dps-ft-text-sub: #cbd5e1;
    --dps-ft-text-muted: #94a3b8;

    --dps-ft-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --dps-ft-font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
}

/* ---------------------------------------------------------
   1. PRE-FOOTER CTA SECTION
   --------------------------------------------------------- */
.dps-prefooter-cta {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 98, 184, 0.28) 0%, rgba(43, 182, 86, 0.22) 100%),
                radial-gradient(circle at 50% 0%, #101a3d 0%, #060814 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 46px 24px;
    overflow: hidden;
    font-family: var(--dps-ft-font-main);
}
.dps-prefooter-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, #2bb656, transparent);
}
.dps-cta-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.dps-cta-content h3 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}
.dps-cta-content h3 span {
    background: linear-gradient(90deg, #00d4ff 0%, #00f2a9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dps-cta-content p {
    color: var(--dps-ft-text-sub);
    font-size: 15px;
    max-width: 680px;
    line-height: 1.6;
    margin: 0;
}
.dps-cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.dps-btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #1062b8 0%, #0088cc 100%);
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(16, 98, 184, 0.45);
    transition: all 0.25s ease;
}
.dps-btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 212, 255, 0.45);
    background: linear-gradient(135deg, #0d73e0 0%, #009df5 100%);
    color: #ffffff !important;
}
.dps-btn-cta-hotline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 700;
    padding: 13px 22px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.dps-btn-cta-hotline:hover {
    background: rgba(43, 182, 86, 0.18);
    border-color: var(--dps-ft-green);
    color: #00f2a9 !important;
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   2. MAIN FOOTER WRAPPER & DRUM WATERMARK
   --------------------------------------------------------- */
.dps-footer-wrapper {
    position: relative;
    background: var(--dps-ft-bg-canvas);
    background: radial-gradient(circle at 92% 15%, rgba(16, 98, 184, 0.16) 0%, transparent 45%),
                radial-gradient(circle at 8% 85%, rgba(43, 182, 86, 0.12) 0%, transparent 45%),
                linear-gradient(180deg, #0a0d1d 0%, #04060c 100%);
    overflow: hidden;
    color: var(--dps-ft-text-body);
    font-family: var(--dps-ft-font-main);
    font-size: 14.5px;
    line-height: 1.6;
}

.dps-footer-drum-watermark {
    position: absolute;
    top: 45%;
    right: -100px;
    transform: translateY(-50%);
    width: 720px;
    height: 720px;
    opacity: 0.045;
    pointer-events: none;
    z-index: 0;
    animation: dpsDrumSpinReverse 180s linear infinite;
}
.dps-footer-drum-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(2.2);
}
@keyframes dpsDrumSpinReverse {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(-360deg); }
}

.dps-footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 24px 34px;
    position: relative;
    z-index: 2;
}

/* Bố Cục 3 Cột Rộng Rãi */
.dps-footer-grid-3col {
    display: grid;
    grid-template-columns: 1.4fr 1.05fr 1.05fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* ---------------------------------------------------------
   3. CỘT 1: HỒ SƠ PHÁP LÝ & 6 THẺ DUAL MOBILE UX
   --------------------------------------------------------- */
.dps-col-brand .dps-brand-logo {
    display: inline-block;
    margin-bottom: 16px;
}
.dps-col-brand .dps-brand-logo img {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
}
.dps-brand-summary {
    color: var(--dps-ft-text-sub);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
}
.dps-brand-summary strong {
    color: #ffffff;
    font-weight: 700;
}

.dps-info-stack {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dps-info-row-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.dps-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--dps-ft-bg-card);
    border: 1px solid var(--dps-ft-border);
    border-radius: 10px;
    padding: 8px 10px 8px 12px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.dps-info-card:hover {
    background: var(--dps-ft-bg-card-hover);
    border-color: var(--dps-ft-border-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.dps-info-card.mini {
    padding: 8px 8px 8px 10px;
}
.dps-info-card.mini .dps-info-text {
    font-size: 12.5px;
}

.dps-info-main-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.dps-info-main-link:hover .dps-info-text {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dps-info-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    flex-shrink: 0;
}
.dps-info-icon-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.dps-info-text {
    color: var(--dps-ft-text-body);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}
.dps-info-text.code {
    font-family: var(--dps-ft-font-mono);
    font-weight: 600;
    letter-spacing: 0.2px;
    font-size: 13px;
}

.dps-copy-trigger-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--dps-ft-text-muted);
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
    padding: 0;
}
.dps-copy-trigger-btn svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}
.dps-copy-trigger-btn:hover {
    background: rgba(0, 212, 255, 0.22);
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.5);
    transform: scale(1.05);
}
.dps-info-card.copied .dps-copy-trigger-btn {
    background: var(--dps-ft-green);
    color: #ffffff;
    border-color: var(--dps-ft-green);
}

.dps-copy-toast {
    position: absolute;
    right: 46px;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    background: #2bb656;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(43, 182, 86, 0.45);
    white-space: nowrap;
    z-index: 10;
}
.dps-info-card.copied .dps-copy-toast {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* ---------------------------------------------------------
   4. CỘT 2: MINH BẠCH & PHÁP LÝ (E-E-A-T)
   --------------------------------------------------------- */
.dps-nav-col h4.dps-heading {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.4;
}
.dps-nav-col h4.dps-heading svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}
.dps-nav-col h4.dps-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2.5px;
    background: linear-gradient(90deg, #00d4ff 0%, #2bb656 100%);
    border-radius: 2px;
}

.dps-clean-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.dps-clean-links li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    margin: 0;
}
.dps-clean-links li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.dps-clean-links a {
    color: var(--dps-ft-text-sub) !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.dps-link-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.dps-link-name::before {
    content: '›';
    font-size: 16px;
    color: var(--dps-ft-text-muted);
    line-height: 1;
    transition: all 0.2s ease;
}
.dps-clean-links a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}
.dps-clean-links a:hover .dps-link-name::before {
    color: #00d4ff;
    transform: translateX(2px);
}

/* ---------------------------------------------------------
   5. CỘT 3: BÀI VIẾT MỚI NHẤT & MẠNG XÃ HỘI
   --------------------------------------------------------- */
.dps-recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.dps-recent-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--dps-ft-bg-card);
    border: 1px solid var(--dps-ft-border);
    border-radius: 10px;
    padding: 8px 12px;
    transition: all 0.22s ease;
}
.dps-recent-post-item:hover {
    background: var(--dps-ft-bg-card-hover);
    border-color: rgba(0, 212, 255, 0.45);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.dps-post-thumb-link {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.dps-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.dps-recent-post-item:hover .dps-post-thumb {
    transform: scale(1.08);
}
.dps-post-meta-wrap {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dps-post-title {
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.dps-post-title:hover {
    color: #00d4ff !important;
}
.dps-post-date {
    color: var(--dps-ft-text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.dps-post-date svg {
    width: 12px;
    height: 12px;
    fill: #00d4ff;
    flex-shrink: 0;
}

.dps-social-row {
    display: flex;
    gap: 10px;
}
.dps-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--dps-ft-bg-card);
    border: 1px solid var(--dps-ft-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dps-ft-text-sub) !important;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.dps-social-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    transition: fill 0.2s;
}
.dps-social-btn:hover {
    transform: translateY(-3px);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.dps-social-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.dps-social-btn.zalo:hover { background: #0068ff; border-color: #0068ff; }
.dps-social-btn.tele:hover { background: #229ed9; border-color: #229ed9; }
.dps-social-btn.linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.dps-social-btn.youtube:hover { background: #ff0000; border-color: #ff0000; }

/* ---------------------------------------------------------
   6. BOTTOM BAR: BẢN QUYỀN, GIẤY PHÉP & BACK TO TOP
   --------------------------------------------------------- */
.dps-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
    color: var(--dps-ft-text-sub);
}
.dps-copyright-legal strong {
    color: #ffffff;
    font-weight: 700;
}
.dps-license-text {
    font-size: 13px;
    margin-top: 4px;
    color: var(--dps-ft-text-sub);
}
.dps-license-text strong {
    color: #00d4ff;
}

.dps-footer-legal-links {
    display: flex;
    align-items: center;
    gap: 16px;
}
.dps-footer-legal-links a {
    color: var(--dps-ft-text-sub) !important;
    text-decoration: none !important;
    font-size: 13.5px;
    transition: color 0.2s;
}
.dps-footer-legal-links a:hover {
    color: #00d4ff !important;
}

.dps-back-to-top {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}
.dps-back-to-top svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}
.dps-back-to-top:hover {
    background: var(--dps-ft-blue);
    color: #ffffff;
    border-color: #00d4ff;
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   --------------------------------------------------------- */
@media (max-width: 1100px) {
    .dps-footer-grid-3col {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .dps-footer-col-right {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 28px;
        padding-top: 24px;
        border-top: 1px dashed rgba(255, 255, 255, 0.1);
    }
}
@media (max-width: 768px) {
    .dps-prefooter-cta {
        padding: 34px 20px;
    }
    .dps-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .dps-cta-actions {
        width: 100%;
        flex-direction: column;
    }
    .dps-btn-cta-primary, .dps-btn-cta-hotline {
        width: 100%;
        justify-content: center;
    }
    .dps-footer-grid-3col {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .dps-footer-col-right {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    .dps-info-row-duo {
        grid-template-columns: 1fr;
    }
    .dps-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .dps-footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}
