/* =========================================
   TOHED.COM FOOTER STYLES
   Production-Ready Footer Component
   Enhanced Visual Design
   ========================================= */

/* ============================================ */
/* NOTICE BANNER (Above Footer)                */
/* ============================================ */

.tohed-notice-banner {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-top: 3px solid var(--accent-gold);
    border-bottom: none;
    padding: 18px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tohed-notice-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1) 50%, transparent);
    pointer-events: none;
}

.tohed-notice-banner p {
    margin: 0;
    font-family: var(--font-urdu);
    font-size: 17px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.tohed-notice-banner .notice-label {
    color: var(--accent-gold-light);
    font-weight: 700;
    margin-left: 5px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.tohed-notice-banner a {
    color: var(--accent-gold-light);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    border-bottom: 1px dashed var(--accent-gold-light);
}

.tohed-notice-banner a:hover {
    color: white;
    border-bottom-color: white;
}

/* ============================================ */
/* DECORATIVE SEPARATOR                         */
/* ============================================ */

.tohed-footer-separator {
    height: 6px;
    background: linear-gradient(90deg,
        var(--accent-gold-dark) 0%,
        var(--accent-gold) 25%,
        var(--accent-gold-light) 50%,
        var(--accent-gold) 75%,
        var(--accent-gold-dark) 100%
    );
    background-size: 200% 100%;
    animation: separatorGradient 12s ease infinite;
    box-shadow: 0 2px 15px rgba(201, 162, 39, 0.4);
}

@keyframes separatorGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================ */
/* MAIN FOOTER                                  */
/* ============================================ */

.tohed-footer {
    background: linear-gradient(180deg,
        var(--primary) 0%,
        var(--primary-dark) 40%,
        #0d3834 100%
    );
    color: white;
    font-family: var(--font-urdu);
    position: relative;
    overflow: hidden;
}

/* Decorative Wave at Top */
.tohed-footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    color: var(--bg-cream);
}

.tohed-footer-wave svg {
    width: 100%;
    height: 60px;
}

/* Islamic geometric pattern overlay */
.tohed-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40L40 0z' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.04'/%3E%3Ccircle cx='40' cy='40' r='15' fill='none' stroke='%23c9a227' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    pointer-events: none;
}

/* Secondary decorative overlay */
.tohed-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top center, rgba(201, 162, 39, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ============================================ */
/* FOOTER BRANDING SECTION                      */
/* ============================================ */

.tohed-footer-branding {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 70px 0 45px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    margin-bottom: 50px;
}

.tohed-footer-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    filter: drop-shadow(0 4px 15px rgba(26, 95, 90, 0.4));
    transition: transform 0.3s ease;
}

.tohed-footer-logo:hover {
    transform: scale(1.05);
}

.tohed-footer-tagline {
    font-family: var(--font-urdu);
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

/* ============================================ */
/* FOOTER CONTENT                               */
/* ============================================ */

.tohed-footer-content {
    position: relative;
    z-index: 1;
    padding: 70px 0 40px;
}

/* ============================================ */
/* FOOTER COLUMNS                               */
/* ============================================ */

.tohed-footer-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.tohed-footer-column {
    text-align: center;
}

/* Column Titles */
.tohed-footer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold-light);
    margin-bottom: 28px;
    padding-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-direction: row-reverse;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tohed-footer-title i {
    font-size: 18px;
    color: var(--accent-gold);
    opacity: 0.8;
}

.tohed-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* Footer Links */
.tohed-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tohed-footer-links li {
    margin-bottom: 14px;
}

.tohed-footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.8;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    position: relative;
}

.tohed-footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold-light);
    transition: width 0.3s ease;
}

.tohed-footer-links a:hover {
    color: var(--accent-gold-light);
    padding-right: 8px;
}

.tohed-footer-links a:hover::before {
    width: 100%;
}

/* ============================================ */
/* SOCIAL ICONS SECTION                         */
/* ============================================ */

.tohed-footer-social-wrapper {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    text-align: center;
}

.tohed-social-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    font-weight: 500;
}

.tohed-footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tohed-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
    position: relative;
    overflow: hidden;
}

.tohed-footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tohed-footer-social a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

.tohed-footer-social a:hover::before {
    opacity: 1;
}

