/**
 * Footer Widgets Styles
 * Özel footer widget'ları için stiller
 * 
 * @package Mupba
 * @since 1.0.0
 */

/* ==========================================================================
   ENHANCED WIDGET BASE
   ========================================================================== */

.enhanced-widget {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.6s ease;
}

.enhanced-widget:hover::before {
    left: 100%;
}

.enhanced-widget:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ==========================================================================
   WIDGET LOADING ANIMATION
   ========================================================================== */

.enhanced-widget {
    animation: widgetFadeIn 0.6s ease-out;
}

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

/* Staggered animation for multiple widgets */
.enhanced-widget:nth-child(1) { animation-delay: 0.1s; }
.enhanced-widget:nth-child(2) { animation-delay: 0.2s; }
.enhanced-widget:nth-child(3) { animation-delay: 0.3s; }
.enhanced-widget:nth-child(4) { animation-delay: 0.4s; }

/* ==========================================================================
   CONTACT INFO WIDGET - ADVANCED
   ========================================================================== */

.contact-info-widget {
    position: relative;
}

.contact-info-widget::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--mupba-orange-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.contact-item {
    position: relative;
    padding: 15px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--mupba-orange-primary);
    border-radius: 2px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-item:hover {
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(255,107,53,0.1), transparent);
    border-radius: 8px;
}

.contact-icon {
    position: relative;
    z-index: 2;
}

.contact-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: rgba(255,107,53,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon::after {
    transform: translate(-50%, -50%) scale(1);
}

.contact-text {
    position: relative;
    z-index: 2;
}

/* Special effects for different contact types */
.contact-phone:hover .contact-icon {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.contact-email:hover .contact-icon {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.contact-address:hover .contact-icon {
    animation: spin 0.8s ease-in-out;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   SOCIAL MEDIA WIDGET - ADVANCED
   ========================================================================== */

.social-media-widget {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,107,53,0.05));
    border-radius: 15px;
    text-align: center;
}

.social-media-widget::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--mupba-orange-primary), transparent, var(--mupba-orange-primary));
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-media-widget:hover::before {
    opacity: 1;
}

.social-media-widget .mupba-social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-media-widget .mupba-social-icon {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-media-widget .mupba-social-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.social-media-widget .mupba-social-icon:hover::after {
    width: 100%;
    height: 100%;
}

.social-media-widget .mupba-social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.2),
        0 0 20px rgba(255,107,53,0.3);
}

/* Platform specific hover colors */
.social-media-widget .platform-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.social-media-widget .platform-instagram:hover {
    background: linear-gradient(45deg, #E4405F, #FCAF45, #833AB4);
    border-color: #E4405F;
}

.social-media-widget .platform-twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.social-media-widget .platform-linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
}

.social-media-widget .platform-youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
}

.social-media-widget .platform-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

/* ==========================================================================
   NEWSLETTER WIDGET - ADVANCED
   ========================================================================== */

.newsletter-widget {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.newsletter-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mupba-orange-primary), var(--mupba-orange-accent));
}

.newsletter-widget::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.newsletter-description {
    position: relative;
    z-index: 2;
}

.newsletter-form {
    position: relative;
    z-index: 2;
}

.newsletter-input-group {
    position: relative;
}

.newsletter-form input[type="email"] {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-form input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--mupba-orange-primary);
    transform: translateY(-2px);
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.1),
        0 0 0 4px rgba(255,107,53,0.2);
}

.newsletter-submit {
    position: relative;
    background: linear-gradient(135deg, var(--mupba-orange-primary), var(--mupba-orange-accent));
    overflow: hidden;
}

.newsletter-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.newsletter-submit:hover::before {
    left: 100%;
}

