/**
 * Estilos para o frontend do bloco TikTok Integration
 */

.ancora-link-pro-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ancora-link-pro-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Indicador de progresso */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    background: linear-gradient(135deg, #ee1d52 0%, #69c9d0 100%);
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: bold;
    font-size: 16px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: white;
    color: #ee1d52;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.progress-step.current {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Steps do formulário */
.ancora-step {
    padding: 40px;
    min-height: 400px;
}

.ancora-step h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.ancora-step p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Formulários */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #ee1d52;
    box-shadow: 0 0 0 3px rgba(238, 29, 82, 0.1);
}

/* Lista de pixels */
.pixel-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.pixel-option {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: normal;
}

.pixel-option:hover {
    background: #e9ecef;
}

.pixel-option input[type="radio"] {
    margin-right: 10px;
    width: auto;
}

/* Criar pixel */
.create-pixel {
    border-top: 1px solid #e1e8ed;
    padding-top: 20px;
    margin-top: 20px;
}

.create-pixel h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
}

.create-pixel input {
    width: calc(100% - 120px);
    margin-right: 10px;
    display: inline-block;
}

/* Seção do código do pixel */
.pixel-code-section {
    margin-bottom: 30px;
}

.pixel-code-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    background: #f8f9fa;
    resize: vertical;
    min-height: 200px;
}

/* Instruções */
.instructions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 25px;
}

.instructions h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
}

.instructions ol {
    color: #5a6c7d;
    line-height: 1.8;
}

.instructions ol li {
    margin-bottom: 8px;
}

/* Botões */
.button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #e9ecef;
    color: #495057;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button-primary {
    background: linear-gradient(135deg, #ee1d52 0%, #d63384 100%);
    color: white;
}

.button-primary:hover {
    background: linear-gradient(135deg, #d63384 0%, #ee1d52 100%);
    color: white;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Mensagens de notificação */
.notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}

.notice.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notice.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Mensagem de sucesso final */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message p {
    font-size: 18px;
    margin-bottom: 20px;
}

.success-message p:first-child {
    font-size: 24px;
    font-weight: 600;
    color: #28a745;
}

.success-message a {
    color: #ee1d52;
    text-decoration: none;
    font-weight: 600;
}

.success-message a:hover {
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    .ancora-link-pro-container {
        margin: 0 20px;
    }
    
    .progress-indicator {
        padding: 20px 25px;
    }
    
    .progress-step {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .ancora-step {
        padding: 25px;
        min-height: auto;
    }
    
    .ancora-step h3 {
        font-size: 20px;
    }
    
    .create-pixel input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .pixel-code-textarea {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .progress-indicator {
        padding: 15px 20px;
    }
    
    .progress-step {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .ancora-step {
        padding: 20px;
    }
    
    .button {
        width: 100%;
        padding: 15px 20px;
        margin-bottom: 10px;
    }
}