/* Estilos gerais para o sistema de cartões digitais */

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos do cartão */
.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-header {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 15px;
}

.bio {
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    margin: 5px;
    text-align: center;
    cursor: pointer;
    border: none;
    width: 100%;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #4a6cf7;
    color: #fff;
}

.btn-primary:hover {
    background-color: #3a5bd9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

.save-contact {
    margin-bottom: 20px;
}

/* Botões de contato */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-contact {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    background-color: #f5f5f5;
    color: #333;
}

.btn-contact:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
}

.btn-contact.whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-contact.whatsapp:hover {
    background-color: #20bd5a;
}

/* Botões de redes sociais */
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-social {
    flex: 0 0 calc(33.333% - 10px);
    padding: 12px 10px;
    margin: 5px;
    color: #fff;
    font-size: 14px;
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.facebook {
    background-color: #3b5998;
}

.linkedin {
    background-color: #0077b5;
}

.twitter {
    background-color: #1da1f2;
}

.youtube {
    background-color: #ff0000;
}

.tiktok {
    background-color: #000;
}

.spotify {
    background-color: #1db954;
}

.telegram {
    background-color: #0088cc;
}

.btn-social:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Website e Mapa */
.website, .map {
    margin-bottom: 15px;
}

.btn-website, .btn-map {
    background-color: #f5f5f5;
    color: #333;
}

.btn-website:hover, .btn-map:hover {
    background-color: #e5e5e5;
}

/* Pix e PicPay */
.pix, .picpay {
    margin-bottom: 15px;
}

.btn-pix {
    background-color: #32BCAD;
    color: #fff;
}

.btn-pix:hover {
    background-color: #2aa99b;
}

.btn-picpay {
    background-color: #21C25E;
    color: #fff;
}

.btn-picpay:hover {
    background-color: #1ba54e;
}

.pix-info {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #eee;
}

/* Campos adicionais */
.campo-adicional {
    margin-bottom: 20px;
}

.btn-campo {
    background-color: #f5f5f5;
    color: #333;
}

.btn-campo:hover {
    background-color: #e5e5e5;
}

.campo-protegido {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #eee;
}

.campo-protegido input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.btn-senha {
    background-color: #4a6cf7;
    color: #fff;
    padding: 10px 15px;
}

.campo-texto {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #eee;
}

.campo-texto h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.texto-conteudo {
    line-height: 1.6;
}

/* Produtos */
.campo-produto {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #eee;
}

.campo-produto h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.produto-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.produto-imagem {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produto-info {
    padding: 15px;
}

.produto-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.produto-preco {
    font-size: 20px;
    font-weight: 600;
    color: #4a6cf7;
    margin: 15px 0;
}

.produto-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-comprar {
    background-color: #4a6cf7;
    color: #fff;
    flex: 1;
}

.btn-pix-produto {
    background-color: #32BCAD;
    color: #fff;
    flex: 1;
}

.btn-whatsapp-produto {
    background-color: #25D366;
    color: #fff;
    flex: 1;
}

/* QR Code */
.qrcode {
    margin-bottom: 20px;
}

.qrcode img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.powered-by {
    font-size: 14px;
    color: #999;
}

.powered-by a {
    color: #4a6cf7;
    text-decoration: none;
}

/* Responsividade */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .card-header {
        padding: 20px 15px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .card-header h1 {
        font-size: 22px;
    }
    
    .card-header h2 {
        font-size: 16px;
    }
    
    .btn-social {
        flex: 0 0 calc(50% - 10px);
    }
}

/* Estilos para Campos Adicionais */

/* Campo adicional base */
.campo-adicional {
    margin: 15px 0;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Botão de campo personalizado */
.btn-campo {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-campo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.btn-campo:active {
    transform: translateY(0);
}

/* Campo protegido por senha */
.campo-protegido {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.campo-protegido form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.campo-protegido input[type="password"] {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.campo-protegido input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.campo-protegido input[type="password"]:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-senha {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-senha:hover {
    background: #764ba2;
}

/* Campo de texto */
.campo-texto {
    text-align: center;
}

.campo-texto h3 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.texto-conteudo {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Campo de produto */
.campo-produto {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.campo-produto h3 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.produto-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.produto-imagem {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produto-imagem:hover img {
    transform: scale(1.05);
}

.produto-info {
    padding: 20px;
}

.produto-info h4 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.produto-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 10px 0;
    font-size: 14px;
}

.produto-preco {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #4CAF50 !important;
    margin: 15px 0 20px 0 !important;
    text-align: center;
}

.produto-acoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-comprar {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    color: white;
    text-decoration: none;
}

.btn-pix-produto {
    background: linear-gradient(135deg, #32BCAD 0%, #2BA89C 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-pix-produto:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(50, 188, 173, 0.3);
}

.pix-produto-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(50, 188, 173, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(50, 188, 173, 0.3);
}

.pix-produto-info p {
    margin: 0 0 10px 0;
    color: white;
    font-size: 14px;
    word-break: break-all;
}

.btn-copy-pix {
    background: rgba(50, 188, 173, 0.2);
    color: #32BCAD;
    border: 1px solid #32BCAD;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-copy-pix:hover {
    background: #32BCAD;
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .campo-adicional {
        margin: 10px 0;
        padding: 12px;
    }
    
    .btn-campo {
        padding: 12px;
        font-size: 14px;
    }
    
    .produto-info {
        padding: 15px;
    }
    
    .produto-info h4 {
        font-size: 18px;
    }
    
    .produto-preco {
        font-size: 20px !important;
    }
    
    .btn-comprar,
    .btn-pix-produto {
        padding: 12px;
        font-size: 14px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.campo-adicional {
    animation: fadeIn 0.5s ease;
}

/* Estados de loading */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Melhorias de acessibilidade */
.btn-campo:focus,
.btn-comprar:focus,
.btn-pix-produto:focus,
.btn-senha:focus,
.btn-copy-pix:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Temas escuros - ajustes adicionais */
@media (prefers-color-scheme: dark) {
    .campo-adicional {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .texto-conteudo {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .produto-card {
        background: rgba(0, 0, 0, 0.2);
    }
}

/* CSS para centralizar os títulos dos botões nos campos adicionais */

.campo-adicional .btn-campo {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.campo-adicional .btn-campo i {
    margin-right: 0; /* Remove margin-right padrão se existir */
}

/* Alternativa usando apenas text-align se o botão não usar flex */
.campo-adicional .btn-campo {
    text-align: center;
}

/* Garantir que o ícone e texto fiquem alinhados horizontalmente */
.campo-adicional .btn-campo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    width: 100%;
}