/**
 * Footer Styles
 * Clean, minimal footer design with ergonomic taxonomy layout
 * Left: Categories and Countries (vertical)
 * Right: Regions (top, horizontal) + Content area (bottom)
 */

/* Remove underlines from all footer links */
.wp-block-group[style*="background-color:#0c0c0c"] a,
.wp-block-group[style*="background:linear-gradient"] a,
.wp-block-group[style*="background-color:#0c0c0c"] .wp-block-categories a,
.wp-block-group[style*="background:linear-gradient"] .wp-block-categories a,
.wp-block-group[style*="background-color:#0c0c0c"] .wp-block-navigation a,
.wp-block-group[style*="background:linear-gradient"] .wp-block-navigation a {
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.wp-block-group[style*="background-color:#0c0c0c"] a:hover,
.wp-block-group[style*="background:linear-gradient"] a:hover {
    opacity: 0.7;
    text-decoration: none !important;
}

/* Footer taxonomy sections container */
.taxspoc-footer-taxonomies {
    display: block;
}

/* Left column - Categories and Countries (vertical) */
.taxspoc-footer-taxonomies .wp-block-column[style*="flex-basis:40%"] {
    display: flex;
    flex-direction: column;
}

/* Categories section - multiple columns for long list */
.taxspoc-footer-taxonomies .wp-block-column[style*="flex-basis:40%"] .wp-block-group:first-child .wp-block-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 400px;
    column-count: auto;
    column-width: 160px;
    column-gap: 20px;
}

.taxspoc-footer-taxonomies .wp-block-column[style*="flex-basis:40%"] .wp-block-group:first-child .wp-block-categories li {
    margin-bottom: 0;
    padding: 0;
    break-inside: avoid;
}


/* Right column - Regions (horizontal) + Content area */
.taxspoc-footer-taxonomies .wp-block-column[style*="flex-basis:60%"] {
    display: flex;
    flex-direction: column;
}

/* Regions section - horizontal layout */
.taxspoc-footer-taxonomies .wp-block-column[style*="flex-basis:60%"] .wp-block-group:first-child .wp-block-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.taxspoc-footer-taxonomies .wp-block-column[style*="flex-basis:60%"] .wp-block-group:first-child .wp-block-categories li {
    margin-bottom: 0;
    padding: 0;
    display: inline-block;
}

/* Content area - countries in 4 columns */
.taxspoc-footer-content-area {
    min-height: 300px;
    display: block;
    padding: 0 !important;
}

.taxspoc-footer-content-area .wp-block-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
    column-count: 4 !important;
    column-gap: 30px;
    column-fill: balance;
    width: 100%;
}

.taxspoc-footer-content-area .wp-block-categories li {
    margin-bottom: 0;
    padding: 0;
    break-inside: avoid;
}

.taxspoc-footer-content-area .wp-block-categories a {
    display: inline-block;
    text-decoration: none !important;
    color: #ffffff;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.8;
}

/* Footer categories links styling */
.wp-block-group[style*="background-color:#0c0c0c"] .wp-block-categories a,
.wp-block-group[style*="background:linear-gradient"] .wp-block-categories a {
    display: inline-block;
    text-decoration: none !important;
    color: #ffffff;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.8;
}

/* Footer headings */
.wp-block-group[style*="background-color:#0c0c0c"] h4,
.wp-block-group[style*="background:linear-gradient"] h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Footer paragraphs */
.wp-block-group[style*="background-color:#0c0c0c"] p,
.wp-block-group[style*="background:linear-gradient"] p {
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
}

/* Footer button */
.wp-block-group[style*="background-color:#0c0c0c"] .wp-block-button__link,
.wp-block-group[style*="background:linear-gradient"] .wp-block-button__link {
    text-decoration: none !important;
    border: none;
    transition: background-color 0.2s ease;
}

.wp-block-group[style*="background-color:#0c0c0c"] .wp-block-button__link:hover,
.wp-block-group[style*="background:linear-gradient"] .wp-block-button__link:hover {
    background-color: #616161 !important;
    text-decoration: none !important;
}

/* Social icons */
.wp-block-group[style*="background-color:#0c0c0c"] .wp-block-outermost-icon-block a,
.wp-block-group[style*="background:linear-gradient"] .wp-block-outermost-icon-block a {
    text-decoration: none !important;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.wp-block-group[style*="background-color:#0c0c0c"] .wp-block-outermost-icon-block a:hover,
.wp-block-group[style*="background:linear-gradient"] .wp-block-outermost-icon-block a:hover {
    opacity: 1;
    text-decoration: none !important;
}

/* Separator */
.wp-block-group[style*="background-color:#0c0c0c"] .wp-block-separator,
.wp-block-group[style*="background:linear-gradient"] .wp-block-separator {
    background-color: #696969ba;
    border: none;
    height: 1px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .taxspoc-footer-taxonomies .wp-block-columns {
        flex-direction: column;
    }
    
    .taxspoc-footer-taxonomies .wp-block-column[style*="flex-basis:40%"],
    .taxspoc-footer-taxonomies .wp-block-column[style*="flex-basis:60%"] {
        flex-basis: 100% !important;
    }
    
    .taxspoc-footer-taxonomies .wp-block-column[style*="flex-basis:60%"] .wp-block-group:first-child .wp-block-categories {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .taxspoc-footer-taxonomies .wp-block-column[style*="flex-basis:40%"] .wp-block-group:first-child .wp-block-categories {
        max-height: none;
        column-count: 1;
        flex-wrap: nowrap;
    }
    
    .taxspoc-footer-content-area {
        min-height: 200px;
    }
    
    .taxspoc-footer-content-area .wp-block-categories {
        column-count: 2 !important;
    }
}
