/* Amazon-Style Footer CSS */
:root {
    --footer-bg-dark: #103a67;
    --footer-bg-light: #0092bd;
    --footer-bg-accent: #0056b3;
    --footer-text: #fff;
    --footer-link: #fff;
    --footer-link-hover: #f1bf1a;
}

.amazon-footer {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
}

.amazon-footer a {
    color: var(--footer-link);
    text-decoration: none;
    transition: all 0.2s;
}

.amazon-footer a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

.footer-back-to-top {
    background-color: var(--footer-bg-light);
    color: #fff;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    cursor: pointer;
}

.footer-back-to-top:hover {
    background-color: #0056b3;
}

.footer-main {
    background-color: var(--footer-bg-dark);
    color: var(--footer-text);
    padding: 50px 0 30px;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-column h5 {
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #f1bf1a, transparent);
    border-radius: 2px;
}

.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(4px);
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: #f1bf1a;
}

.footer-middle {
    background-color: var(--footer-bg-dark);
    color: var(--footer-text);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-middle img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-languages {
    display: inline-flex;
    border: 1px solid #848688;
    border-radius: 3px;
    padding: 6px 10px;
    margin: 15px auto;
    font-size: 0.8rem;
}

.footer-languages select {
    background-color: transparent;
    border: none;
    color: var(--footer-text);
    outline: none;
    font-size: 0.8rem;
    margin-right: 10px;
}

.footer-languages select option {
    background-color: var(--footer-bg-dark);
}

.footer-bottom {
    background-color: var(--footer-bg-accent);
    color: var(--footer-text);
    padding: 20px 0;
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-bottom-links a {
    margin: 0 10px;
    white-space: nowrap;
}

.footer-copyright {
    text-align: center;
    color: #999;
}

.social-links {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.social-links a {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #103a67;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(16,58,103,0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-links a:active::before {
    width: 300px;
    height: 300px;
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #cce7ff 100%);
}

.social-links a:hover {
    color: #103a67;
}

/* RTL Support */
[dir="rtl"] .footer-links {
    text-align: right;
}

[dir="rtl"] .footer-column h5 {
    text-align: right;
}

[dir="rtl"] .footer-languages select {
    margin-right: 0;
    margin-left: 10px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .footer-column {
        margin-bottom: 30px;
    }
    
    .footer-bottom-links a {
        margin: 0 5px 10px;
    }
}
