/* ===== CSS Variables ===== */
:root {
    /* Background gradient colors */
    --gradient-top: #4A9FD4;
    --gradient-bottom: #E8C87A;

    /* Coin colors */
    --coin-gold: #FFD700;
    --coin-orange: #FFA500;
    --coin-border: #B8860B;

    /* Card gradients */
    --card-masculino-start: #1E88A8;
    --card-masculino-end: #0D5C6E;
    --card-feminino-start: #E91E8C;
    --card-feminino-end: #C2185B;
    --card-geral-start: #1A237E;
    --card-geral-end: #0D1642;

    /* Text colors */
    --text-dark: #333333;
    --text-white: #FFFFFF;
    --text-highlight: #FF9800;

    /* Badge */
    --badge-start: #FF9800;
    --badge-end: #F57C00;

    /* Spacing */
    --container-padding: 20px;
    --card-gap: 16px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--gradient-top) 0%, var(--gradient-bottom) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* ===== Container ===== */
.container {
    max-width: 420px;
    margin: 0 auto;
    padding: var(--container-padding);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ===== Floating Coins ===== */
.coins-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.coin {
    position: absolute;
    opacity: 0.85;
    animation: float 6s ease-in-out infinite;
}

.coin:nth-child(1) { left: 5%; top: 8%; animation-delay: 0s; }
.coin:nth-child(2) { right: 6%; top: 12%; animation-delay: 1s; }
.coin:nth-child(3) { left: 8%; top: 35%; animation-delay: 2s; }
.coin:nth-child(4) { right: 4%; top: 30%; animation-delay: 0.5s; }
.coin:nth-child(5) { left: 12%; bottom: 35%; animation-delay: 1.5s; }
.coin:nth-child(6) { right: 10%; bottom: 30%; animation-delay: 2.5s; }
.coin:nth-child(7) { left: 3%; bottom: 15%; animation-delay: 3s; }
.coin:nth-child(8) { right: 5%; top: 55%; animation-delay: 0.8s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(5deg);
    }
    50% {
        transform: translateY(-6px) rotate(-3deg);
    }
    75% {
        transform: translateY(-18px) rotate(3deg);
    }
}

/* ===== Header ===== */
.header {
    text-align: center;
    margin-bottom: 28px;
    padding-top: 20px;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.avatar-frame {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.avatar-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.verified-badge {
    position: absolute;
    bottom: -9px;
    right: -11px;
    width: 51px;
    height: 51px;
    object-fit: contain;
}

.subtitle-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--badge-start), var(--badge-end));
    color: white;
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    margin-bottom: 18px;
}

.description {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 340px;
    margin: 0 auto;
}

.description strong {
    color: var(--text-highlight);
}

/* ===== Link Cards (Professional Banner Style) ===== */
.link-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

/* Banner Card Base */
.card-banner {
    display: block;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    background-size: cover;
    background-position: center;
}

.card-banner:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card-banner:active {
    transform: translateY(-2px) scale(1.01);
}

/* Card Background Images */
.card-banner.card-masculino {
    background-image: url('../assets/images/banner-botao-masc.png');
    background-color: #A8D4E6;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.card-banner.card-feminino {
    background-image: url('../assets/images/banner-botao-fem.png');
    background-color: #F5C6C6;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.card-banner.card-geral {
    background-image: url('../assets/images/banner-botao-telegram.png');
    background-color: #5BC0D8;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Overlay for readability */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.card-masculino .card-overlay {
    background: radial-gradient(ellipse at center, rgba(70, 130, 160, 0.7) 0%, rgba(70, 130, 160, 0.4) 100%);
}

.card-feminino .card-overlay {
    background: radial-gradient(ellipse at center, rgba(200, 140, 140, 0.7) 0%, rgba(200, 140, 140, 0.4) 100%);
}

.card-geral .card-overlay {
    background: radial-gradient(ellipse at center, rgba(60, 160, 180, 0.6) 0%, rgba(60, 160, 180, 0.35) 100%);
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    min-height: 140px;
    gap: 14px;
}

/* Card Title */
.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Card Button */
.card-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFB300 0%, #FF8F00 100%);
    color: #1a1a1a;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-banner:hover .card-btn {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

/* ===== Social Section ===== */
.social-section {
    text-align: center;
    margin-bottom: 24px;
}

.social-title {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 14px;
    font-weight: 500;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-icons a {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #555;
}

.social-icons a:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

/* ===== Footer ===== */
.footer {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
}

/* ===== Responsive Design ===== */

/* Larger phones */
@media (min-width: 480px) {
    .container {
        padding: 32px;
    }

    .avatar-container {
        width: 110px;
        height: 110px;
    }

    .avatar-frame {
        width: 110px;
        height: 110px;
    }

    .verified-badge {
        width: 53px;
        height: 53px;
    }

    .subtitle-badge {
        font-size: 0.85rem;
        padding: 12px 32px;
    }

    .card-banner {
        min-height: 150px;
    }

    .card-content {
        min-height: 150px;
        padding: 28px 24px;
    }

    .card-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .card-btn {
        padding: 14px 32px;
        font-size: 0.85rem;
    }
}

/* Tablets and Desktop - Full screen like mobile */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 40px 48px;
    }

    .avatar-container {
        width: 120px;
        height: 120px;
    }

    .avatar-frame {
        width: 120px;
        height: 120px;
    }

    .verified-badge {
        width: 55px;
        height: 55px;
    }

    .subtitle-badge {
        font-size: 0.9rem;
        padding: 14px 36px;
    }

    .description {
        font-size: 1.05rem;
        max-width: 450px;
    }

    .card-banner {
        min-height: 160px;
        border-radius: 24px;
    }

    .card-content {
        min-height: 160px;
        padding: 32px 28px;
        gap: 16px;
    }

    .card-title {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .card-btn {
        padding: 16px 36px;
        font-size: 0.9rem;
    }

    .social-icons a {
        width: 52px;
        height: 52px;
    }

    .social-icons svg {
        width: 26px;
        height: 26px;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    .coin {
        animation: none;
    }

    .card-banner,
    .social-icons a {
        transition: none;
    }
}

/* Focus styles for accessibility */
.card-banner:focus,
.social-icons a:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}
