/**
 * Footer Styles
 *
 * @package Rezeta
 */

/* ==========================================================================
   Footer Base
   ========================================================================== */
.rezeta-footer {
    margin-top: auto;
}

.rezeta-footer--default {
    background-color: var(--rezeta-footer-bg, #222222);
    color: var(--rezeta-footer-text, #ffffff);
}

.rezeta-footer--default a {
    color: inherit;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.rezeta-footer--default a:hover {
    opacity: 1;
}

.rezeta-footer-inner {
    padding-top: var(--rezeta-footer-padding-top, 40px);
    padding-bottom: var(--rezeta-footer-padding-bottom, 40px);
}

/* ==========================================================================
   Footer Columns
   ========================================================================== */
.rezeta-footer-columns {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

.rezeta-footer-columns--1 {
    grid-template-columns: 1fr;
}

.rezeta-footer-columns--2 {
    grid-template-columns: repeat(2, 1fr);
}

.rezeta-footer-columns--3 {
    grid-template-columns: repeat(3, 1fr);
}

.rezeta-footer-columns--4 {
    grid-template-columns: repeat(4, 1fr);
}

.rezeta-footer-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rezeta-footer-column--valign-start {
    justify-content: flex-start;
}

.rezeta-footer-column--valign-center {
    justify-content: center;
}

.rezeta-footer-column--valign-end {
    justify-content: flex-end;
}

.rezeta-footer-column .widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid currentColor;
    opacity: 0.9;
}

.rezeta-footer-column .widget {
    margin-bottom: 20px;
}

.rezeta-footer-column .widget:last-child {
    margin-bottom: 0;
}

.rezeta-footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rezeta-footer-column ul li {
    margin-bottom: 8px;
}

.rezeta-footer-html {
    line-height: 1.7;
}

.rezeta-footer-html p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Footer Column Content Types
   ========================================================================== */

/* Title Base Styles */
.rezeta-footer-column-title {
    --title-line-width: 100%;
    --title-line-color: currentColor;
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    position: relative;
}

/* Title Line Style: None */
.rezeta-footer-column-title--none {
    padding-bottom: 0;
    border: none;
}

/* Title Line Style: Full (default - line below) */
.rezeta-footer-column-title--full {
    padding-bottom: 10px;
}

.rezeta-footer-column-title--full::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--title-line-width);
    height: 2px;
    background-color: var(--title-line-color);
}

/* Title Line Style: Center to End (line from middle of text to column end) */
.rezeta-footer-column-title--center-end {
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rezeta-footer-column-title--center-end::after {
    content: '';
    flex: 1;
    max-width: var(--title-line-width);
    height: 2px;
    background-color: var(--title-line-color);
    min-width: 30px;
}

/* Title Line Style: Above (line on top) */
.rezeta-footer-column-title--above {
    padding-top: 12px;
    padding-bottom: 0;
}

.rezeta-footer-column-title--above::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--title-line-width);
    height: 2px;
    background-color: var(--title-line-color);
}



/* Logo Styles - height comes from inline style, width auto for proportion */
.rezeta-footer-logo-wrap {
    margin-bottom: 20px;
}

.rezeta-footer-logo-wrap--left {
    text-align: left;
}

.rezeta-footer-logo-wrap--center {
    text-align: center;
}

.rezeta-footer-logo-wrap--right {
    text-align: right;
}

.rezeta-footer-logo-wrap .rezeta-logo {
    display: inline-block;
}

.rezeta-footer-logo-wrap .rezeta-logo img {
    max-width: 100%;
    width: auto !important;
}

.rezeta-footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rezeta-footer-menu-list li {
    margin-bottom: 10px;
}

.rezeta-footer-menu-list a {
    color: inherit;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.rezeta-footer-menu-list a:hover {
    opacity: 1;
}

.rezeta-social-icons--footer-column {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.rezeta-social-icons--footer-column .rezeta-social-icon {
    width: 36px;
    height: 36px;
    color: inherit;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.rezeta-social-icons--footer-column .rezeta-social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Footer Social
   ========================================================================== */
.rezeta-footer-social {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.rezeta-social-icons--footer {
    justify-content: center;
}

.rezeta-social-icons--footer .rezeta-social-icon {
    width: 40px;
    height: 40px;
    color: inherit;
}

.rezeta-social-icons--footer .rezeta-social-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Copyright
   ========================================================================== */
.rezeta-footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.rezeta-footer-copyright p {
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {

    .rezeta-footer-columns--3,
    .rezeta-footer-columns--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {

    .rezeta-footer-columns--2,
    .rezeta-footer-columns--3,
    .rezeta-footer-columns--4 {
        grid-template-columns: 1fr;
    }

    .rezeta-footer-inner {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* ==========================================================================
   Footer Column Alignment (Desktop / Default)
   ========================================================================== */
.rezeta-footer-column--align-desktop-left {
    align-items: flex-start;
    text-align: left;
}

.rezeta-footer-column--align-desktop-center {
    align-items: center;
    text-align: center;
}

.rezeta-footer-column--align-desktop-right {
    align-items: flex-end;
    text-align: right;
}

/* ==========================================================================
   Footer Column Alignment (Mobile)
   ========================================================================== */
@media (max-width: 991px) {
    .rezeta-footer-column--align-mobile-left {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .rezeta-footer-column--align-mobile-center {
        align-items: center !important;
        text-align: center !important;
    }

    .rezeta-footer-column--align-mobile-right {
        align-items: flex-end !important;
        text-align: right !important;
    }
}

/* ==========================================================================
   Footer Title Alignment
   ========================================================================== */
/* Desktop / Default */
.rezeta-footer-column-title--align-desktop-left {
    align-items: flex-start;
    text-align: left;
}

.rezeta-footer-column-title--align-desktop-center {
    align-items: center;
    text-align: center;
}

.rezeta-footer-column-title--align-desktop-right {
    align-items: flex-end;
    text-align: right;
}

/* Center-End Special Handling (Desktop) */
.rezeta-footer-column-title--align-desktop-left.rezeta-footer-column-title--center-end {
    justify-content: flex-start;
}

.rezeta-footer-column-title--align-desktop-center.rezeta-footer-column-title--center-end {
    justify-content: center;
}

.rezeta-footer-column-title--align-desktop-right.rezeta-footer-column-title--center-end {
    justify-content: flex-end;
}

/* Mobile */
@media (max-width: 991px) {
    .rezeta-footer-column-title--align-mobile-left {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .rezeta-footer-column-title--align-mobile-center {
        align-items: center !important;
        text-align: center !important;
    }

    .rezeta-footer-column-title--align-mobile-right {
        align-items: flex-end !important;
        text-align: right !important;
    }

    /* Center-End Special Handling (Mobile) */
    .rezeta-footer-column-title--align-mobile-left.rezeta-footer-column-title--center-end {
        justify-content: flex-start !important;
    }

    .rezeta-footer-column-title--align-mobile-center.rezeta-footer-column-title--center-end {
        justify-content: center !important;
    }

    .rezeta-footer-column-title--align-mobile-right.rezeta-footer-column-title--center-end {
        justify-content: flex-end !important;
    }
}