/* ============================================
   LINK IN BIO - MAORI BLUE
   Identidade Visual Consistente
   ============================================ */

/* ============================================
   RESET & VARIÁVEIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - Inspiradas na logo colorida */
    --primary-color: #00C9DB;      /* Azul turquesa vibrante */
    --secondary-color: #FF6B9D;    /* Rosa vibrante */
    --accent-color: #FFD93D;       /* Amarelo alegre */
    --green-color: #6BCF7F;        /* Verde fresco */
    --orange-color: #FF9F57;       /* Laranja vibrante */
    --purple-color: #B388FF;       /* Roxo suave */
    
    /* Cores de fundo */
    --bg-gradient-start: #F0FDFF;  /* Azul clarinho */
    --bg-gradient-end: #FFF8FA;    /* Rosa clarinho */
    
    /* Cores de texto */
    --text-dark: #2C3E50;
    --text-light: #6B7280;
    --text-white: #FFFFFF;
    
    /* Cores dos cards */
    --card-bg: #FFFFFF;
    --card-shadow: rgba(0, 201, 219, 0.1);
    --card-hover-shadow: rgba(0, 201, 219, 0.25);
    
    /* Cores especiais */
    --success-color: #2ECC71;
    --warning-color: #F39C12;
    
    /* Redes Sociais */
    --instagram-gradient: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    --youtube-color: #FF0000;
    --tiktok-gradient: linear-gradient(135deg, #00F2EA, #FF0050);
    --facebook-color: #1877F2;
    
    /* Fontes */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Fredoka', cursive;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Bordas */
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 20px;
    --border-radius-full: 50%;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   BODY & LAYOUT
   ============================================ */
body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 201, 219, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.15) 0%, transparent 70%);
}

.circle-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -15%;
    animation-delay: 5s;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.12) 0%, transparent 70%);
}

.circle-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 30%;
    animation-delay: 10s;
    background: radial-gradient(circle, rgba(107, 207, 127, 0.12) 0%, transparent 70%);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, 40px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
        opacity: 0.6;
    }
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================
   PROFILE SECTION
   ============================================ */
.profile-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.6s ease;
}

.profile-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 5px;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    transition: transform var(--transition-normal);
    overflow: hidden;
}

.profile-image-wrapper:hover {
    transform: scale(1.05) rotate(5deg);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-full);
    object-fit: cover;
    background: white;
    padding: 15px;
}

.profile-name {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   LINKS SECTION
   ============================================ */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.link-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--card-bg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 6px 20px var(--card-shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.2s; }
.link-item:nth-child(3) { animation-delay: 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.4s; }
.link-item:nth-child(5) { animation-delay: 0.5s; }

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.link-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--card-hover-shadow);
}

.link-item:hover::before {
    opacity: 0.08;
}

.link-item:active {
    transform: translateY(-4px);
}

/* Link Featured (Destaque) */
.link-item.featured {
    background: linear-gradient(135deg, rgba(0, 201, 219, 0.08), rgba(255, 107, 157, 0.08));
    border: 2px solid var(--primary-color);
}

.link-item.featured::before {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* YouTube Card Special Style */
.link-item.youtube-card {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.08), rgba(255, 107, 157, 0.08));
    border: 2px solid var(--youtube-color);
}

.link-item.youtube-card .link-icon-youtube {
    background: var(--youtube-color);
}

.link-item.youtube-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.3);
}

/* Coming Soon */
.link-item.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.link-icon {
    width: 100px;
    height: 100px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-md);
    color: var(--text-white);
    transition: transform var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.link-icon.link-icon-image {
    background: white;
    padding: 0;
    overflow: hidden;
}

.link-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.link-item:hover .link-icon {
    transform: rotate(5deg) scale(1.08);
}

.link-content {
    flex: 1;
    position: relative;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.link-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.badge-coming-soon {
    display: inline-block;
    background: var(--warning-color);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.link-arrow {
    color: var(--primary-color);
    transition: transform var(--transition-normal);
    min-width: 20px;
}

.link-item:hover .link-arrow {
    transform: translateX(5px);
}

/* ============================================
   SOCIAL SECTION
   ============================================ */
.social-section {
    width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease 0.6s both;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: var(--border-radius-full);
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: all var(--transition-normal);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--text-white);
}

.social-link:active {
    transform: translateY(-2px) scale(1.05);
}

/* Instagram */
.social-instagram:hover {
    background: var(--instagram-gradient);
    box-shadow: 0 8px 25px rgba(221, 42, 123, 0.4);
}

/* YouTube */
.social-youtube {
    color: var(--youtube-color);
}

.social-youtube:hover {
    background: var(--youtube-color);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

/* TikTok */
.social-tiktok:hover {
    background: var(--tiktok-gradient);
    box-shadow: 0 8px 25px rgba(0, 242, 234, 0.4);
}

/* Facebook */
.social-facebook {
    color: var(--facebook-color);
}

.social-facebook:hover {
    background: var(--facebook-color);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    width: 100%;
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    animation: fadeIn 0.6s ease 0.7s both;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-links span {
    color: var(--text-light);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-bio {
        font-size: 0.9rem;
    }
    
    .link-title {
        font-size: 0.95rem;
    }
    
    .link-description {
        font-size: 0.8rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .profile-image-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 1.3rem;
    }
    
    .profile-bio {
        font-size: 0.85rem;
    }
    
    .link-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .link-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .link-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .link-title {
        font-size: 0.9rem;
    }
    
    .link-description {
        font-size: 0.75rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .container {
        padding: var(--spacing-sm);
    }
    
    .profile-image-wrapper {
        width: 90px;
        height: 90px;
    }
    
    .profile-name {
        font-size: 1.2rem;
    }
    
    .link-item {
        gap: 0.75rem;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

/* ============================================
   DARK MODE SUPPORT (Opcional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Você pode adicionar suporte a dark mode aqui se desejar */
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .animated-background {
        display: none;
    }
    
    .link-item {
        break-inside: avoid;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

/* Focus visível para navegação por teclado */
a:focus,
button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Redução de movimento para usuários com preferência */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

