﻿/* Footer با تم Teal کامل */
.modern-footer {
    background: linear-gradient(135deg, #1e3a39 0%, #2d5353 50%, #4a7c7a 100%) !important;
    color: #f0f8f7;
    position: relative;
    box-shadow: 0 -5px 20px rgba(30, 58, 57, 0.3);
    border-top: 3px solid #6ca8a5;
}

.footer-section {
    padding: 0 15px;
}

.footer-title {
    color: #f0f8f7;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-subtitle {
    color: #e6f3f2;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-description {
    color: #e6f3f2;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

.footer-link {
    color: #e6f3f2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

    .footer-link:hover {
        color: #f0f8f7;
        background: rgba(108, 168, 165, 0.2);
        transform: translateX(8px);
        box-shadow: 0 2px 8px rgba(108, 168, 165, 0.3);
    }

    .footer-link:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: linear-gradient(to bottom, #6ca8a5, #4a7c7a);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .footer-link:hover:before {
        transform: scaleY(1);
    }

    .footer-link i {
        width: 18px;
        margin-left: 10px;
        color: #6ca8a5;
        transition: color 0.3s ease;
    }

    .footer-link:hover i {
        color: #f0f8f7;
    }

.system-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #e6f3f2;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(45, 83, 83, 0.3);
    transition: all 0.3s ease;
}

    .info-item:hover {
        background: rgba(74, 124, 122, 0.4);
        transform: translateX(3px);
    }

    .info-item i {
        margin-left: 10px;
        width: 18px;
        color: #6ca8a5;
    }

.user-info {
    background: linear-gradient(45deg, rgba(108, 168, 165, 0.2), rgba(74, 124, 122, 0.3));
    padding: 12px 16px;
    border-radius: 8px;
    border-right: 4px solid #6ca8a5;
    box-shadow: 0 2px 10px rgba(30, 58, 57, 0.2);
    backdrop-filter: blur(5px);
}

    .user-info i {
        color: #6ca8a5;
        margin-left: 8px;
    }

.footer-divider {
    border-color: rgba(74, 124, 122, 0.4);
    margin: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a7c7a, transparent);
    border: none;
}

.copyright-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #bdc3c7;
    padding: 10px;
    background: rgba(30, 58, 57, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

    .copyright-info i {
        margin-left: 10px;
        color: #6ca8a5;
        font-size: 1.1rem;
    }

.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(45deg, #2d5353, #4a7c7a);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(45, 83, 83, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    border: 3px solid rgba(108, 168, 165, 0.3);
}

    .back-to-top-btn:hover {
        background: linear-gradient(45deg, #4a7c7a, #6ca8a5);
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 10px 30px rgba(45, 83, 83, 0.6);
        border-color: #6ca8a5;
    }

    .back-to-top-btn.show {
        opacity: 1;
        visibility: visible;
        animation: slideInUp 0.5s ease-out;
    }

/* انیمیشن برای دکمه back to top */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* افکت‌های اضافی */
.footer-section:hover .footer-title {
    color: #6ca8a5;
    transition: color 0.3s ease;
}

.footer-section:hover .footer-subtitle {
    color: #f0f8f7;
    transition: color 0.3s ease;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .footer-section {
        margin-bottom: 30px;
        text-align: center;
    }

    .back-to-top-btn {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .footer-link {
        text-align: right;
        padding: 6px 10px;
    }

    .info-item {
        justify-content: center;
    }

    .system-info {
        align-items: center;
    }

    .copyright-info {
        text-align: center;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .footer-title {
        font-size: 1.1rem;
    }

    .footer-subtitle {
        font-size: 0.95rem;
    }

    .system-info {
        gap: 8px;
    }

    .info-item {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .back-to-top-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
        bottom: 10px;
        left: 10px;
    }

    .footer-link {
        font-size: 0.85rem;
        padding: 5px 8px;
    }

    .user-info {
        padding: 8px 12px;
    }
}

/* افکت‌های ویژه */
.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6ca8a5, transparent);
}

/* انیمیشن پالس برای آیکون‌ها */
@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.footer-link:hover i,
.info-item:hover i {
    animation: iconPulse 0.6s ease-in-out;
}

/* گرادینت متحرک برای back-to-top */
@keyframes gradientShift {
    0% {
        background: linear-gradient(45deg, #2d5353, #4a7c7a);
    }

    50% {
        background: linear-gradient(45deg, #4a7c7a, #6ca8a5);
    }

    100% {
        background: linear-gradient(45deg, #2d5353, #4a7c7a);
    }
}

.back-to-top-btn:hover {
    animation: gradientShift 2s infinite;
}
