/**
 * Modern Footer Styles for Arki Child Theme
 *
 * Design Features:
 * - Clean, minimal design with modern spacing
 * - Smooth transitions and hover effects
 * - Improved typography hierarchy
 * - Better responsive behavior
 * - Modern color scheme with proper contrast
 * - Enhanced accessibility
 */

/* ============================================
   FOOTER WRAPPER - Main Container
   ============================================ */

/* Increased specificity to override inline styles */
footer .arki-footer-wrapper,
.arki-footer-wrapper.arki-footer-wrapper {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    padding-top: 90px !important;
    padding-bottom: 60px !important;
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px !important;
}

/* Override any existing color styles */
footer .arki-footer-wrapper *,
.arki-footer-wrapper.arki-footer-wrapper * {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Subtle animated background pattern */
.arki-footer-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.arki-footer-wrapper .arki-footer-container {
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER COLUMNS - Layout & Spacing
   ============================================ */

.arki-footer-column {
    margin-bottom: 50px;
}

/* Remove outdated column dividers and implement modern spacing */
.arki-footer-wrapper.arki-with-column-divider .arki-footer-column {
    border: none !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    padding-bottom: 0 !important;
    margin-bottom: 50px !important;
    position: relative;
}

/* Modern vertical separator - subtle and elegant */
.arki-footer-wrapper.arki-with-column-divider .arki-footer-column:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
    opacity: 0.6;
}

/* ============================================
   WIDGET TITLES - Modern Typography
   ============================================ */

.arki-footer-wrapper .arki-widget-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 30px !important;
    color: #ffffff !important;
    position: relative;
    padding-bottom: 15px;
}

/* Modern underline effect */
.arki-footer-wrapper .arki-widget-title::after {
    content: "" !important;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #00d4ff 0%, #0099cc 100%) !important;
    border: none !important;
    border-radius: 2px;
    margin-top: 0 !important;
}

.arki-footer-wrapper .arki-widget-title:hover::after {
    width: 70px !important;
}

/* Remove old divider style */
.arki-footer-wrapper .arki-widget-title.arki-with-divider::after {
    display: block !important;
}

/* ============================================
   WIDGETS - Enhanced Styling
   ============================================ */

.arki-footer-wrapper .widget {
    margin-bottom: 45px !important;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.arki-footer-wrapper .widget:last-child {
    margin-bottom: 0 !important;
}

/* Widget text and links */
.arki-footer-wrapper .widget,
.arki-footer-wrapper .widget p,
.arki-footer-wrapper .widget li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.8;
}

.arki-footer-wrapper .widget a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.arki-footer-wrapper .widget a:hover {
    color: #00d4ff;
}

/* Lists - Keep default styling */

/* ============================================
   COPYRIGHT SECTION - Modern Design
   ============================================ */

.arki-copyright-wrapper {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
    margin-top: 40px;
}

.arki-copyright-container {
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    font-size: 14px;
}

.arki-copyright-text {
    text-align: center !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.6;
}

.arki-copyright-text a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.arki-copyright-text a:hover {
    color: #00eaff;
    text-decoration: underline;
}

.arki-copyright-left {
    float: left;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.arki-copyright-right {
    float: right;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.arki-copyright-left a,
.arki-copyright-right a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.arki-copyright-left a:hover,
.arki-copyright-right a:hover {
    color: #00eaff;
}

/* ============================================
   BACK TO TOP BUTTON - Modern Design
   ============================================ */

.arki-footer-back-to-top-button {
    position: fixed !important;
    z-index: 999 !important;
    right: 30px !important;
    bottom: 30px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    width: 50px !important;
    height: 50px !important;
    text-align: center !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 0 !important;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3) !important;
    pointer-events: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.arki-footer-back-to-top-button.arki-scrolled {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.arki-footer-back-to-top-button:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.5) !important;
    background: linear-gradient(135deg, #00eaff 0%, #00b8d4 100%) !important;
}

.arki-footer-back-to-top-button:active {
    transform: translateY(-2px) !important;
}

/* ============================================
   SOCIAL ICONS - Modern Style
   ============================================ */

.arki-footer-wrapper .gdlr-core-social-network-item {
    margin-bottom: 0 !important;
}

.arki-footer-wrapper .gdlr-core-social-network-item a {
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
    font-size: 18px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    margin-right: 12px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.arki-footer-wrapper .gdlr-core-social-network-item a:hover {
    background: #00d4ff !important;
    border-color: #00d4ff !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4) !important;
}

/* ============================================
   FORM INPUTS - Modern Design
   ============================================ */

.arki-footer-wrapper input[type="text"],
.arki-footer-wrapper input[type="email"],
.arki-footer-wrapper input[type="search"],
.arki-footer-wrapper textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.arki-footer-wrapper input[type="text"]:focus,
.arki-footer-wrapper input[type="email"]:focus,
.arki-footer-wrapper input[type="search"]:focus,
.arki-footer-wrapper textarea:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #00d4ff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1) !important;
}

.arki-footer-wrapper input::placeholder,
.arki-footer-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Modern submit button */
.arki-footer-wrapper input[type="submit"],
.arki-footer-wrapper button[type="submit"],
.arki-footer-wrapper .widget button {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3) !important;
}

.arki-footer-wrapper input[type="submit"]:hover,
.arki-footer-wrapper button[type="submit"]:hover,
.arki-footer-wrapper .widget button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5) !important;
    background: linear-gradient(135deg, #00eaff 0%, #00b8d4 100%) !important;
}

