/* Site Footer - Tiệm Nhỏ Suy Tư / TìnhTình */

.site-footer {
    width: 100%;
    background-color: #11141a;
    color: #e2e8f0;
    padding: 65px 0 35px 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    border-top: 2px solid rgba(213, 168, 100, 0.3);
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    clear: both;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(213, 168, 100, 0.7) 50%, transparent 100%);
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 0.9fr 0.9fr 1fr minmax(220px, 1.4fr);
    gap: 28px;
    margin-bottom: 40px;
}

@media (max-width: 992px) and (min-width: 769px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 30px;
    }
}

/* Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-title {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-brand-name {
    font-family: var(--font-alluring, 'Times New Roman', serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-1, #d5a864);
    letter-spacing: 0.5px;
}

.footer-bio {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0;
}

.footer-tagline {
    font-size: 13px;
    font-style: italic;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-tagline .star-icon {
    color: var(--color-1, #d5a864);
}

/* Social Buttons */
.footer-social-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-social-btn:hover {
    background: var(--color-1, #d5a864);
    color: #0f1217;
    border-color: var(--color-1, #d5a864);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(213, 168, 100, 0.3);
}

.footer-social-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.footer-social-btn:hover img {
    filter: brightness(0);
}

/* Nav Columns */
.footer-nav-col {
    font-size: 14px;
    line-height: 1.5;
}

.footer-nav-col h4 {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-1, #d5a864);
    margin-bottom: 18px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
}

.footer-nav-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--color-1, #d5a864);
    border-radius: 2px;
}

.footer-nav-arrow {
    display: none;
}

.footer-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.footer-nav-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-nav-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-nav-list a::before {
    content: '•';
    color: var(--color-1, #d5a864);
    opacity: 0.5;
    transition: opacity 0.25s ease;
}

.footer-nav-list a:hover::before {
    opacity: 1;
}

/* Special 259 & Action Col */
.footer-action-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    min-width: 0;
}

.destiny-number-card,
.welcome-letter-footer-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(213, 168, 100, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px dashed rgba(213, 168, 100, 0.4);
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.destiny-number-card:hover,
.welcome-letter-footer-card:hover {
    background: linear-gradient(135deg, rgba(213, 168, 100, 0.22), rgba(255, 255, 255, 0.08));
    border-color: var(--color-1, #d5a864);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.destiny-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
    background: var(--color-1, #d5a864);
    padding: 10px 12px;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
}

.destiny-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.destiny-badge-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(213, 168, 100, 0.25));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.destiny-number-card:hover .destiny-badge-img,
.welcome-letter-footer-card:hover .destiny-badge-img {
    transform: scale(1.12) rotate(-4deg);
}

.destiny-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.destiny-desc {
    font-size: 12.5px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.back-to-top-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(213, 168, 100, 0.3);
    color: var(--color-1, #d5a864);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: fixed;
    bottom: 24px;
    right: 24px;
}

.back-to-top-btn:hover {
    background: var(--color-1, #d5a864);
    color: #0f1217;
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(213, 168, 100, 0.4);
}

.back-to-top-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-1, #d5a864);
}

/* Modal for 259 Destiny Number */
.modal-259-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 18, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-259-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-259-card {
    background: #181d26;
    border: 1px solid var(--color-1, #d5a864);
    border-radius: 20px;
    padding: 35px 30px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-259-overlay.active .modal-259-card {
    transform: translateY(0);
}

.modal-259-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-259-close:hover {
    color: #ffffff;
}

.modal-259-num {
    font-size: 54px;
    font-weight: 800;
    color: var(--color-1, #d5a864);
    margin-bottom: 10px;
    font-family: var(--font-alluring, serif);
    letter-spacing: 2px;
}

.modal-259-subtitle {
    font-size: 16px;
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-259-text {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-259-btn {
    background: var(--color-1, #d5a864);
    color: #0f1217;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-259-btn:hover {
    background: #e5b974;
    transform: scale(1.03);
}

/* Mobile Accordion Styles for Footer Nav Columns */
@media (max-width: 992px) {
    .footer-action-col {
        max-width: max-content;

    }
}

@media (max-width: 768px) {
    .footer-nav-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 4px;
    }

    .footer-nav-col h4 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
        padding: 12px 0;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        font-size: 14px;
        letter-spacing: 0.6px;
        transition: color 0.2s ease;
    }

    .footer-nav-col h4:hover {
        color: #f1f5f9;
    }

    .footer-nav-col h4::after {
        display: none !important;
    }

    .footer-nav-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        color: var(--color-1, #d5a864);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(213, 168, 100, 0.2);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, border-color 0.25s ease;
        flex-shrink: 0;
    }

    .footer-nav-arrow::after {
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        border-right: 2px solid var(--color-1, #d5a864);
        border-bottom: 2px solid var(--color-1, #d5a864);
        transform: rotate(45deg);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.35s ease;
        margin-top: -2px;
    }

    .footer-nav-col.is-open .footer-nav-arrow {
        background: rgba(213, 168, 100, 0.16);
        border-color: var(--color-1, #d5a864);
    }

    .footer-nav-col.is-open .footer-nav-arrow::after {
        transform: rotate(-135deg);
        margin-top: 2px;
    }

    .footer-nav-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-4px);
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        gap: 12px !important;
        pointer-events: none;
    }

    .footer-nav-col.is-open .footer-nav-list {
        max-height: 320px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 10px !important;
        margin-bottom: 14px !important;
        pointer-events: auto;
    }

    .footer-action-col {
        margin-top: 10px;
        width: 100%;
    }
}