/* ========================================
   Tarqeyah Footer Styles - Namespaced
   All classes prefixed with 'tq-' to avoid conflicts
   ======================================== */

/* Footer Container */
.tq-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Newsletter Section */
.tq-footer-newsletter {
    background: var(--gradient-primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.tq-footer-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: tq-rotate 30s linear infinite;
}

@keyframes tq-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tq-newsletter-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.tq-newsletter-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.tq-newsletter-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.tq-newsletter-form {
    min-width: 400px;
}

.tq-form-group {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 4px;
    backdrop-filter: blur(10px);
}

.tq-form-input {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 16px;
    outline: none;
}

.tq-form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Buttons */
.tq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 14px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.tq-btn-primary {
    background: var(--primary-blue);
    color: var(--text-white);
    border-color: var(--primary-blue);
}

.tq-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-lime);
    transition: height 0.3s ease;
    z-index: -1;
}

.tq-btn-primary:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 97, 244, 0.3);
    border-color: var(--primary-lime);
}

.tq-btn-primary:hover::before {
    height: 100%;
}

.tq-btn span,
.tq-btn i {
    position: relative;
    z-index: 2;
}

.tq-form-group .tq-btn {
    border-radius: 8px;
}

/* Footer Main Section */
.tq-footer-main {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 80px 0 60px;
}

.tq-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
}

/* Footer About Column */
.tq-footer-logo {
    margin-bottom: 25px;
}

.tq-footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
}

.tq-verified-badges-footer {
    display: flex;
    gap: 15px;
}

.tq-verified-badge-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    color: var(--text-white);
}

.tq-verified-badge-footer .fa-check-circle {
    color: #1DA1F2;
    font-size: 14px;
}

.tq-footer-desc {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* Footer Social Links */
.tq-footer-social {
    display: flex;
    gap: 10px;
}

.tq-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
    text-decoration: none;
}

.tq-social-link:hover {
    background: var(--primary-lime);
    border-color: var(--primary-lime);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Footer Links */
.tq-footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-white);
    position: relative;
    padding-bottom: 10px;
}

.tq-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-lime);
}

[dir="rtl"] .tq-footer-title::after {
    left: auto;
    right: 0;
}

.tq-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tq-footer-links li {
    margin-bottom: 12px;
}

.tq-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.tq-footer-links a:hover {
    color: var(--primary-lime);
    padding-left: 5px;
}

[dir="rtl"] .tq-footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Footer Contact */
.tq-contact-items {
    margin-bottom: 30px;
    direction: ltr;
}

.tq-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tq-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(215, 254, 124, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-lime);
    flex-shrink: 0;
}

.tq-contact-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tq-contact-text span,
.tq-contact-text a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.tq-contact-text a:hover {
    color: var(--primary-lime);
}

.tq-btn-footer {
    width: 100%;
    justify-content: center;
}

/* Footer Bottom */
.tq-footer-bottom {
    background: var(--secondary-green);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.tq-copyright p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.tq-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tq-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.tq-footer-bottom-links a:hover {
    color: var(--primary-lime);
}

.tq-separator {
    color: rgba(255, 255, 255, 0.3);
}

.tq-footer-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.tq-footer-credits p {
    margin: 0;
}

.tq-heart-icon {
    color: #ff4757;
    animation: tq-heartbeat 1.5s ease-in-out infinite;
}

@keyframes tq-heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Footer Scroll Top Button */
.tq-footer-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--text-white);
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 100;
}

.tq-footer-scroll-top.tq-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tq-footer-scroll-top:hover {
    background: var(--primary-lime);
    border-color: var(--primary-lime);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

[dir="rtl"] .tq-footer-scroll-top {
    right: auto;
    left: 30px;
}

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

    .tq-footer-about {
        grid-column: 1 / -1;
    }
}

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

    .tq-newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .tq-newsletter-form {
        min-width: auto;
        width: 100%;
    }

    .tq-footer-main {
        padding: 60px 0 40px;
    }

    .tq-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .tq-footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    [dir="rtl"] .tq-footer-title::after {
        left: 50%;
        right: auto;
    }

    .tq-footer-social {
        justify-content: center;
    }

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

    .tq-contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tq-footer-newsletter {
        padding: 30px 0;
    }

    .tq-newsletter-text h3 {
        font-size: 22px;
    }

    .tq-form-group {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .tq-form-input {
        width: 100%;
        text-align: center;
    }

    .tq-form-group .tq-btn {
        width: 100%;
        justify-content: center;
    }

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

    .tq-footer-bottom-links {
        flex-direction: column;
        gap: 5px;
    }

    .tq-separator {
        display: none;
    }

    .tq-footer-scroll-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }

    [dir="rtl"] .tq-footer-scroll-top {
        right: auto;
        left: 20px;
    }
}

/* RTL Support */
[dir="rtl"] .tq-newsletter-content {
    direction: rtl;
}

[dir="rtl"] .tq-form-group {
    direction: rtl;
}

[dir="rtl"] .tq-footer-grid {
    direction: rtl;
}

[dir="rtl"] .tq-contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .tq-footer-credits {
    flex-direction: row-reverse;
}

[dir="rtl"] .tq-btn i {
    margin-left: 0;
    margin-right: 8px;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .tq-footer-main {
        background: var(--primary-dark);
    }

    .tq-footer-bottom {
        background: var(--secondary-green);
    }
}

/* Footer Message Styles */
.tq-footer-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.tq-footer-message.tq-visible {
    transform: translateX(-50%) translateY(0);
}

.tq-footer-message-success {
    background: #2ecc71;
    color: white;
}

.tq-footer-message-error {
    background: #e74c3c;
    color: white;
}

@media (max-width: 480px) {
    .tq-footer-message {
        bottom: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
}