/* Footer Modern Styles - Dynamic Theme Support */
/* Each page sets --footer-primary and --footer-gradient via inline style or CSS */

.footer-modern {
    position: relative;
    background: var(--footer-bg, #0f172a);
    overflow: hidden;
}

/* Footer Main Background matches page theme */
.footer-main {
    background: var(--footer-bg, #0f172a) !important;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* White dot pattern - same as header */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

/* Footer Top Section */
.footer-top {
    position: relative;
    padding: 35px 0;
    background: var(--footer-primary, #8b5cf6);
    background: var(--footer-gradient, linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%));
}

.footer-top-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-support {
    color: white;
}

.support-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.support-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.support-phones {
    display: flex;
    gap: 12px;
    align-items: center;
}

.support-phones a {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
}

.support-phones a:hover {
    opacity: 0.8;
}

.support-phones span {
    color: rgba(255, 255, 255, 0.6);
}

/* Agent Card */
.footer-agent {
    display: flex;
    justify-content: flex-end;
}

.agent-card {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 18px;
    max-width: 380px;
}

.agent-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.agent-content h5 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.agent-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.agent-btn {
    display: inline-block;
    padding: 10px 24px;
    background: white;
    color: var(--footer-primary, #8b5cf6);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.agent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Main */
.footer-main {
    position: relative;
    padding: 40px 0 30px;
    background: var(--footer-bg, #0f172a);
}

.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 50px;
}

.footer-menus {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-menu-col .menu-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 8px;
    white-space: nowrap;
}

.footer-menu-col .menu-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--footer-primary, #8b5cf6);
    border-radius: 2px;
}

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

.footer-menu-col ul li {
    margin-bottom: 8px;
}

.footer-menu-col ul li a {
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-menu-col ul li a:hover {
    color: var(--footer-primary, #8b5cf6);
    padding-right: 8px;
}

.badge-new {
    display: inline-block;
    padding: 2px 8px;
    background: var(--footer-primary, #8b5cf6);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
}

/* Footer Info */
.footer-info {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-address {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f1f5f9;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--footer-primary, #8b5cf6);
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
}

.contact-icon.phone {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.contact-icon.email {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.contact-icon.ticket {
    background: var(--footer-gradient, linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%));
}

/* Newsletter */
.footer-newsletter {
    margin-bottom: 16px;
}

.footer-newsletter h5 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.newsletter-input {
    display: flex;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.newsletter-input input {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.85rem;
}

.newsletter-input input::placeholder {
    color: #64748b;
}

.newsletter-input input:focus {
    outline: none;
}

.newsletter-input button {
    padding: 12px 20px;
    background: var(--footer-primary, #8b5cf6);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.newsletter-input button:hover {
    opacity: 0.9;
}

/* Enamads */
.footer-enamads h5 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.enamad-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.enamad-item {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.enamad-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Enamad Icons - Individual images */
.enamad-icon {
    width: 50px;
    height: 50px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.enamad-icon.namad1 {
    background-image: url(/assets/images/namad1.png);
}

.enamad-icon.namad2 {
    background-image: url(/assets/images/namad2.png);
}

.enamad-icon.namad6 {
    background-image: url(/assets/images/namad6.png);
}

.enamad-icon.namad7 {
    background-image: url(/assets/images/namad7.png);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

.copyright a {
    color: var(--footer-primary, #8b5cf6);
    text-decoration: none;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social span {
    color: #64748b;
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--footer-primary, #8b5cf6);
    border-color: var(--footer-primary, #8b5cf6);
    color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-menus {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-top-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-agent {
        justify-content: center;
    }

    .agent-card {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0;
    }

    .support-title {
        font-size: 1.2rem;
    }

    .support-phones {
        flex-direction: column;
        gap: 8px;
    }

    .support-phones span {
        display: none;
    }

    .agent-card {
        flex-direction: column;
        text-align: center;
    }

    .agent-icon {
        margin: 0 auto;
    }

    .footer-menus {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-menu-col .menu-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-menu-col {
        text-align: center;
    }

    .footer-menu-col ul li a:hover {
        padding-right: 0;
    }

    .footer-info {
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }

    .footer-contacts {
        align-items: center;
    }

    .enamad-icons {
        justify-content: center;
    }

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

    .footer-social {
        flex-direction: column;
        gap: 12px;
    }
}
