/* Footer Styles */
.site-footer {
    position: relative;
    background-color: var(--footer-bg);
    color: var(--footer-color);
    margin-top: auto;
    border-top: 3px solid var(--border-color);
}

/* Footer Decoration */
.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
    pointer-events: none;
    color: var(--primary-green);
    opacity: 0.5;
}

.footer-decoration svg {
    width: 100%;
    height: 100%;
}

/* Footer Main */
.footer-main {
    position: relative;
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }
}

/* Footer Column */
.footer-column {
    min-width: 0;
}

/* Footer About */
.footer-about {
    max-width: 360px;
}

@media (min-width: 1024px) {
    .footer-about {
        grid-column: span 1;
    }
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.footer-logo:hover {
    opacity: 0.85;
}

.footer-logo-icon {
    transform: rotate(6deg);
    flex-shrink: 0;
}

.footer-logo .logo-text {
    display: flex;
    gap: 0.125rem;
}

.footer-logo .logo-yo {
    color: var(--footer-logo);
}

.footer-logo .logo-mods {
    color: var(--primary-green);
    font-weight: 600;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--footer-color);
    margin-bottom: 1.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--footer-color);
    background-color: transparent;
    border-radius: 0.375rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--primary-green);
    opacity: 0.75;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Footer Title */
.footer-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.footer-title .title-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-title .title-icon-img,
.footer-title .title-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.375rem;
}

.footer-menu li:last-child {
    margin-bottom: 0;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--footer-color);
    text-decoration: none;
    padding: 0.1875rem 0;
    transition: all var(--transition-fast);
}

.footer-link:hover {
    opacity: 0.75;
}

.footer-link .menu-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Icon Image Support */
.footer-link .menu-icon.icon-image img,
.footer-link .menu-icon img,
.footer-link .icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    padding: 1.5rem 0;
}

.footer-bottom-content {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        text-align: left;
    }
}

.copyright {
    font-size: 0.75rem;
    color: var(--footer-color);
    margin: 0;
}

.copyright small {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background-color: var(--primary-green);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 90;
    box-shadow: 0 4px 12px rgba(60, 154, 77, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #2d7a3b;
    transform: translateY(-2px);
}

/* Newsletter Form (Optional) */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--color-text);
    background-color: var(--main-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
    border-color: var(--primary-green);
}

.newsletter-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary-green);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.newsletter-btn:hover {
    background-color: #2d7a3b;
}
