/* ============================================
   FOOTER STYLES - Fa'izin Charity Organization
   ============================================ */

/* ============================================
   MAIN FOOTER CONTAINER
   ============================================ */
.footer {
    background: var(--dark-color, #1a1a2e);
    color: var(--white, #ffffff);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

/* Footer decorative pattern */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern-footer.png') repeat;
    opacity: 0.03;
    pointer-events: none;
}

/* ============================================
   FOOTER TOP
   ============================================ */
.footer-top {
    padding: 70px 0 50px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* ============================================
   FOOTER COLUMNS
   ============================================ */
.footer-column {
    display: flex;
    flex-direction: column;
}

/* ============================================
   FOOTER BRAND / ABOUT
   ============================================ */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-brand h3 {
    color: var(--white, #ffffff);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--white, #ffffff);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    background: var(--brand-color, #d4a647);
    opacity: 0.2;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--white, #ffffff);
    border-color: var(--brand-color, #d4a647);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link i {
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

/* Social Media Brand Colors */
.social-link.facebook {
    --brand-color: #1877f2;
}
.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.3);
}

.social-link.twitter {
    --brand-color: #1da1f2;
}
.social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    box-shadow: 0 5px 20px rgba(29, 161, 242, 0.3);
}

.social-link.instagram {
    --brand-color: #e4405f;
}
.social-link.instagram:hover {
    background: #e4405f;
    border-color: #e4405f;
    box-shadow: 0 5px 20px rgba(228, 64, 95, 0.3);
}

.social-link.youtube {
    --brand-color: #ff0000;
}
.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3);
}

.social-link.linkedin {
    --brand-color: #0a66c2;
}
.social-link.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    box-shadow: 0 5px 20px rgba(10, 102, 194, 0.3);
}