.newsletter-submit:hover {
    background: linear-gradient(135deg, var(--mupba-orange-accent), var(--mupba-orange-primary));
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

.newsletter-submit:active {
    transform: translateY(1px);
}

/* Loading state */
.newsletter-form.loading .newsletter-submit {
    pointer-events: none;
    opacity: 0.7;
}

.newsletter-form.loading .newsletter-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   RECENT POSTS WIDGET - ADVANCED
   ========================================================================== */

.recent-posts-widget {
    position: relative;
}

.recent-post-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recent-post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mupba-orange-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.recent-post-item:hover::before {
    transform: scaleY(1);
}

.recent-post-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.recent-post-thumbnail {
    position: relative;
    overflow: hidden;
}

.recent-post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.8), rgba(255,107,53,0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recent-post-item:hover .recent-post-thumbnail::after {
    opacity: 1;
}

.recent-post-title a {
    position: relative;
    display: inline-block;
}

.recent-post-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mupba-orange-primary);
    transition: width 0.3s ease;
}

.recent-post-title a:hover::after {
    width: 100%;
}

.recent-post-date {
    position: relative;
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255,107,53,0.2);
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   BUSINESS HOURS WIDGET - ADVANCED
   ========================================================================== */

.business-hours-widget {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    backdrop-filter: blur(10px);
}

.business-hours-widget::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    opacity: 0.1;
    animation: tick 2s ease-in-out infinite;
}

@keyframes tick {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.business-hours-list {
    position: relative;
    z-index: 2;
}

.business-hours-day {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-hours-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.1), transparent);
    transition: left 0.5s ease;
}

.business-hours-day:hover::before {
    left: 100%;
}

.business-hours-day:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.business-hours-today {
    background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(255,107,53,0.1));
    border: 1px solid rgba(255,107,53,0.3);
    animation: todayGlow 2s ease-in-out infinite alternate;
}

@keyframes todayGlow {
    from { box-shadow: 0 0 5px rgba(255,107,53,0.3); }
    to { box-shadow: 0 0 15px rgba(255,107,53,0.5); }
}

.business-hours-today .day-name {
    color: var(--mupba-orange-primary);
    font-weight: 600;
}

.business-hours-today .day-name::after {
    content: ' (Bugün)';
    font-size: 11px;
    opacity: 0.8;
}

.day-hours {
    position: relative;
}

.day-hours:empty::after {
    content: 'Kapalı';
    color: #ff6b6b;
    font-style: italic;
}

/* ==========================================================================
   FOOTER BOTTOM & COPYRIGHT WIDGETS
   ========================================================================== */

.footer-bottom-widget {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    border-top: 2px solid rgba(255,107,53,0.3);
}

.footer-bottom-title {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--mupba-orange-primary);
}

.footer-copyright-widget {
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    opacity: 0.8;
}

.copyright-title {
    font-weight: 600;
    color: var(--mupba-orange-primary);
}

/* ==========================================================================
   WIDGET INTERACTIONS
   ========================================================================== */

/* Focus states */
.enhanced-widget:focus-within {
    outline: 2px solid var(--mupba-orange-primary);
    outline-offset: 4px;
}

/* Smooth scrolling for anchor links in widgets */
.enhanced-widget a[href^="#"] {
    scroll-behavior: smooth;
}

/* Loading skeleton for widgets */
.widget-loading {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

@media (max-width: 768px) {
    .enhanced-widget {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input[type="email"] {
        text-align: center;
    }
    
    .recent-post-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .recent-post-thumbnail {
        align-self: center;
        margin-bottom: 10px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .social-media-widget .mupba-social-icon {
        width: 35px;
        height: 35px;
    }
    
    .business-hours-day {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .enhanced-widget {
        padding: 15px 10px;
        border-radius: 8px;
    }
    
    .newsletter-widget {
        padding: 15px;
    }
    
    .business-hours-widget {
        padding: 15px;
    }
    
    .social-media-widget {
        padding: 15px;
    }
    
    .social-media-widget .mupba-social-icon {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .enhanced-widget {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .newsletter-form input[type="email"] {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .newsletter-form input[type="email"]::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
}

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

@media print {
    .enhanced-widget {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .newsletter-widget,
    .social-media-widget {
        display: none !important;
    }
    
    .contact-info-widget,
    .business-hours-widget {
        background: white !important;
        color: black !important;
    }
    
    .recent-posts-widget a {
        color: black !important;
        text-decoration: underline !important;
    }
}
