/* --- style.css --- */

/* 1. Definições Padrão (Variáveis) */
:root {
    --bg-color: #f0f2f5;
    --text-color: #333;
    --btn-bg: #fff;
    --btn-text: #000;
    --btn-border: none;
    --btn-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 2. Os Temas */

/* Clássico (Verde Linktree) */
.theme-classic {
    --bg-color: linear-gradient(135deg, #39E09B 0%, #000 100%);
    --text-color: #fff;
    --btn-bg: rgba(255, 255, 255, 0.9);
    --btn-text: #000;
}

/* Oceano (Azul Profundo) */
.theme-ocean {
    --bg-color: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
    --text-color: #fff;
    --btn-bg: rgba(0, 0, 0, 0.3);
    --btn-text: #fff;
    --btn-border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Sunset (Laranja/Roxo) */
.theme-sunset {
    --bg-color: linear-gradient(to right, #ff512f, #dd2476);
    --text-color: #fff;
    --btn-bg: #fff;
    --btn-text: #dd2476;
}

/* Dark Mode (Minimalista) */
.theme-dark {
    --bg-color: #111;
    --text-color: #eee;
    --btn-bg: #222;
    --btn-text: #eee;
    --btn-border: 1px solid #333;
}

/* Neve (Claro e Limpo) */
.theme-snow {
    --bg-color: #e0eafc;
    --text-color: #333;
    --btn-bg: #fff;
    --btn-text: #2c3e50;
    --btn-border: 2px solid #2c3e50;
}

/* 3. Aplicação das Variáveis no Layout */
body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Botões dos Links (Público) */
.link-btn-public {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 30px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: var(--btn-border);
    box-shadow: var(--btn-shadow);
    text-decoration: none;
    font-weight: bold;
    display: block;
    text-align: center;
    transition: transform 0.2s;
    box-sizing: border-box;
}

.link-btn-public:hover {
    transform: scale(1.02);
}

/* Profile Image */
.profile-img {
    width: 90px;
    height: 90px;
    background: #fff;
    color: #333;
    /* Sempre escuro para contraste */
    border-radius: 50%;
    margin: 30px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

/* Global Reset */
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
}

/* Custom User Background */
.user-bg-custom {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin-top: 25px;
    min-height: 80vh;
}

@media (max-width: 600px) {
    .user-bg-custom {
        border-radius: 0;
        margin-top: 0;
        min-height: 100vh;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
        padding: 20px;
        /* Reduced padding for mobile */
    }
}


/* Dashboard utilities */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.delete-btn {
    background: #ff4444;
    color: white;
}

/* Section Header */
.section-header {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    opacity: 0.8;
}

/* Media Kit Button on Profile */
.btn-mediakit {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    /* Subtle background */
    color: inherit;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-mediakit:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Dark Theme Adjustments */
.link-card {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

input[type="text"],
input[type="file"],
input[type="color"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    background: #39E09B;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Animação de Tchau (Wave) */
@keyframes wave-animation {
    0% {
        transform: rotate(0deg) scale(1);
    }

    20% {
        transform: rotate(-15deg) scale(1.1);
    }

    /* Inclina para esquerda e aumenta */
    40% {
        transform: rotate(10deg) scale(1.1);
    }

    /* Inclina para direita */
    60% {
        transform: rotate(-15deg) scale(1.1);
    }

    /* Esquerda de novo */
    80% {
        transform: rotate(10deg) scale(1.1);
    }

    /* Direita de novo */
    100% {
        transform: rotate(0deg) scale(1);
    }

    /* Volta ao normal */
}

/* Classe que aplica a animação */
.dar-tchau {
    animation: wave-animation 1.5s ease-in-out;
    animation-delay: 0.5s;
    /* Espera meio segundo antes de começar */
    transform-origin: bottom center;
    /* O movimento vem da base */
}