.social-link.tiktok {
    --brand-color: #000000;
}
.social-link.tiktok:hover {
    background: #000000;
    border-color: #000000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FOOTER TITLES
   ============================================ */
.footer-title {
    color: var(--white, #ffffff);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--secondary-color, #d4a647);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-column:hover .footer-title::after {
    width: 50px;
}

.footer-title i {
    color: var(--secondary-color, #d4a647);
    margin-right: 8px;
}

/* ============================================
   FOOTER LINKS
   ============================================ */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    position: relative;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--secondary-color, #d4a647);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white, #ffffff);
    padding-left: 8px;
}

.footer-links a:hover i {
    transform: translateX(4px);
    color: var(--secondary-light, #e8c86a);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color, #d4a647);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ============================================
   FOOTER CONTACT INFO
   ============================================ */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-contact-info li:hover {
    transform: translateX(5px);
}

.footer-contact-info li i {
    color: var(--secondary-color, #d4a647);
    font-size: 1.1rem;
    margin-top: 3px;
    width: 20px;
    flex-shrink: 0;
}

.footer-contact-info li div {
    flex: 1;
    min-width: 0;
}

.footer-contact-info li strong {
    display: block;
    font-size: 0.8rem;
    color: var(--secondary-color, #d4a647);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.footer-contact-info li span,
.footer-contact-info li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.footer-contact-info li a:hover {
    color: var(--white, #ffffff);
}

/* ============================================
   FOOTER MIDDLE - NEWSLETTER
   ============================================ */
.footer-middle {
    padding: 40px 0;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}

.footer-newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Newsletter Content */
.newsletter-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 166, 71, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color, #d4a647);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-icon:hover {
    background: rgba(212, 166, 71, 0.2);
    transform: rotate(10deg);
}

.newsletter-text h4 {
    color: var(--white, #ffffff);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.newsletter-text p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Newsletter Form */
.newsletter-form {
    flex: 1;
    max-width: 450px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    color: var(--white, #ffffff);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--secondary-color, #d4a647);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(212, 166, 71, 0.1);
}

.newsletter-form input[type="email"]:hover {
    border-color: rgba(255,255,255,0.2);
}

.newsletter-form .btn {
    padding: 12px 30px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.newsletter-form .btn i {
    margin-right: 8px;
}

.newsletter-form .btn:hover {
    transform: translateY(-2px);
}

/* Form Check - Privacy Consent */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--secondary-color, #d4a647);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--secondary-color, #d4a647);
    outline-offset: 2px;
}

.form-check label {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    cursor: pointer;
}

.form-check label a {
    color: var(--secondary-color, #d4a647);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-check label a:hover {
    color: var(--secondary-light, #e8c86a);
    text-decoration: underline;
}

/* Newsletter Message */
.newsletter-message {
    margin-top: 10px;
    transition: all 0.3s ease;
}

.newsletter-message .alert {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

.newsletter-message .alert-success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.newsletter-message .alert-error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Newsletter Button Loading State */
.newsletter-form button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-form .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */
.footer-bottom {
    padding: 20px 0;
    background: rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.footer-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Copyright */
.footer-copyright {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-copyright strong {
    color: var(--white, #ffffff);
}

.footer-credit {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.85rem !important;
}

.footer-credit i {
    color: #ff4444;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Legal Links */
.footer-legal ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal ul li {
    margin: 0;
}

.footer-legal ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-legal ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color, #d4a647);
    transition: width 0.3s ease;
}

.footer-legal ul li a:hover {
    color: var(--white, #ffffff);
}

.footer-legal ul li a:hover::after {
    width: 100%;
}

/* Payment Methods */
.footer-payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.payment-label i {
    color: var(--secondary-color, #d4a647);
}

.footer-payment-methods i {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.footer-payment-methods i:hover {
    color: var(--white, #ffffff);
    transform: translateY(-2px);
}

.footer-payment-methods .fa-cc-visa:hover { color: #1a1f71; }
.footer-payment-methods .fa-cc-mastercard:hover { color: #eb001b; }
.footer-payment-methods .fa-cc-paypal:hover { color: #0070ba; }
.footer-payment-methods .fa-mobile-alt:hover { color: #25d366; }

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-gradient, linear-gradient(135deg, #d4a647, #b8923a));
    color: var(--white, #ffffff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 5px 25px rgba(212, 166, 71, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 35px rgba(212, 166, 71, 0.4);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--secondary-color, #d4a647);
    outline-offset: 3px;
}

/* ============================================
   RESPONSIVE FOOTER
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .footer-top {
        padding: 50px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
    
    .footer-bottom-grid {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-copyright {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-legal ul {
        justify-content: center;
    }
    
    .footer-payment-methods {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column:hover .footer-title::after {
        width: 50px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-links a::after {
        display: none;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-contact-info li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact-info li:hover {
        transform: translateX(0);
    }
    
    .footer-contact-info li i {
        margin-bottom: 5px;
        width: auto;
    }
    
    /* Newsletter Mobile */
    .footer-middle {
        padding: 30px 0;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .newsletter-text h4 {
        font-size: 1rem;
    }
    
    .newsletter-text p {
        font-size: 0.85rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        font-size: 0.9rem;
        padding: 10px 15px;
        text-align: center;
    }
    
    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .form-check {
        justify-content: center;
    }
    
    /* Footer Bottom Mobile */
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
    
    .footer-credit {
        font-size: 0.75rem !important;
    }
    
    .footer-legal ul {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-legal ul li a {
        font-size: 0.8rem;
    }
    
    .payment-label {
        font-size: 0.75rem;
    }
    
    .footer-payment-methods i {
        font-size: 1.2rem;
    }
    
    /* Back to Top Mobile */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer-logo {
        height: 40px;
    }
    
    .footer-brand h3 {
        font-size: 1.1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-contact-info li span,
    .footer-contact-info li a {
        font-size: 0.85rem;
    }
    
    .footer-contact-info li strong {
        font-size: 0.7rem;
    }
    
    .footer-payment-methods {
        gap: 10px;
    }
    
    .footer-payment-methods i {
        font-size: 1rem;
    }
    
    .footer-legal ul {
        gap: 6px;
    }
    
    .newsletter-form input[type="email"] {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .newsletter-form .btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .form-check label {
        font-size: 0.75rem;
    }
}

/* ============================================
   DARK THEME SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .footer {
        background: #0a0a1a;
    }
    
    .footer-middle {
        background: rgba(255,255,255,0.01);
    }
    
    .footer-bottom {
        background: rgba(0,0,0,0.3);
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .footer-logo:hover,
    .social-link:hover,
    .footer-links a:hover,
    .footer-contact-info li:hover,
    .newsletter-icon:hover,
    .back-to-top:hover,
    .footer-payment-methods i:hover {
        transform: none !important;
        transition: none !important;
    }
    
    .footer-title::after,
    .footer-links a::after,
    .footer-legal ul li a::after {
        transition: none !important;
    }
    
    .footer-credit i {
        animation: none !important;
    }
    
    .newsletter-message .alert {
        animation: none !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.footer a:focus-visible,
.footer button:focus-visible {
    outline: 2px solid var(--secondary-color, #d4a647);
    outline-offset: 2px;
    border-radius: 4px;
}

.social-link:focus-visible {
    outline: 2px solid var(--secondary-color, #d4a647);
    outline-offset: 3px;
}

@media (prefers-contrast: high) {
    .footer-description,
    .footer-links a,
    .footer-contact-info li span,
    .footer-contact-info li a {
        color: #ffffff !important;
    }
    
    .social-link {
        border: 2px solid #ffffff;
    }
    
    .footer-title {
        color: #ffffff;
    }
    
    .footer-title::after {
        background: #ffffff;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .footer {
        background: #ffffff !important;
        color: #000000 !important;
        border-top: 2px solid #000000;
    }
    
    .footer-top {
        padding: 20px 0 !important;
    }
    
    .footer-middle,
    .footer-bottom {
        display: none !important;
    }
    
    .social-link {
        border: 1px solid #000000 !important;
        background: transparent !important;
        color: #000000 !important;
    }
    
    .footer-title {
        color: #000000 !important;
    }
    
    .footer-title::after {
        background: #000000 !important;
    }
    
    .footer-links a {
        color: #000000 !important;
    }
    
    .footer-links a i {
        display: none !important;
    }
    
    .footer-contact-info li span {
        color: #000000 !important;
    }
    
    .back-to-top {
        display: none !important;
    }
}

/* ============================================
   UTILITY - SCROLLBAR STYLING
   ============================================ */
@media (min-width: 1024px) {
    .footer ::-webkit-scrollbar {
        width: 6px;
    }
    
    .footer ::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
    }
    
    .footer ::-webkit-scrollbar-thumb {
        background: var(--secondary-color, #d4a647);
        border-radius: 3px;
    }
    
    .footer ::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-light, #e8c86a);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }