/* footer.css - Modern Footer Styles for MyShopRec - FIXED */

/* Footer Base Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    width: 100%;
    position: relative;
    margin-top: 5em; /* Reduced from 10em */
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Main Footer Content - FIXED grid distribution */
.footer-main {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 1.2fr 1.5fr 1.6fr; /* Better balanced columns */
    gap: 30px; /* Reduced gap */
    padding: 50px 0 30px; /* Reduced padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: start; /* Align all items to top */
}

.footer-section {
    display: flex;
    flex-direction: column;
    min-height: auto; /* Remove fixed height */
}

/* Logo Section */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px; /* Reduced */
}

.footer-logo i {
    font-size: 1.8rem; /* Slightly smaller */
    color: #3498db;
}

.logo-text {
    font-size: 1.4rem; /* Slightly smaller */
    font-weight: 700;
    color: #3498db;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 20px; /* Reduced */
    color: #bdc3c7;
    font-size: 0.9rem; /* Slightly smaller */
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px; /* Reduced */
    margin-top: 15px; /* Added some top margin */
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; /* Slightly smaller */
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

/* Footer Titles */
.footer-title {
    font-size: 1.1rem; /* Slightly smaller */
    font-weight: 600;
    margin-bottom: 15px; /* Reduced */
    color: #ecf0f1;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -6px; /* Reduced */
    left: 0;
    width: 35px; /* Reduced */
    height: 2px; /* Reduced */
    background: #3498db;
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px; /* Reduced */
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 3px 0; /* Reduced */
    font-size: 0.9rem; /* Slightly smaller */
}

.footer-links a:hover {
    color: #3498db;
    transform: translateX(5px);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px; /* Reduced */
    color: #bdc3c7;
    font-size: 0.9rem; /* Slightly smaller */
    line-height: 1.4;
}

.contact-item i {
    color: #3498db;
    width: 14px; /* Reduced */
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.9rem; /* Ensure icon size matches */
}

/* Newsletter Styles */
.newsletter-text {
    color: #bdc3c7;
    font-size: 0.9rem; /* Slightly smaller */
    line-height: 1.5;
    margin-bottom: 15px; /* Reduced */
}

.newsletter-form {
    margin-top: 10px; /* Reduced */
}

.input-group {
    display: flex;
    gap: 0;
    border-radius: 20px; /* Slightly smaller */
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* Reduced shadow */
}

.newsletter-input {
    flex: 1;
    padding: 10px 15px; /* Reduced */
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-size: 0.9rem; /* Slightly smaller */
    outline: none;
}

.newsletter-input::placeholder {
    color: #7f8c8d;
    font-size: 0.85rem; /* Smaller placeholder */
}

.newsletter-btn {
    padding: 10px 15px; /* Reduced */
    background: #3498db;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px; /* Reduced */
}

.newsletter-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0; /* Reduced */
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px; /* Reduced */
}

.copyright p {
    color: #bdc3c7;
    margin: 0;
    font-size: 0.85rem; /* Slightly smaller */
}

.footer-bottom-links {
    display: flex;
    gap: 20px; /* Reduced */
}

.footer-bottom-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.85rem; /* Slightly smaller */
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-bottom-links a:hover {
    color: #3498db;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced */
    flex-shrink: 0;
}

.payment-methods span {
    color: #bdc3c7;
    font-size: 0.85rem; /* Slightly smaller */
    white-space: nowrap;
}

.payment-icons {
    display: flex;
    gap: 8px; /* Reduced */
}

.payment-icons i {
    font-size: 1.3rem; /* Reduced */
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.payment-icons i:hover {
    color: #3498db;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px; /* Reduced */
    right: 25px;
    width: 45px; /* Reduced */
    height: 45px;
    background: #3498db;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3); /* Reduced shadow */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4); /* Reduced shadow */
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 30px 25px;
    }
    
    .footer-section:last-child {
        grid-column: 1 / -1;
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .newsletter-form {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px 25px;
    }
    
    .footer-section:last-child {
        grid-column: 1 / -1;
    }
    
    .footer-bottom-content {
        justify-content: center;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .footer {
        margin-top: 3em;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 35px 0 25px;
    }
    
    .footer-section:last-child {
        grid-column: 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 8px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .footer {
        margin-top: 2em;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-main {
        padding: 25px 0 20px;
        gap: 20px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .newsletter-input {
        border-radius: 10px 10px 0 0;
    }
    
    .newsletter-btn {
        border-radius: 0 0 10px 10px;
    }
}