/* ============================================
   SEARCH WIDGET - Modern Style
   ============================================ */

.arki-footer-wrapper .widget_search .search-form {
    position: relative;
    display: flex;
    gap: 10px;
}

.arki-footer-wrapper .widget_search .search-field {
    flex: 1;
}

.arki-footer-wrapper .widget_search .search-submit {
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile & Tablet
   ============================================ */

@media only screen and (max-width: 1024px) {
    .arki-footer-wrapper {
        padding-top: 70px !important;
        padding-bottom: 50px !important;
    }

    .arki-footer-column {
        margin-bottom: 45px;
    }
}

@media only screen and (max-width: 767px) {
    .arki-footer-wrapper {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }

    .arki-footer-column {
        margin-bottom: 40px !important;
    }

    /* Remove column dividers on mobile */
    .arki-footer-wrapper.arki-with-column-divider .arki-footer-column::before {
        display: none !important;
    }

    .arki-footer-wrapper.arki-with-column-divider .arki-footer-column {
        padding: 0 15px !important;
        border: none !important;
    }

    .arki-footer-wrapper.arki-with-column-divider .arki-footer-column:last-child {
        margin-bottom: 20px !important;
    }

    /* Stack copyright sections on mobile */
    .arki-copyright-left,
    .arki-copyright-right {
        float: none !important;
        text-align: center !important;
        margin-bottom: 10px;
    }

    .arki-copyright-right {
        margin-bottom: 0;
    }

    /* Adjust back to top button on mobile */
    .arki-footer-back-to-top-button {
        right: 20px !important;
        bottom: 20px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }

    /* Social icons - smaller on mobile */
    .arki-footer-wrapper .gdlr-core-social-network-item a {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 16px !important;
        margin-right: 10px !important;
    }
}

@media only screen and (max-width: 419px) {
    .arki-footer-wrapper {
        padding-top: 50px !important;
        padding-bottom: 30px !important;
    }

    .arki-footer-wrapper .arki-widget-title {
        font-size: 14px !important;
        letter-spacing: 1.5px !important;
    }

    .arki-copyright-wrapper {
        padding: 25px 0;
    }

    .arki-copyright-text {
        font-size: 13px !important;
    }
}

/* ============================================
   FIXED FOOTER SUPPORT
   ============================================ */

.arki-fixed-footer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10 !important;
}

body.arki-boxed .arki-fixed-footer .arki-footer-wrapper,
body.arki-boxed .arki-fixed-footer .arki-copyright-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ============================================
   CALENDAR WIDGET - Modern Style
   ============================================ */

.arki-footer-wrapper .widget_calendar table {
    border-collapse: collapse;
    width: 100%;
}

.arki-footer-wrapper .widget_calendar table thead th {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 10px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.arki-footer-wrapper .widget_calendar table tbody td {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease;
}

.arki-footer-wrapper .widget_calendar table tbody td:hover {
    background: rgba(0, 212, 255, 0.2) !important;
}

.arki-footer-wrapper .widget_calendar table tbody td a {
    color: #00d4ff;
    font-weight: 600;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.arki-footer-wrapper a:focus,
.arki-footer-wrapper button:focus,
.arki-footer-wrapper input:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .arki-footer-wrapper {
        border-top: 3px solid #00d4ff;
    }

    .arki-footer-wrapper .widget a {
        text-decoration: underline;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .arki-footer-wrapper *,
    .arki-footer-back-to-top-button {
        animation: none !important;
        transition: none !important;
    }
}
