/**
 * Footer Styles
 *
 * @package Media_Khodro
 * @since 1.0.0
 */

/* === Footer Container === */
.mk-footer {
    background: #2C1810;
    background-image: url('../images/footer.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
    padding: 2rem 0 1rem;
    direction: rtl;
    text-align: right;
    min-height: auto;
}

.mk-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.mk-footer > .mk-container {
    position: relative;
    z-index: 2;
}

/* === Top Section (Removed - now using newsletter section directly) === */

/* Newsletter Section (Top, Centered) */
.mk-footer-newsletter-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    max-width: 800px;
    margin-right: auto;
}

.mk-newsletter-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

.mk-newsletter-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mk-newsletter-input {
    flex: 1;
    max-width: 400px;
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-family: var(--mk-font-primary);
    font-size: 0.95rem;
    outline: none;
}

.mk-newsletter-input::placeholder {
    color: #999;
}

.mk-newsletter-submit {
    padding: 0.9rem 1.75rem;
    background: #FF6600;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--mk-font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.mk-newsletter-submit:hover {
    background: #E55A00;
}

/* About Section (Right Column in Links Grid) */
.mk-footer-about-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mk-footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mk-footer-horse-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.mk-footer-horse-logo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.mk-footer-site-name {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.mk-footer-about-text {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
    opacity: 0.95;
}

.mk-footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mk-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.95;
}

.mk-footer-contact-item i {
    font-size: 0.95rem;
    color: #FFB703;
}

.mk-footer-contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mk-footer-contact-item a:hover {
    color: #FF6600;
}

/* === Links Section === */
.mk-footer-links-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.mk-footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.mk-footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mk-footer-links-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mk-footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mk-footer-links-list li {
    position: relative;
    padding-right: 1rem;
}

.mk-footer-links-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #fff;
    font-size: 1rem;
}

.mk-footer-links-list a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.mk-footer-links-list a:hover {
    color: #FF6600;
}

.mk-footer-links-list .mk-footer-no-menu {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    list-style: none;
}

.mk-footer-links-list .mk-footer-no-menu::before {
    display: none;
}

/* === Bottom Section === */
.mk-footer-bottom-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mk-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* eNAMAD */
.mk-footer-enamad {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mk-footer-enamad a {
    display: inline-block;
    text-decoration: none;
    transition: opacity var(--mk-transition-fast);
}

.mk-footer-enamad a:hover {
    opacity: 0.9;
}

.mk-enamad-logo {
    width: auto;
    height: 60px;
    max-width: 100px;
    object-fit: contain;
    display: block;
}

/* Copyright */
.mk-footer-copyright {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
    flex: 1;
}

/* Social Media */
.mk-footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mk-social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.mk-social-icon:hover {
    transform: translateY(-3px);
    color: #FF6600;
}

/* === Back to Top === */
.mk-back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: #FF6600;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mk-back-to-top:hover {
    background: #E55A00;
    transform: translateY(-5px);
}

/* === Responsive === */
@media (max-width: 1200px) {
    .mk-footer-links-grid {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .mk-footer-links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mk-footer-bottom-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .mk-footer-copyright {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mk-footer {
        padding: 1.5rem 0 0.75rem;
    }
    
    .mk-footer-newsletter-section {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .mk-newsletter-form {
        flex-direction: column;
    }
    
    .mk-newsletter-input,
    .mk-newsletter-submit {
        width: 100%;
    }
    
    .mk-footer-site-name {
        font-size: 1.5rem;
    }
    
    .mk-footer-about-text {
        font-size: 0.9rem;
    }
    
    .mk-footer-links-section {
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .mk-footer-horse-logo {
        width: 50px;
        height: 50px;
    }
    
    .mk-footer-site-name {
        font-size: 1.3rem;
    }
    
    .mk-footer-links-title {
        font-size: 1rem;
    }
    
    .mk-footer-links-list a {
        font-size: 0.9rem;
    }
    
    .mk-footer-copyright {
        font-size: 0.85rem;
    }
    
    .mk-social-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .mk-back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 44px;
        height: 44px;
    }
}
