/**
 * Modern Footer Styles for Article.Pk
 *
 * Features:
 * - 3-column widget system
 * - Newsletter signup integration
 * - Large modern social icons
 * - Beautiful statistics counter
 * - Footer menu and copyright
 * - Brand colors (#0052cc, #00c453, #2a323a)
 * - Responsive design
 */

/* ==========================================
   MODERN FOOTER CONTAINER
   ========================================== */

footer.footer {
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: 60px 0 0;
    border-top: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
    border-image-slice: 1;
    position: relative;
    overflow: hidden;
}

footer.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(0,82,204,0.03)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
    pointer-events: none;
}

footer.footer > * {
    position: relative;
    z-index: 1;
}

/* ==========================================
   FOOTER WIDGETS SECTION
   ========================================== */

.footer-widgets {
    padding-bottom: 50px;
}

.footer-widgets .row {
    --bs-gutter-x: 2rem;
}

/* Widget Columns */
.footer-widget-col {
    margin-bottom: 30px;
}

/* Widget Titles */
footer.footer .block-title {
    margin-bottom: 25px;
    padding-bottom: 0;
    border-bottom: none;
}

footer.footer .block-title span {
    color: var(--white);
    font-size: 20px;
    font-weight: var(--font-bold);
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

footer.footer .block-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* Widget Content */
footer.footer .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Widget Links */
footer.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-colors);
    display: inline-block;
}

footer.footer a:hover {
    color: var(--white);
    padding-left: 5px;
    text-decoration: none;
}

/* Widget Lists */
footer.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer.footer ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

footer.footer ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--brand-green);
    transition: var(--transition-transform);
}

footer.footer ul li:hover::before {
    transform: translateX(3px);
}

/* ==========================================
   FOOTER ABOUT SECTION (Column 1)
   ========================================== */

.footer-about {
    padding-right: 20px;
}

.footer-about-logo {
    margin-bottom: 20px;
}

.footer-about-logo img {
    max-height: 50px;
    width: auto;
}

.footer-about-text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Social Icons Section (Matching Header Style) */
.footer-social-section {
    padding: 30px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-title {
    color: var(--white);
    font-size: 16px;
    font-weight: var(--font-medium);
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 0.5px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: var(--radius-full);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.footer-social-icons a:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-social-icons a i {
    line-height: 1;
}

/* Social Platform Colors (Optional Hover) */
.footer-social-icons a[href*="facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-social-icons a[href*="twitter"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.footer-social-icons a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.footer-social-icons a[href*="youtube"]:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.footer-social-icons a[href*="linkedin"]:hover {
    background: #0077b5;
    border-color: #0077b5;
}

/* ==========================================
   NEWSLETTER WIDGET (Column 3)
   ========================================== */

.newsletter-widget {
    background: rgba(0, 82, 204, 0.08);
    border: 2px solid rgba(0, 82, 204, 0.2);
    border-radius: var(--radius-xl);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.newsletter-widget .block-title span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-widget .block-title span i {
    font-size: 24px;
    color: var(--brand-green);
}

.newsletter-description {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: var(--leading-relaxed);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    transition: var(--transition-colors);
    font-family: var(--font-primary);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.2);
}

.newsletter-form button {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.newsletter-form button:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-lg);
}

.newsletter-privacy {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.newsletter-privacy i {
    color: var(--brand-green);
}

/* Newsletter Success/Error Messages */
.newsletter-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

.newsletter-message.success {
    background: rgba(0, 196, 83, 0.2);
    border: 1px solid var(--brand-green);
    color: var(--brand-green);
}

.newsletter-message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--danger-color);
    color: #ff6b6b;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   STATISTICS COUNTER BAR
   ========================================== */

.footer-statistics {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px 0;
    margin: 0 0 40px 0;
}

.statistics-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 28px;
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: var(--text-shadow-md);
    display: block;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-light);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    margin: auto;
}

/* Counter Animation */
.stat-number[data-count] {
    opacity: 0;
    animation: countUp 1.5s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   FOOTER BOTTOM
   ========================================== */

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Footer Menu */
.footer-menu {
    margin: 0;
}

.footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu ul li {
    margin-bottom: 0;
    padding-left: 0;
}

.footer-menu ul li::before {
    display: none;
}

.footer-menu ul li:not(:last-child)::after {
    content: '|';
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-menu a {
    color: var(--text-light);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    padding: 0;
}

.footer-menu a:hover {
    color: var(--white);
    padding-left: 0;
}

/* Copyright */
.footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-copyright i {
    color: var(--brand-green);
}

.footer-copyright a {
    color: var(--white);
    font-weight: var(--font-semibold);
    padding: 0;
}

.footer-copyright a:hover {
    color: var(--brand-blue);
    padding-left: 0;
}

/* Made with Love */
.footer-made-with {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.footer-made-with .heart {
    color: var(--danger-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* ==========================================
   BACK TO TOP BUTTON (Optional)
   ========================================== */

.back-to-top-footer {
    position: absolute;
    top: -25px;
    right: 50px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-blue-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-footer:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 82, 204, 0.5);
}

.back-to-top-footer i {
    transition: var(--transition-transform);
}

.back-to-top-footer:hover i {
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 991px) {
    footer.footer {
        padding: 50px 0 0;
    }

    .footer-widgets {
        padding-bottom: 40px;
    }

    .footer-about {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .statistics-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }
}

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

    .footer-widgets .row {
        --bs-gutter-x: 1rem;
    }

    .footer-widget-col {
        margin-bottom: 35px;
    }

    footer.footer .block-title span {
        font-size: 18px;
    }

    .newsletter-widget {
        padding: 20px;
    }

    .footer-social-icons {
        justify-content: flex-start;
    }

    .footer-social-icons a {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .footer-statistics {
        padding: 30px 0;
        margin-bottom: 30px;
    }

    .statistics-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .stat-number {
        font-size: var(--text-3xl);
    }

    .footer-bottom {
        padding: 20px 0;
    }

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

    .footer-menu ul {
        justify-content: center;
    }

    .back-to-top-footer {
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .newsletter-form {
        gap: 10px;
    }

    .newsletter-form input,
    .newsletter-form button {
        padding: 12px 16px;
        font-size: var(--text-sm);
    }

    .footer-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-menu ul li:not(:last-child)::after {
        display: none;
    }
}

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

@media print {
    footer.footer {
        background: #fff;
        color: #000;
        border-top: 2px solid #000;
        padding: 20px 0;
    }

    .footer-social-icons,
    .newsletter-widget,
    .footer-statistics,
    .back-to-top-footer {
        display: none !important;
    }

    footer.footer a {
        color: #000;
    }
}

/* ==========================================
   DARK MODE SUPPORT (Future)
   ========================================== */

@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode */
}
