/*
 * Estilos para o Botão de Download Dinâmico (Frontend)
 * Versão 2.0.0 - Adaptado para Plugin WordPress com AdLinkFly
 */

/* Contêiner Principal */
.wdb-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative; /* Necessário para posicionar o badge */
}

/* Botão de Download */
.wdb-button {
    margin-top: 10px;
    position: relative;
    width: 150px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 2px solid #323232;
    box-shadow: 0px 4px #323232;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none; /* Adicionado para garantir que o link não tenha sublinhado */
    color: #323232; /* Cor do texto padrão */
}

/* Efeito Hover */
a.wdb-button:hover {
    background: #f39c12;
    box-shadow: 0px 0px;
    transform: translate(0px, 2px);
    color: #fff;
}

/* Ícone SVG */
.wdb-icon {
    display: flex; /* Para centralizar o SVG */
    align-items: center;
    margin: 15px;
    line-height: 1;
}

.wdb-svg-icon {
    width: 1.5em; /* Tamanho do ícone */
    height: 1.5em;
}

.wdb-button .svg-icon {
  stroke: #323232; /* cor padrão */
}

.wdb-button:hover .svg-icon {
  stroke: #fff; /* cor quando o botão for hover */
}

.wdb-text {
    line-height: 1;
}

.file-name {
    text-align: center;
    font-size: 1.2em;
    font-weight: 700;
    width: 100%;
}

/* Informações do Download */
.wdb-info-box {
    margin-top: 10px;
    width: 100%;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 10px 5px;
    color: #333;
}

.wdb-info-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wdb-info-box li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    margin-bottom: 0px;
    border-bottom: 1px dashed #eee;
}

.wdb-info-box li:last-child {
    border-bottom: none;
}

.wdb-label {
    font-weight: 600;
    color: #555;
    flex-basis: 40%;
}

.wdb-value {
    font-weight: 400;
    text-align: right;
    flex-basis: 60%;
}

/* Destaque para a senha */
.wdb-password {
    color: #e74c3c;
    font-weight: 700;
}

/* Badge de Destaque */
.wdb-badge {
    position: absolute;
    top: -15px;
    right: 10px;
    background-color: #e74c3c; /* Cor padrão do badge */
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Responsividade - Layout de coluna em telas pequenas */
@media (max-width: 480px) {
    .wdb-container {
        max-width: 100%;
    }
    .wdb-info-box li {
        flex-direction: column;
        align-items: flex-start;
    }
    .wdb-label {
        margin-bottom: 3px;
    }
    .wdb-value {
        text-align: left;
    }
}
