/* ================== Mobile Footer Styles ================== */

/* Mobile footer container */
.uv-footer-mobile {
  position: relative;
  background: var(--uv-header-bg-light);
  border: 1px solid var(--uv-header-border-light);
  border-radius: 0;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  box-shadow: 0 8px 32px rgba(0,0,0,.08), inset 0 1px rgba(255,255,255,.25);
  color: var(--uv-text);
  box-sizing: border-box;
  margin: 40px 0 0 0;
}

/* Dark mobile footer */
:root.uv-dark .uv-footer-mobile {
  background: var(--uv-header-bg-dark);
  border-color: var(--uv-header-border-dark);
  box-shadow: 0 8px 32px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.06);
}

/* Mobile footer styles - только для мобильных устройств */
@media (max-width: 768px) {
  /* Footer content */
  .uv-footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px 20px 16px;
  }

  /* Верхняя строка: слева контакты, справа навигация */
  .uv-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 0;
  }

  /* Средняя строка: социальные иконки по центру */
  .uv-footer-middle {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Нижняя строка: CTA кнопка по центру */
  .uv-footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Footer navigation - ссылки слева */
  .uv-footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    flex-shrink: 0;
    padding-left: 0;
    position: relative;
    left: 0;
  }

  .uv-footer-nav a {
    color: var(--uv-text);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    margin-left: 0;
    padding-left: 0;
  }

  .uv-footer-nav a:hover {
    color: var(--uv-primary);
  }

  /* Footer contact section - слева в ряд */
  .uv-footer-contact {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    margin-right: auto;
    flex-shrink: 0;
  }
  
  .uv-footer-contact p {
    margin: 0;
    font-size: 14px;
    color: var(--uv-text);
    text-align: left;
    white-space: nowrap;
  }
  
  .uv-footer-contact p:first-child {
    font-weight: 600;
  }

  /* Footer phone - в средней строке */
  .uv-footer-phone {
    text-align: center;
    margin-right: 20px;
  }

  .uv-footer-phone .site-phone {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--uv-text);
  }

  .uv-footer-phone .site-phone a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .uv-footer-phone .site-phone a:hover {
    color: var(--uv-primary);
  }

  /* Footer socials - в центре */
  .uv-footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }

  .uv-footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .uv-footer-social-icon:hover {
    transform: translateY(-2px);
    background: rgba(124, 58, 237, 0.2);
  }

  .uv-footer-social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  /* Footer CTA - внизу по центру */
  .uv-footer-cta {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .uv-footer-cta .uv-cta-outline {
    display: inline-block;
    padding: 12px 24px;
    background: var(--uv-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
  }

  .uv-footer-cta .uv-cta-outline:hover {
    background: var(--uv-primary-hover);
    transform: translateY(-2px);
  }

  /* Small mobile screens */
  @media (max-width: 480px) {
    .uv-footer-content {
      gap: 16px;
      padding: 16px 12px 16px 12px;
    }
    
    .uv-footer-top {
      gap: 12px;
      justify-content: space-between;
    }
    
    .uv-footer-nav {
      gap: 6px;
    }
    
    .uv-footer-nav a {
      font-size: 13px;
      padding: 3px 0;
    }
    
    .uv-footer-contact {
      gap: 8px;
      flex-direction: row;
    }
    
    .uv-footer-contact p {
      font-size: 13px;
    }
    
    .uv-footer-phone .site-phone {
      font-size: 14px;
    }
    
    .uv-footer-socials {
      gap: 10px;
    }
    
    .uv-footer-social-icon {
      width: 36px;
      height: 36px;
    }
    
    .uv-footer-social-icon img {
      width: 20px;
      height: 20px;
    }
    
    .uv-footer-cta .uv-cta-outline {
      padding: 10px 20px;
      font-size: 13px;
    }
  }

  /* Very small screens */
  @media (max-width: 360px) {
    .uv-footer-content {
      gap: 14px;
      padding: 12px 8px 12px 8px;
    }
    
    .uv-footer-top {
      gap: 8px;
      justify-content: space-between;
    }
    
    .uv-footer-nav {
      gap: 4px;
    }
    
    .uv-footer-nav a {
      font-size: 12px;
      padding: 2px 0;
    }
    
    .uv-footer-contact {
      gap: 6px;
      flex-direction: row;
    }
    
    .uv-footer-contact p {
      font-size: 12px;
    }
    
    .uv-footer-phone .site-phone {
      font-size: 13px;
    }
    
    .uv-footer-social-icon {
      width: 32px;
      height: 32px;
    }
    
    .uv-footer-social-icon img {
      width: 18px;
      height: 18px;
    }
    
    .uv-footer-cta .uv-cta-outline {
      padding: 8px 16px;
      font-size: 12px;
    }
  }

  /* Экстремально маленькие экраны (iPhone SE, старые Android) */
  @media (max-width: 320px) {
    .uv-footer-content {
      gap: 12px;
      padding: 10px 6px 10px 6px;
    }
    
    .uv-footer-top {
      gap: 6px;
      justify-content: space-between;
    }
    
    .uv-footer-nav {
      gap: 3px;
    }
    
    .uv-footer-nav a {
      font-size: 11px;
      padding: 1px 0;
    }
    
    .uv-footer-contact {
      gap: 4px;
      flex-direction: row;
    }
    
    .uv-footer-contact p {
      font-size: 11px;
    }
    
    .uv-footer-phone .site-phone {
      font-size: 11px;
    }
    
    .uv-footer-phone .uv-icon {
      width: 16px;
      height: 16px;
    }
    
    .uv-footer-cta .uv-cta-outline {
      padding: 6px 12px;
      font-size: 11px;
    }
  }
}
