/* Site Footer Block Specific Styles */

.site-footer-block .font-serif {
    font-family: var(--font-serif), 'Cormorant Garamond', serif;
}

.site-footer-block .font-sans {
    font-family: var(--font-sans), 'Outfit', sans-serif;
}

/* Smooth hover transitions */
.site-footer-block a {
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* Social icons — prevent layout shift on hover */
.site-footer-block .social-icons a {
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

/* Footer nav links underline effect — only column navs, not bottom bar */
.site-footer-block nav.space-y-3 a {
    position: relative;
}

.site-footer-block nav.space-y-3 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #a06c7a;
    transition: width 0.3s ease;
}

.site-footer-block nav.space-y-3 a:hover::after {
    width: 100%;
}

/* Editor view improvements */
.block-editor-block-list__block[data-type="anyakedveert/site-footer"] .acf-fields {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.block-editor-block-list__block[data-type="anyakedveert/site-footer"] .acf-field {
    margin-bottom: 20px;
    clear: both;
}

.block-editor-block-list__block[data-type="anyakedveert/site-footer"] .acf-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.block-editor-block-list__block[data-type="anyakedveert/site-footer"] .acf-input {
    width: 100%;
    min-width: 100%;
}

.block-editor-block-list__block[data-type="anyakedveert/site-footer"] input[type="text"],
.block-editor-block-list__block[data-type="anyakedveert/site-footer"] input[type="url"],
.block-editor-block-list__block[data-type="anyakedveert/site-footer"] textarea {
    width: 100% !important;
    min-width: 200px;
    padding: 8px 12px;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .site-footer-block .grid > div {
        text-align: center;
    }

    .site-footer-block .grid > div:first-child {
        margin-bottom: 2rem;
    }

    .site-footer-block .flex.items-center.gap-3 {
        justify-content: center;
    }

    .site-footer-block nav.space-y-3 {
        position: relative;
        z-index: 3;
    }

    .site-footer-block nav.space-y-3 a {
        align-items: center;
        display: flex !important;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        min-height: 44px;
        pointer-events: auto;
        position: relative;
        touch-action: manipulation;
        width: 100%;
        z-index: 4;
    }

    .site-footer-block nav.space-y-3 a::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
