/* ==========================================================================
   Bruno Rosolini Links Page - Styles
   Premium link page with glassmorphism design
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Cores base */
  --color-bg-primary: #030712;
  --color-bg-secondary: #0a1628;
  --color-text-primary: #ffffff;
  --color-text-secondary: #b0b8c4;
  --color-border-glass: rgba(255, 255, 255, 0.1);
  --color-bg-glass: rgba(255, 255, 255, 0.05);

  /* Gradiente do nome */
  --gradient-name: linear-gradient(135deg, #ffffff 0%, #c5a56d 50%, #ffffff 100%);

  /* Panorama do Investidor */
  --color-panorama-primary: #29a064;
  --color-panorama-dark: #1e7a4d;
  --color-panorama-badge: #34d399;

  /* O Básico que Funciona */
  --color-basico-primary: #0b2c4b;
  --color-basico-secondary: #c5a56d;
  --color-basico-dark: #061a2e;

  /* YouTube */
  --color-youtube-primary: #ff0000;
  --color-youtube-dark: #cc0000;

  /* Espaçamentos */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Border radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-full: 50%;

  /* Transições */
  --transition-default: all 0.3s ease;

  /* Animações */
  --animation-duration: 0.5s;
  --animation-easing: ease-out;
}

/* --------------------------------------------------------------------------
   CSS Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: radial-gradient(ellipse at top center, var(--color-bg-secondary) 0%, var(--color-bg-primary) 70%);
  min-height: 100dvh;
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fallback sólido para contraste do glassmorphism */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-primary);
  z-index: -2;
}

/* --------------------------------------------------------------------------
   Container Principal
   -------------------------------------------------------------------------- */
.container {
  max-width: 95%;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Profile Section
   -------------------------------------------------------------------------- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeInUp 0.6s var(--animation-easing) forwards;
}

.profile__avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  border: 3px solid var(--color-border-glass);
  box-shadow: 0 0 30px rgba(41, 160, 100, 0.3);
  object-fit: cover;
  background: var(--color-bg-glass);
}

.profile__logo {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.profile__logo img {
  max-width: 180px;
  height: auto;
  display: block;
}

.profile__tagline {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 95%;
  line-height: 1.6;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Links Navigation
   -------------------------------------------------------------------------- */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Card Base (Glassmorphism)
   -------------------------------------------------------------------------- */
.card {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(20, 30, 50, 0.9); /* Fallback opaco */
  border: 1px solid var(--color-border-glass);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  transition: var(--transition-default);
  cursor: pointer;
  position: relative;
  overflow: visible;
  opacity: 0;
  animation: fadeInUp var(--animation-duration) var(--animation-easing) forwards;
}

/* Glassmorphism com suporte */
@supports (backdrop-filter: blur(10px)) {
  .card {
    background: var(--color-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Stagger animation delays */
.card:nth-child(1) {
  animation-delay: 0.15s;
}

.card:nth-child(2) {
  animation-delay: 0.25s;
}

.card:nth-child(3) {
  animation-delay: 0.35s;
}

/* --------------------------------------------------------------------------
   Card Logo
   -------------------------------------------------------------------------- */
.card__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Card Content
   -------------------------------------------------------------------------- */
.card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
  min-width: 0;
}

.card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.card__subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Card Arrow
   -------------------------------------------------------------------------- */
.card__arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  flex-shrink: 0;
}

.card:hover .card__arrow {
  transform: translateX(4px);
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Card Panorama (Destaque Premium)
   -------------------------------------------------------------------------- */
.card--panorama {
  background: linear-gradient(135deg, rgba(41, 160, 100, 0.15) 0%, rgba(41, 160, 100, 0.05) 100%);
  border: 1px solid rgba(41, 160, 100, 0.3);
  box-shadow: 0 0 20px rgba(41, 160, 100, 0.1);
}

@supports (backdrop-filter: blur(10px)) {
  .card--panorama {
    background: linear-gradient(135deg, rgba(41, 160, 100, 0.15) 0%, rgba(41, 160, 100, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Badge "Recomendado" */
.card--panorama::before {
  content: "Recomendado";
  position: absolute;
  top: -8px;
  right: 12px;
  background: linear-gradient(135deg, var(--color-panorama-badge), var(--color-panorama-primary));
  color: var(--color-bg-primary);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hover (desktop) */
.card--panorama:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(41, 160, 100, 0.2);
  border-color: rgba(41, 160, 100, 0.5);
}

/* Active (mobile touch feedback) */
.card--panorama:active {
  transform: scale(0.98);
  box-shadow: 0 0 15px rgba(41, 160, 100, 0.3);
}

/* --------------------------------------------------------------------------
   Card Básico que Funciona
   -------------------------------------------------------------------------- */
.card--basico {
  background: linear-gradient(135deg, rgba(11, 44, 75, 0.3) 0%, rgba(11, 44, 75, 0.1) 100%);
  border: 1px solid rgba(197, 165, 109, 0.2);
  box-shadow: 0 0 20px rgba(197, 165, 109, 0.05);
}

@supports (backdrop-filter: blur(10px)) {
  .card--basico {
    background: linear-gradient(135deg, rgba(11, 44, 75, 0.3) 0%, rgba(11, 44, 75, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Hover (desktop) */
.card--basico:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(197, 165, 109, 0.15);
  border-color: rgba(197, 165, 109, 0.4);
}

/* Active (mobile touch feedback) */
.card--basico:active {
  transform: scale(0.98);
  box-shadow: 0 0 15px rgba(197, 165, 109, 0.25);
}

/* --------------------------------------------------------------------------
   Card YouTube
   -------------------------------------------------------------------------- */
.card--youtube {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 0, 0, 0.03) 100%);
  border: 1px solid rgba(255, 0, 0, 0.15);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.05);
}

@supports (backdrop-filter: blur(10px)) {
  .card--youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 0, 0, 0.03) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Hover (desktop) */
.card--youtube:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.3);
}

/* Active (mobile touch feedback) */
.card--youtube:active {
  transform: scale(0.98);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  animation: fadeInUp var(--animation-duration) var(--animation-easing) forwards;
  animation-delay: 0.45s;
}

.footer__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-secondary);
  transition: var(--transition-default);
}

.footer__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

.footer__link:active {
  transform: scale(0.95);
}

.footer__link svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Focus States (Accessibility)
   -------------------------------------------------------------------------- */
.card:focus-visible,
.footer__link:focus-visible {
  outline: 2px solid var(--color-panorama-badge);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Desktop Responsive (>= 480px)
   -------------------------------------------------------------------------- */
@media (min-width: 480px) {
  .container {
    padding: var(--space-xl);
  }

  .profile__avatar {
    width: 100px;
    height: 100px;
  }

  .profile__logo img {
    max-width: 220px;
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion (Accessibility)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