/* Social Colors on Hover */
.tohed-footer-social a.telegram:hover { background: linear-gradient(135deg, #0088cc 0%, #006699 100%); }
.tohed-footer-social a.discord:hover { background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%); }
.tohed-footer-social a.apple:hover { background: linear-gradient(135deg, #333333 0%, #000000 100%); }
.tohed-footer-social a.whatsapp:hover { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.tohed-footer-social a.android:hover,
.tohed-footer-social a.playstore:hover { background: linear-gradient(135deg, #01875f 0%, #006644 100%); }
.tohed-footer-social a.facebook:hover { background: linear-gradient(135deg, #1877F2 0%, #0d5dc5 100%); }
.tohed-footer-social a.youtube:hover { background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%); }

/* ============================================ */
/* FOOTER ABOUT TEXT                            */
/* ============================================ */

.tohed-footer-about {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(201, 162, 39, 0.25);
}

.tohed-footer-about-inner {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.08) 100%);
    padding: 30px 35px;
    border-radius: 20px;
    border: 1px solid rgba(201, 162, 39, 0.15);
    position: relative;
    text-align: center;
}

.tohed-about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: 50%;
    margin-bottom: 18px;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.tohed-footer-about-text {
    font-size: 15px;
    line-height: 2.3;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ============================================ */
/* FOOTER BOTTOM (Copyright)                    */
/* ============================================ */

.tohed-footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 22px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}

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

.tohed-copyright {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.tohed-copyright a {
    color: var(--accent-gold-light);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.tohed-copyright a:hover {
    color: white;
    border-bottom-color: var(--accent-gold);
}

.tohed-footer-bottom-links {
    display: flex;
    gap: 8px;
}

.tohed-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tohed-footer-bottom-links a:hover {
    color: white;
    background: rgba(201, 162, 39, 0.2);
    border-color: rgba(201, 162, 39, 0.3);
}

/* ============================================ */
/* BACK TO TOP BUTTON                           */
/* ============================================ */

.tohed-back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: 2px solid rgba(201, 162, 39, 0.4);
    border-radius: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(26, 95, 90, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tohed-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.tohed-back-to-top:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.5);
}

/* ============================================ */
/* RESPONSIVE STYLES                            */
/* ============================================ */

@media (max-width: 992px) {
    .tohed-footer-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .tohed-footer-column:last-child {
        grid-column: span 2;
        text-align: center;
    }

    .tohed-footer-column:last-child .tohed-footer-title {
        justify-content: center;
    }

    .tohed-footer-column:last-child .tohed-footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .tohed-footer-column:last-child .tohed-footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 30px;
    }

    .tohed-footer-column:last-child .tohed-footer-links li {
        margin-bottom: 0;
    }

    .tohed-footer-branding {
        padding: 60px 0 35px;
    }

    .tohed-footer-logo {
        width: 100px;
        height: 100px;
    }

    .tohed-footer-tagline {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .tohed-footer-wave svg {
        height: 40px;
    }

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

    .tohed-footer-column {
        text-align: center;
    }

    .tohed-footer-column .tohed-footer-title {
        justify-content: center;
    }

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

    .tohed-footer-column:last-child {
        grid-column: span 1;
    }

    .tohed-footer-title {
        font-size: 18px;
        margin-bottom: 22px;
    }

    .tohed-footer-links a {
        font-size: 15px;
        justify-content: center;
    }

    .tohed-footer-links a::before {
        display: none;
    }

    .tohed-footer-links a:hover {
        padding-right: 0;
    }

    .tohed-footer-branding {
        padding: 50px 0 30px;
        margin-bottom: 35px;
    }

    .tohed-footer-logo {
        width: 85px;
        height: 85px;
    }

    .tohed-footer-tagline {
        font-size: 13px;
    }

    .tohed-footer-about {
        margin-top: 35px;
        padding-top: 30px;
    }

    .tohed-footer-about-inner {
        padding: 25px 20px;
    }

    .tohed-footer-about-text {
        font-size: 14px;
        line-height: 2.1;
    }

    .tohed-about-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

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

    .tohed-footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tohed-notice-banner p {
        font-size: 15px;
    }

    .tohed-back-to-top {
        bottom: 20px;
        left: 20px;
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
}

@media (max-width: 576px) {
    .tohed-footer-social a {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 12px;
    }

    .tohed-notice-banner {
        padding: 15px 10px;
    }

    .tohed-notice-banner p {
        font-size: 14px;
    }

    .tohed-footer-bottom-links a {
        padding: 5px 12px;
        font-size: 13px;
    }
}

/* ============================================ */
/* PRINT STYLES                                 */
/* ============================================ */

@media print {
    .tohed-notice-banner,
    .tohed-footer,
    .tohed-back-to-top {
        display: none !important;
    }
}
